Skip to content

Split off MCP server configuration from config.json #1998

@segoon

Description

@segoon

There is a possibility to define custom MCP server configurations in global config file. However, for multiple MCP servers it can become unpractical to define all of them in a single file. The file starts being too large and non-modifyable. Also it is quite uncomfortable to exchange with MCP server locations between people - manual config file edit is required.

It is proposed that "mcp" section in config.json can be split off into multiple files in ~/.config/opencode/mcp/*.json. Each file references a single MCP server configuration. It allows just adding new files instead of modifying a single big config file. Also it enables to exchange with MCP server configurations with e.g. just symlinking mcp/*.json from shared filesystem with MCP configs.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions