Skip to content

Commit f5d8cc9

Browse files
committed
feat: add OpenCode MCP server support
- Add OpenCodeMCPClient for managing MCP servers in opencode.jsonc - Support JSONC format with comments for OpenCode configuration - Handle both local and remote MCP server configurations - Integrate with existing MCP manager and CLI commands - Add comprehensive MCP server management for OpenCode
1 parent 7919435 commit f5d8cc9

File tree

4 files changed

+463
-0
lines changed

4 files changed

+463
-0
lines changed

code_assistant_manager/mcp/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
GeminiMCPClient,
1818
IflowMCPClient,
1919
NeovateMCPClient,
20+
OpenCodeMCPClient,
2021
QoderCLIMCPClient,
2122
QwenMCPClient,
2223
ZedMCPClient,
@@ -40,4 +41,5 @@
4041
"ZedMCPClient",
4142
"QoderCLIMCPClient",
4243
"NeovateMCPClient",
44+
"OpenCodeMCPClient",
4345
]

code_assistant_manager/mcp/clients.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from .gemini import GeminiMCPClient
1111
from .iflow import IflowMCPClient
1212
from .neovate import NeovateMCPClient
13+
from .opencode import OpenCodeMCPClient
1314
from .qodercli import QoderCLIMCPClient
1415
from .qwen import QwenMCPClient
1516
from .zed import ZedMCPClient
@@ -25,6 +26,7 @@
2526
"GeminiMCPClient",
2627
"IflowMCPClient",
2728
"NeovateMCPClient",
29+
"OpenCodeMCPClient",
2830
"QoderCLIMCPClient",
2931
"QwenMCPClient",
3032
"ZedMCPClient",

code_assistant_manager/mcp/manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def _initialize_clients(
2929
GeminiMCPClient,
3030
IflowMCPClient,
3131
NeovateMCPClient,
32+
OpenCodeMCPClient,
3233
QoderCLIMCPClient,
3334
QwenMCPClient,
3435
ZedMCPClient,
@@ -48,6 +49,7 @@ def _initialize_clients(
4849
"neovate": NeovateMCPClient(),
4950
"crush": CrushMCPClient(),
5051
"cursor-agent": CursorAgentMCPClient(),
52+
"opencode": OpenCodeMCPClient(),
5153
}
5254

5355
def get_client(self, tool_name: str):

0 commit comments

Comments
 (0)