This guide shows you how to configure the Sita MCP server in Roo Code for powerful codebase Q&A capabilities.
You must configure the MCP server for each repository you want to work
with. Each repository requires its own configuration section with a unique
repo ID.
Configuration Steps
Open Menu
In Roo Code, click the three dots menu in the interface.
Click MCP Servers
Select “MCP Servers” from the menu.
Edit Global MCPs
Click “Edit Global MCPs” to open the configuration file.
Paste Configuration
Copy and paste the appropriate configuration based on whether you’re setting
up one repository or multiple repositories (see examples below).
Save
Save the configuration file. The MCP server will be immediately available in Roo Code.
Single Repository Configuration
To configure Sita for a single repository, paste this configuration:
{
"mcpServers": {
"code-qna": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:3000/api/mcp",
"--header",
"x-repo-id: YOUR_REPO_ID"
]
}
}
}
Replace YOUR_REPO_ID with your repository ID. The repo id can be copied from
repos tabs.
Multiple Repository Configuration
To configure multiple repositories, add separate server entries for each:
{
"mcpServers": {
"frontend-qna": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:3000/api/mcp",
"--header",
"x-repo-id: frontend-app"
]
},
"backend-qna": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:3000/api/mcp",
"--header",
"x-repo-id: backend-api"
]
},
"mobile-qna": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:3000/api/mcp",
"--header",
"x-repo-id: mobile-app"
]
}
}
}
Give each server configuration a descriptive name (like frontend-qna,
backend-qna) to easily identify which repository it connects to.
Verification
After adding the configuration:
- Your server name(s) should appear in the MCP panel
- You should see a green indicator showing the server is connected
- The
codebase-qna tool will be available when using Roo Code’s AI features
Next Steps
- Set up MCP in Claude Code for CLI integration
- Configure Cursor with MCP support
- Try Cline for VSCode integration