git clone --depth 1 https://github.com/hoangsonww/Claude-Code-Agent-Monitor /tmp/mcp-server && cp -r /tmp/mcp-server/plugins/ccam-platform/skills/mcp-server ~/.claude/skills/mcp-serverSKILL.md
# MCP Server ## Build ```bash npm run mcp:install npm run mcp:typecheck npm run mcp:build ``` Normal `npm run setup` performs install and build automatically. ## Launch ```bash ccam mcp stdio ccam mcp http ccam mcp repl ``` ## Policy - Reads are enabled by default. - Writes require `MCP_DASHBOARD_ALLOW_MUTATIONS=true`. - Full data clearing additionally requires `MCP_DASHBOARD_ALLOW_DESTRUCTIVE=true` and the exact tool argument `confirmation_token = "CLEAR_ALL_DATA"`. `CLEAR_ALL_DATA` is not an environment variable. - Set `MCP_DASHBOARD_API_TOKEN` when the dashboard uses `DASHBOARD_TOKEN`. - The target URL remains restricted to loopback and approved container-host names. Validate with `npm run test:mcp`. Protocol and REPL transports must expose the same catalog because both use the canonical domain registration path.
Operate and maintain the local MCP server for this repository. Use for MCP tool updates, policy-guard changes, host configuration, and MCP runtime troubleshooting.
Run release-readiness checks for this repository. Use when validating docs, scripts, verification coverage, and operational safety before merge or release.
Understand this repository quickly before making changes. Use for architecture discovery, ownership mapping, command selection, and initial implementation planning.
Review backend route and hook logic for regressions, data integrity risks, and missing tests.
Review React UI changes for behavior regressions, state consistency, and UX breakage.
Review MCP server changes for tool safety, schema quality, and host integration correctness.
Debug production-like issues in this repository with disciplined evidence gathering. Use when fixing failing workflows, regressions, flaky behavior, or data inconsistencies across hooks, API, DB, websocket, and UI.
Operate and maintain the local MCP server for this project. Use when creating MCP host config, troubleshooting tool connectivity, modifying tool domains, or adjusting safety policy flags.