What is MCP?
The Model Context Protocol is a standard for AI tools to expose capabilities to AI models. profClaw’s MCP server exposes profClaw’s task management and session tracking as MCP tools.Running the MCP Server
The MCP server runs as a separate process communicating over stdio:PROFCLAW_API_URL to point at your running profClaw instance:
Claude Code Integration
Add to~/.claude/settings.json (or .claude/settings.json in your project):
/mcp in Claude Code to verify the tools are available.
Available MCP Tools
The MCP server (src/mcp/server.ts) exposes these tools to MCP clients:
report_progress
Report task execution progress back to profClaw.
get_task
Fetch task details from the profClaw queue.
complete_task
Mark a task as completed with a result summary.
fail_task
Mark a task as failed with an error message.
get_session_state
Get the current MCP session state (token usage, files modified, active task).
Browser Tools
The MCP server also exposes browser automation tools (src/mcp/browser-tools.ts) for screenshot capture, navigation, and DOM interaction - useful for visual testing and web scraping tasks.
Session State
Each MCP server process maintains in-memory session state:MCP Server Configuration
StdioServerTransport - it reads from stdin and writes to stdout. This is the standard transport for Claude Code MCP integrations.
Tool Adapter
src/mcp/tool-adapter.ts converts profClaw’s internal tool format (PluginToolDefinition) to the MCP tool schema format, allowing all installed profClaw tools to be exposed via MCP if desired.
REST API for MCP
The MCP route (src/routes/mcp.ts) provides HTTP endpoints for managing MCP server configuration and viewing connected MCP clients: