Okay, assuming you installed DevDocs using a standard method (like the official DevDocs app or a common package manager) and it's running with its default settings on your Mac, the configuration is straightforward.
You need to add an entry inside the mcpServers object that tells Roo where to find your local DevDocs server.
Here's what you put in your Roo configuration file (likely ~/.config/roo/config.json on macOS):
{
"mcpServers": {
"local_devdocs": {
"type": "devdocs",
"enabled": true,
"host": "localhost",
"port": 9292
}
// If you have other MCP servers configured, add them here too,
// separated by commas.
}
// ... other potential roo configuration settings
}
Explanation:
"local_devdocs": This is just a name you give to this specific server configuration within Roo. You can change it if you like (e.g., "my_mac_devdocs"), but local_devdocs is clear.
"type": "devdocs": This tells Roo what kind of MCP server this is, so it knows how to communicate with it.
"enabled": true": This makes Roo actively try to use this server configuration. Set it to false if you want to temporarily disable it without deleting the entry.
"host": "localhost": Since DevDocs is running on your own Mac, localhost (which usually resolves to the IP address 127.0.0.1) is the correct hostname.
"port": 9292": This is the default port number that most DevDocs server implementations listen on. If you manually configured your DevDocs server to use a different port, change this value accordingly.
Steps:
- Find your Roo config file: On macOS, it's typically located at
~/.config/roo/config.json. The ~ means your home directory. You can open your home directory in Finder, press Cmd+Shift+. to show hidden files/folders if needed, then navigate to .config and then roo.
- Edit the file: Open
config.json in VS Code (or any text editor).
- Add the snippet: Paste the
"local_devdocs": { ... } block inside the curly braces {} belonging to "mcpServers":. Make sure the JSON syntax is correct (e.g., if this is the only entry in mcpServers, there should be no comma after its closing }).
- Save the file.
- Make sure DevDocs is running: Launch your DevDocs application or start the DevDocs server process.
- Test in Roo (VS Code Terminal): Run a command like
roo mcp list or roo mcp search <some_term> (e.g., roo mcp search javascript array). Roo should now query your local DevDocs instance.</some_term>