-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
181 lines (181 loc) · 6.59 KB
/
package.json
File metadata and controls
181 lines (181 loc) · 6.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{
"name": "ocp-vscode-extension",
"displayName": "Open Context Protocol",
"description": "Provides OCP context and API calling tools for AI agents in VS Code",
"version": "0.2.1",
"publisher": "opencontextprotocol",
"author": "OCP Contributors",
"icon": "logo.png",
"license": "MIT",
"repository": "https://github.com/opencontextprotocol/ocp-vscode.git",
"homepage": "https://opencontextprotocol.io",
"bugs": "https://github.com/opencontextprotocol/ocp-vscode/issues",
"keywords": [
"ocp",
"open-context-protocol",
"ai",
"agent",
"copilot",
"github-copilot"
],
"engines": {
"vscode": "^1.107.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "Open Context Protocol",
"properties": {
"ocp.user": {
"type": "string",
"default": "",
"description": "User identifier for OCP context (defaults to git username)"
},
"ocp.registryUrl": {
"type": "string",
"default": "https://opencontextprotocol.io/api/v1",
"description": "OCP registry URL for API discovery"
},
"ocp.apiAuth": {
"type": "object",
"default": {},
"description": "API authentication headers by API name (e.g., {\"github\": {\"Authorization\": \"token ghp_xxx\"}})",
"additionalProperties": {
"type": "object"
}
}
}
},
"languageModelTools": [
{
"name": "ocp_getContext",
"displayName": "OCP Get Context",
"modelDescription": "Show current workspace development context in the OCP environment, including user, project details, session state, and registered APIs. Use when user asks to 'show me the context', 'what's my current setup', 'tell me about this workspace', or before starting any OCP operations.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "ocp-context",
"userDescription": "Get current workspace context information"
},
{
"name": "ocp_registerApi",
"displayName": "OCP Register API",
"modelDescription": "Add an API to the OCP registry to make its tools available for development tasks. Discovers all available tools from the API specification. Use when user wants to 'add an API', 'register GitHub', 'connect to a service', or integrate with external APIs. This should be done before calling any tools from an API.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "ocp-register",
"userDescription": "Register an API to make its tools available",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Human-readable name for the API (required)"
},
"specUrl": {
"type": "string",
"description": "URL to OpenAPI specification (optional if using registry lookup)"
},
"baseUrl": {
"type": "string",
"description": "Optional override for API base URL"
}
},
"required": [
"name"
]
}
},
{
"name": "ocp_listTools",
"displayName": "OCP List Tools",
"modelDescription": "List all development tools available from APIs registered in this OCP session. Use when user asks 'what can I do', 'what tools are available', 'show me my options', 'what's possible here', or to discover capabilities after registering APIs.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "ocp-list",
"userDescription": "List available tools from registered APIs",
"inputSchema": {
"type": "object",
"properties": {
"apiName": {
"type": "string",
"description": "Optional API name to filter tools"
}
}
}
},
{
"name": "ocp_callTool",
"displayName": "OCP Call Tool",
"modelDescription": "Execute a development tool from OCP-registered APIs with specified parameters. Tool must be registered first via ocp_registerApi. Use when user requests specific actions like 'create a file', 'search code', 'deploy app', or any task that requires calling external API endpoints.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "ocp-call",
"userDescription": "Call a tool from a registered API",
"inputSchema": {
"type": "object",
"properties": {
"toolName": {
"type": "string",
"description": "Name of the tool to call (required)"
},
"parameters": {
"type": "object",
"description": "Parameters for the tool (required, can be empty object)"
},
"apiName": {
"type": "string",
"description": "API name that the tool belongs to (required)"
}
},
"required": [
"toolName",
"parameters",
"apiName"
]
}
},
{
"name": "ocp_searchTools",
"displayName": "OCP Search Tools",
"modelDescription": "Find development tools by searching names and descriptions across OCP-registered APIs. Use when user describes what they want to accomplish like 'I need to...', 'help me find...', 'find tools for...', or when looking for specific functionality without knowing exact tool names.",
"canBeReferencedInPrompt": true,
"toolReferenceName": "ocp-search",
"userDescription": "Search for tools by name or description",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Search query for tool name or description (required)"
},
"apiName": {
"type": "string",
"description": "Optional API name to search within"
}
},
"required": [
"query"
]
}
}
]
},
"scripts": {
"compile": "npm run check-types && node esbuild.js",
"check-types": "tsc --noEmit",
"vscode:prepublish": "npm run compile",
"package": "vsce package"
},
"dependencies": {
"@opencontextprotocol/agent": "^0.5.0"
},
"devDependencies": {
"@types/node": "^25.0.3",
"@types/vscode": "^1.107.0",
"@vscode/vsce": "^3.7.1",
"esbuild": "^0.27.2",
"typescript": "^5.9.3"
}
}