Skip to content

Commit b77b4bc

Browse files
author
Pedro Pombeiro
committed
feat(opencode): allow lazy-mcp command execution tools
Add permissions for lazy-mcp tool invocation to enable command execution across MCP servers. This allows opencode to discover and execute commands from available servers dynamically.
1 parent e15e05c commit b77b4bc

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.config/opencode/opencode.json##class.Work

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
"knowledge-graph_list_projects": "allow",
6262
"knowledge-graph_read_definitions": "allow",
6363
"knowledge-graph_search_codebase_definitions": "allow",
64+
"lazy-mcp_invoke_command": "allow",
65+
"lazy-mcp_list_commands": "allow",
66+
"lazy-mcp_list_servers": "allow",
6467
"read": "allow",
6568
"todowrite": "allow"
6669
},

.config/opencode/opencode.json##default

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,15 @@
6767
"wc *": "allow",
6868
"which*": "allow",
6969
},
70-
"read": "allow",
7170
"glob": "allow",
7271
"grep": "allow",
72+
"lazy-mcp_describe_commands": "allow",
73+
"lazy-mcp_invoke_command": "allow",
74+
"lazy-mcp_list_commands": "allow",
75+
"lazy-mcp_list_servers": "allow",
76+
"read": "allow",
77+
"task": { "explore": "allow" },
7378
"todowrite": "allow",
74-
"task": { "explore": "allow" }
7579
},
7680

7781
"keybinds": {

0 commit comments

Comments
 (0)