Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Note: The configuration file syntax can be different across clients. Please refe
- **Claude Desktop**: https://modelcontextprotocol.io/quickstart/user
- **Cursor**: https://docs.cursor.com/context/model-context-protocol
- **Copilot CLI**: https://docs.github.com/en/copilot/concepts/agents/about-copilot-cli
- **Opencode CLI**: https://opencode.ai/docs/mcp-servers

> **Default Safety Notice:** All examples below include `--readOnly` by default to ensure safe, read-only access to your data. Remove `--readOnly` if you need to enable write operations.

Expand Down Expand Up @@ -305,6 +306,27 @@ Alternatively, create or edit the configuration file `~/.copilot/mcp-config.json

For more information, see the [Copilot CLI documentation](https://docs.github.com/en/copilot/concepts/agents/about-copilot-cli).

#### Option 7: OpenCode

Create or edit your OpenCode config file (`~/.config/opencode/opencode.json` or project-specific `./opencode.json`):

{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"MongoDB": {
"type": "local",
"command": ["npx", "-y", "mongodb-mcp-server@latest", "--readOnly"],
"enabled": true,
"environment": {
"MDB_MCP_CONNECTION_STRING": "mongodb://localhost:27017/myDatabase"
}
}
Comment thread
nol166 marked this conversation as resolved.
}
}
```

For more information about configuring OpenCode as an MCP client, including the expected syntax and options, see the [OpenCode MCP servers documentation](https://opencode.ai/docs/mcp-servers/).

## 🛠️ Supported Tools

### Tool List
Expand Down
Loading