MCP Integration
DevAll includes a built-in MCP (Model Context Protocol) server that allows AI assistants like Claude to control your entire development environment through natural language.
What is MCP?
Section titled “What is MCP?”The Model Context Protocol is a standard for connecting AI assistants to external tools and data sources. DevAll’s MCP server exposes tools that let AI assistants:
- Start and stop services
- View service status and logs
- Restart processes
- Modify configuration
- Monitor system resources
Quick Setup
Section titled “Quick Setup”For Claude Desktop
Section titled “For Claude Desktop”- Set up the MCP server:
npx devall mcp setup
This will:
- Build the MCP server
- Configure Claude Desktop automatically
- Add DevAll to your Claude Desktop settings
- Start the DevAll dashboard:
devall
- Open Claude Desktop and you’re ready! Claude can now control your dev environment.
Manual Setup
Section titled “Manual Setup”If automatic setup doesn’t work, configure Claude Desktop manually:
1. Build the MCP Server
Section titled “1. Build the MCP Server”cd mcpnpm installnpm run build
2. Configure Claude Desktop
Section titled “2. Configure Claude Desktop”Edit your Claude Desktop config file:
macOS/Linux:
~/Library/Application Support/Claude/claude_desktop_config.json
Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add the DevAll MCP server:
{ "mcpServers": { "devall": { "command": "node", "args": ["/path/to/devall-core/mcp/bin/index.js"] } }}
3. Restart Claude Desktop
Section titled “3. Restart Claude Desktop”Close and reopen Claude Desktop to load the MCP server.
Using DevAll with AI Assistants
Section titled “Using DevAll with AI Assistants”Once configured, you can control DevAll naturally:
Starting Services
Section titled “Starting Services”“Start the frontend service”
“Launch all autostart services”
“Start the API and database”
Stopping Services
Section titled “Stopping Services”“Stop the backend server”
“Shut down all services”
Viewing Status
Section titled “Viewing Status”“What services are running?”
“Show me the status of all services”
“Is the frontend service up?”
Checking Logs
Section titled “Checking Logs”“Show me the last 50 lines of the API logs”
“What errors are in the backend logs?”
Restarting Services
Section titled “Restarting Services”“Restart the frontend”
“Restart all services”
Configuration
Section titled “Configuration”“What services are configured?”
“Add a new service for the authentication server”
Available MCP Tools
Section titled “Available MCP Tools”DevAll exposes these tools to AI assistants:
list_services
Section titled “list_services”Lists all configured services with their status.
Output:
{ "services": [ { "name": "Frontend", "status": "running", "port": 3000, "pid": 12345 } ]}
get_service_status
Section titled “get_service_status”Gets detailed status for a specific service.
Parameters:
name
(string): Service name
Output:
{ "name": "Frontend", "status": "running", "port": 3000, "pid": 12345, "uptime": "5m 23s"}
start_service
Section titled “start_service”Starts a service.
Parameters:
name
(string): Service name
stop_service
Section titled “stop_service”Stops a running service.
Parameters:
name
(string): Service name
restart_service
Section titled “restart_service”Restarts a service (stops then starts).
Parameters:
name
(string): Service name
get_service_logs
Section titled “get_service_logs”Gets recent logs for a service.
Parameters:
name
(string): Service namelines
(number, optional): Number of lines (default: 100)
Output:
{ "logs": [ "Server listening on port 3000", "GET / 200 15ms", "GET /api/users 200 45ms" ]}
clear_service_logs
Section titled “clear_service_logs”Clears logs for a service.
Parameters:
name
(string): Service name
get_config
Section titled “get_config”Gets the current DevAll configuration.
Output:
{ "dashboard": { "port": 7777 }, "services": [...]}
Running MCP Server Standalone
Section titled “Running MCP Server Standalone”You can run the MCP server independently of Claude Desktop:
STDIO Mode (for Claude Desktop)
Section titled “STDIO Mode (for Claude Desktop)”npx devall mcp start
SSE Mode (for web clients)
Section titled “SSE Mode (for web clients)”npx devall mcp start --sse --port 3001
Access at: http://localhost:3001/sse
Development & Testing
Section titled “Development & Testing”Test with MCP Inspector
Section titled “Test with MCP Inspector”The MCP Inspector is a tool for testing MCP servers:
npm run mcp:inspector
This opens a web interface where you can:
- Test all available tools
- View request/response payloads
- Debug MCP server behavior
Start MCP Server in Dev Mode
Section titled “Start MCP Server in Dev Mode”Watch for changes and auto-reload:
cd mcpnpm run dev
Security Considerations
Section titled “Security Considerations”Authentication
Section titled “Authentication”The MCP server currently has no authentication. Ensure:
- DevAll dashboard is only accessible on localhost
- MCP server only accepts local connections
- Don’t expose ports externally
Permissions
Section titled “Permissions”The MCP server has full control over configured services. It can:
- Start/stop any process
- View all logs
- Modify configuration
Only use with trusted AI assistants in secure environments.
Troubleshooting
Section titled “Troubleshooting”MCP Server Not Showing Up
Section titled “MCP Server Not Showing Up”-
Check Claude Desktop config is correct:
Terminal window cat ~/Library/Application\ Support/Claude/claude_desktop_config.json -
Verify the path to
index.js
is absolute -
Check MCP server builds successfully:
Terminal window cd mcp && npm run build -
Restart Claude Desktop completely
”DevAll server is not running”
Section titled “”DevAll server is not running””The MCP server requires the DevAll dashboard to be running:
# Terminal 1: Start dashboarddevall
# Terminal 2: Use Claude Desktop# (MCP tools now work)
Commands Failing
Section titled “Commands Failing”-
Check DevAll dashboard is accessible:
Terminal window curl http://localhost:7777/api/health -
View MCP server logs (if running standalone):
Terminal window npx devall mcp start# Check stderr output -
Test with MCP Inspector:
Terminal window npm run mcp:inspector
Example Workflows
Section titled “Example Workflows”Starting a Full-Stack App
Section titled “Starting a Full-Stack App”“I need to work on the frontend. Start the frontend service and the API gateway.”
AI will:
- Call
start_service
for “Frontend” - Call
start_service
for “API Gateway” - Confirm both are running
Debugging a Service
Section titled “Debugging a Service”“The backend is behaving strangely. Show me the last 100 log lines.”
AI will:
- Call
get_service_logs
withlines: 100
- Analyze the logs
- Suggest fixes based on errors
Restarting After Config Change
Section titled “Restarting After Config Change”“I just updated the environment variables. Restart all services.”
AI will:
- Call
list_services
to get all services - Call
restart_service
for each one - Verify they’re all running
Checking System Health
Section titled “Checking System Health”“Are all my services running? What’s their status?”
AI will:
- Call
list_services
- Present a summary of service states
- Alert you to any stopped/crashed services
Advanced Usage
Section titled “Advanced Usage”Custom MCP Tools
Section titled “Custom MCP Tools”You can extend DevAll’s MCP server with custom tools:
- Edit
mcp/src/index.js
- Add your tool to the tools list
- Implement the tool handler
- Rebuild:
npm run build
Integration with Other MCP Servers
Section titled “Integration with Other MCP Servers”Claude Desktop can use multiple MCP servers simultaneously. Combine DevAll with:
- File system tools: Read/write code
- Git tools: Commit changes
- Database tools: Query data
- Slack tools: Send notifications
Example config:
{ "mcpServers": { "devall": { "command": "node", "args": ["/path/to/devall/mcp/bin/index.js"] }, "filesystem": { "command": "npx", "args": ["@modelcontextprotocol/server-filesystem"] } }}
Next Steps
Section titled “Next Steps”- Read the MCP specification
- See example prompts
- Contribute custom tools