MCP Integration
Connect to Model Context Protocol servers
Ripperdoc supports the Model Context Protocol (MCP) for connecting to external tools and resources.
What is MCP?
MCP (Model Context Protocol) is a standard for:
- Exposing tools to AI agents
- Providing resources and context
- Enabling agent-to-service communication
Configuration
Configure MCP servers in .ripperdoc/mcp.json:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"]
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
}
}
}
}Server Types
Stdio Servers
{
"myserver": {
"command": "path/to/server",
"args": ["--flag", "value"],
"env": {
"VAR": "value"
}
}
}SSE Servers
{
"myserver": {
"url": "http://localhost:3000/sse"
}
}MCP Tools
ListMcpServers
View connected MCP servers:
> List connected MCP serversListMcpResources
View available resources:
> List resources from the github serverReadMcpResource
Read a specific resource:
> Read the README from github://repo/owner/readmeAvailable MCP Servers
Official Servers
| Server | Description |
|---|---|
@modelcontextprotocol/server-filesystem | File system access |
@modelcontextprotocol/server-github | GitHub integration |
@modelcontextprotocol/server-postgres | PostgreSQL access |
@modelcontextprotocol/server-slack | Slack integration |
Installation
npx -y @modelcontextprotocol/server-filesystem /pathDynamic MCP Tools
When an MCP server provides tools, they become available to Ripperdoc:
{
"mcpServers": {
"database": {
"command": "node",
"args": ["./db-server.js"]
}
}
}The tools from database server will be available as:
mcp_database_querymcp_database_insert- etc.
Example: GitHub Integration
Configure
.ripperdoc/mcp.json:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
}
}
}
}Use
> List open issues in this repository
> Create a PR for the current branchManaging MCP
View Status
> /mcpReload Configuration
Restart Ripperdoc to reload MCP configuration.
Best Practices
- Secure credentials: Use environment variables for tokens
- Limit scope: Only connect necessary servers
- Monitor resources: MCP servers consume resources
- Use official servers: Prefer well-maintained servers
- Test locally: Verify MCP servers work before production use
Troubleshooting
Server Not Connecting
- Check the command path is correct
- Verify required dependencies are installed
- Check environment variables are set
- Review server logs for errors
Tools Not Available
- Ensure server is running
- Check server implements tools correctly
- Restart Ripperdoc to reload