diff --git a/mcp/context7.jsonc b/mcp/context7.jsonc new file mode 100644 index 0000000..5e66ce0 --- /dev/null +++ b/mcp/context7.jsonc @@ -0,0 +1,10 @@ +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "context7": { + "type": "remote", + "url": "https://mcp.context7.com/mcp", + "enabled": false + } + } +} diff --git a/mcp/deepwiki.jsonc b/mcp/deepwiki.jsonc new file mode 100644 index 0000000..ea9520c --- /dev/null +++ b/mcp/deepwiki.jsonc @@ -0,0 +1,10 @@ +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "deepwiki": { + "type": "remote", + "url": "https://mcp.deepwiki.com/mcp", + "enabled": false + } + } +} diff --git a/mcp/exa.jsonc b/mcp/exa.jsonc new file mode 100644 index 0000000..2e95299 --- /dev/null +++ b/mcp/exa.jsonc @@ -0,0 +1,10 @@ +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "exa": { + "type": "remote", + "url": "https://mcp.exa.ai/mcp?tools=web_search_exa", + "enabled": false + } + } +} diff --git a/mcp/grep-app.jsonc b/mcp/grep-app.jsonc new file mode 100644 index 0000000..997adb4 --- /dev/null +++ b/mcp/grep-app.jsonc @@ -0,0 +1,10 @@ +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "grep-app": { + "type": "remote", + "url": "https://mcp.grep.app", + "enabled": false + } + } +} diff --git a/mcp/memory.jsonc b/mcp/memory.jsonc new file mode 100644 index 0000000..31997d3 --- /dev/null +++ b/mcp/memory.jsonc @@ -0,0 +1,10 @@ +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "memory": { + "type": "local", + "command": ["bunx", "@modelcontextprotocol/server-memory"], + "enabled": false + } + } +} diff --git a/mcp/sequential-thinking.jsonc b/mcp/sequential-thinking.jsonc new file mode 100644 index 0000000..f094324 --- /dev/null +++ b/mcp/sequential-thinking.jsonc @@ -0,0 +1,10 @@ +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "sequential-thinking": { + "type": "local", + "command": ["bunx", "@modelcontextprotocol/server-sequential-thinking"], + "enabled": false + } + } +} diff --git a/opencode.jsonc b/opencode.jsonc index 68dcd36..8543ce4 100644 --- a/opencode.jsonc +++ b/opencode.jsonc @@ -9,22 +9,15 @@ "@franlol/opencode-md-table-formatter@latest" ], "mcp": { - "websearch": { - "type": "remote", - "url": "https://mcp.exa.ai/mcp?tools=web_search_exa" - }, "context7": { "type": "remote", "url": "https://mcp.context7.com/mcp" }, - "grep_app": { + "grep-app": { "type": "remote", "url": "https://mcp.grep.app" } }, - "permission": { - "websearch": "deny" // 禁用内置的 websearch 工具 - }, "provider": { "anthropic-gateway": { "name": "Anthropic Gateway", diff --git a/snippet/mcp.jsonc b/snippet/mcp.jsonc deleted file mode 100644 index fe4ca17..0000000 --- a/snippet/mcp.jsonc +++ /dev/null @@ -1,21 +0,0 @@ -{ - "$schema": "https://opencode.ai/config.json", - "mcp": { - "context7": { - "type": "remote", - "url": "https://mcp.context7.com/mcp" - }, - "deepwiki": { - "type": "remote", - "url": "https://mcp.deepwiki.com/mcp" - }, - "sequential-thinking": { - "type": "local", - "command": ["bunx", "@modelcontextprotocol/server-sequential-thinking"] - }, - "memory": { - "type": "local", - "command": ["bunx", "@modelcontextprotocol/server-memory"] - } - } -}