add-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/README.md +1 -1
- package/dist/index.js +4 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -143,7 +143,7 @@ MCP servers can be installed to any of these agents:
|
|
|
143
143
|
| Cursor | `cursor` | `.cursor/mcp.json` | `~/.cursor/mcp.json` |
|
|
144
144
|
| Gemini CLI | `gemini-cli` | `.gemini/settings.json` | `~/.gemini/settings.json` |
|
|
145
145
|
| Goose | `goose` | `.goose/config.yaml` | `~/.config/goose/config.yaml` |
|
|
146
|
-
| OpenCode | `opencode` |
|
|
146
|
+
| OpenCode | `opencode` | `opencode.json` | `~/.config/opencode/opencode.json` |
|
|
147
147
|
| VS Code | `vscode` | `.vscode/mcp.json` | `~/Library/Application Support/Code/User/mcp.json` |
|
|
148
148
|
| Zed | `zed` | `.zed/settings.json` | `~/Library/Application Support/Zed/settings.json` |
|
|
149
149
|
|
package/dist/index.js
CHANGED
|
@@ -149,8 +149,7 @@ function transformOpenCodeConfig(_serverName, config) {
|
|
|
149
149
|
}
|
|
150
150
|
return {
|
|
151
151
|
type: "local",
|
|
152
|
-
command: config.command,
|
|
153
|
-
args: config.args || [],
|
|
152
|
+
command: [config.command, ...config.args || []],
|
|
154
153
|
enabled: true,
|
|
155
154
|
environment: config.env || {}
|
|
156
155
|
};
|
|
@@ -276,8 +275,8 @@ var agents = {
|
|
|
276
275
|
name: "opencode",
|
|
277
276
|
displayName: "OpenCode",
|
|
278
277
|
configPath: join2(home, ".config", "opencode", "opencode.json"),
|
|
279
|
-
localConfigPath: "
|
|
280
|
-
projectDetectPaths: ["
|
|
278
|
+
localConfigPath: "opencode.json",
|
|
279
|
+
projectDetectPaths: ["opencode.json", ".opencode"],
|
|
281
280
|
configKey: "mcp",
|
|
282
281
|
format: "json",
|
|
283
282
|
supportedTransports: ["stdio", "http", "sse"],
|
|
@@ -855,7 +854,7 @@ function installServer(serverName, serverConfig, agentTypes, options = {}) {
|
|
|
855
854
|
// package.json
|
|
856
855
|
var package_default = {
|
|
857
856
|
name: "add-mcp",
|
|
858
|
-
version: "1.0.
|
|
857
|
+
version: "1.0.1",
|
|
859
858
|
description: "Add MCP servers to your favorite coding agents with a single command.",
|
|
860
859
|
author: "Andre Landgraf <andre@neon.tech>",
|
|
861
860
|
license: "Apache-2.0",
|