docs: edit

This commit is contained in:
Jay V
2025-08-26 17:30:43 -04:00
parent 877855d1ee
commit 587b8ae7ee

View File

@@ -95,17 +95,16 @@ Local and remote servers can be used together within the same `mcp` config objec
--- ---
## Granular access management ## Per agent
If you have a large number of MCP servers you may want to disable them globally If you have a large number of MCP servers you may want to only enable them per
and manage access at the agent level instead. To achieve this: agent and disable them globally. To do this:
1. Configure the MCP server. 1. Configure the MCP server.
2. Disable it as a tool globally. 2. Disable it as a tool globally.
3. In your [Agent Configuration](/docs/agents#agent-configuration) enable 3. In your [agent config](/docs/agents#tools) enable the MCP server as a tool.
the MCP server as a tool.
```json title="opencode.json" ```json title="opencode.json" {11, 14-17}
{ {
"$schema": "https://opencode.ai/config.json", "$schema": "https://opencode.ai/config.json",
"mcp": { "mcp": {