opencode-mcp 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.1] - 2025-02-08
9
+
10
+ ### Changed
11
+
12
+ - Removed opencode self-referencing config from README (it doesn't make sense to add opencode-mcp to opencode itself)
13
+ - Added MCP client configs for VS Code (GitHub Copilot), Cline, Continue, Zed, and Amazon Q
14
+ - Clarified that all environment variables and authentication are optional
15
+ - Added "Compatible MCP Clients" section to README
16
+ - Updated docs/configuration.md with all new client configs
17
+
8
18
  ## [1.0.0] - 2025-02-08
9
19
 
10
20
  ### Added
package/README.md CHANGED
@@ -18,6 +18,8 @@ opencode serve
18
18
 
19
19
  ### 2. Add to your MCP client
20
20
 
21
+ Pick your client below. No authentication is needed by default — just add the config and restart your client.
22
+
21
23
  **Claude Desktop** (`claude_desktop_config.json`):
22
24
 
23
25
  ```json
@@ -63,23 +65,82 @@ claude mcp add opencode -- npx -y opencode-mcp
63
65
  }
64
66
  ```
65
67
 
66
- **opencode** (`opencode.json`):
68
+ **VS Code — GitHub Copilot** (`settings.json`):
67
69
 
68
70
  ```json
69
71
  {
70
- "mcp": {
71
- "opencode-mcp": {
72
+ "github.copilot.chat.mcp.servers": [
73
+ {
74
+ "name": "opencode",
72
75
  "type": "stdio",
73
76
  "command": "npx",
74
77
  "args": ["-y", "opencode-mcp"]
75
78
  }
79
+ ]
80
+ }
81
+ ```
82
+
83
+ **Cline** (VS Code extension settings):
84
+
85
+ ```json
86
+ {
87
+ "mcpServers": {
88
+ "opencode": {
89
+ "command": "npx",
90
+ "args": ["-y", "opencode-mcp"]
91
+ }
92
+ }
93
+ }
94
+ ```
95
+
96
+ **Continue** (`.continue/config.json`):
97
+
98
+ ```json
99
+ {
100
+ "mcpServers": {
101
+ "opencode": {
102
+ "command": "npx",
103
+ "args": ["-y", "opencode-mcp"]
104
+ }
105
+ }
106
+ }
107
+ ```
108
+
109
+ **Zed** (`settings.json`):
110
+
111
+ ```json
112
+ {
113
+ "context_servers": {
114
+ "opencode": {
115
+ "command": {
116
+ "path": "npx",
117
+ "args": ["-y", "opencode-mcp"]
118
+ }
119
+ }
76
120
  }
77
121
  }
78
122
  ```
79
123
 
124
+ **Amazon Q** (VS Code `settings.json`):
125
+
126
+ ```json
127
+ {
128
+ "amazon-q.mcp.servers": [
129
+ {
130
+ "name": "opencode",
131
+ "type": "stdio",
132
+ "command": "npx",
133
+ "args": ["-y", "opencode-mcp"]
134
+ }
135
+ ]
136
+ }
137
+ ```
138
+
80
139
  That's it. Your MCP client now has access to the entire OpenCode API.
81
140
 
82
- ### Custom server URL or auth
141
+ ### Custom server URL or authentication (optional)
142
+
143
+ By default, the MCP server connects to `http://127.0.0.1:4096` with no authentication. Both username and password are **optional** — auth is only needed if you've enabled it on the OpenCode server side.
83
144
 
84
145
  If the OpenCode server is on a different host/port or has auth enabled, pass environment variables:
85
146
 
@@ -170,11 +231,15 @@ Guided workflow templates:
170
231
 
171
232
  ## Environment Variables
172
233
 
173
- | Variable | Description | Default |
174
- |---|---|---|
175
- | `OPENCODE_BASE_URL` | URL of the OpenCode server | `http://127.0.0.1:4096` |
176
- | `OPENCODE_SERVER_USERNAME` | HTTP basic auth username | `opencode` |
177
- | `OPENCODE_SERVER_PASSWORD` | HTTP basic auth password | *(none auth disabled)* |
234
+ All environment variables are **optional**. You only need to set them if you've changed the defaults on the OpenCode server side.
235
+
236
+ | Variable | Description | Default | Required |
237
+ |---|---|---|---|
238
+ | `OPENCODE_BASE_URL` | URL of the OpenCode server | `http://127.0.0.1:4096` | No |
239
+ | `OPENCODE_SERVER_USERNAME` | HTTP basic auth username | `opencode` | No |
240
+ | `OPENCODE_SERVER_PASSWORD` | HTTP basic auth password | *(none — auth disabled)* | No |
241
+
242
+ > **Note:** Authentication is disabled by default. It only activates when `OPENCODE_SERVER_PASSWORD` is set on both the OpenCode server and the MCP server.
178
243
 
179
244
  ## How It Works
180
245
 
@@ -229,6 +294,20 @@ npm run dev # watch mode
229
294
  - [Usage Examples](docs/examples.md) — real workflow examples
230
295
  - [Architecture](docs/architecture.md) — system design and data flow
231
296
 
297
+ ## Compatible MCP Clients
298
+
299
+ Works with any MCP-compatible client, including:
300
+
301
+ - [Claude Desktop](https://claude.ai/download)
302
+ - [Claude Code](https://docs.anthropic.com/en/docs/claude-code)
303
+ - [Cursor](https://cursor.sh/)
304
+ - [Windsurf](https://codeium.com/windsurf)
305
+ - [VS Code (GitHub Copilot)](https://code.visualstudio.com/)
306
+ - [Cline](https://github.com/cline/cline)
307
+ - [Continue](https://continue.dev/)
308
+ - [Zed](https://zed.dev/)
309
+ - [Amazon Q](https://aws.amazon.com/q/developer/)
310
+
232
311
  ## References
233
312
 
234
313
  - [OpenCode Documentation](https://opencode.ai/docs/)
package/dist/index.js CHANGED
@@ -46,7 +46,7 @@ const password = process.env.OPENCODE_SERVER_PASSWORD;
46
46
  const client = new OpenCodeClient({ baseUrl, username, password });
47
47
  const server = new McpServer({
48
48
  name: "opencode-mcp",
49
- version: "1.0.0",
49
+ version: "1.0.1",
50
50
  description: "Full-featured MCP server wrapping the OpenCode AI headless HTTP server. " +
51
51
  "Provides 60+ tools, resources, and prompts to manage sessions, send " +
52
52
  "prompts, search files, configure providers, control the TUI, monitor " +
@@ -77,7 +77,7 @@ registerPrompts(server);
77
77
  async function main() {
78
78
  const transport = new StdioServerTransport();
79
79
  await server.connect(transport);
80
- console.error(`opencode-mcp v1.0.0 started (connecting to OpenCode at ${baseUrl})`);
80
+ console.error(`opencode-mcp v1.0.1 started (connecting to OpenCode at ${baseUrl})`);
81
81
  }
82
82
  main().catch((err) => {
83
83
  console.error("Fatal error starting opencode-mcp:", err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "MCP server that wraps the OpenCode AI headless server API — 70 tools, 10 resources, 5 prompts for any MCP client",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",