-
-
Notifications
You must be signed in to change notification settings - Fork 205
MCP Workflows
CCAM's MCP server lets an MCP-capable agent inspect and, when explicitly allowed, operate the dashboard. It exposes structured tools across sessions, agents, transcripts, analytics, alerts, configuration, imports, runs, remote sources, and maintenance.
| Transport | Best for | Boundary |
|---|---|---|
stdio |
One local MCP client spawning CCAM | Process/user permissions |
| HTTP/SSE | Shared or remote MCP clients | Network + MCP auth token |
| REPL | Human exploration and debugging | Interactive local terminal |
Start locally with:
npm run mcp:build
npx ccam mcp stdioRead-only is the default. Enable writes only for the MCP process that needs them:
MCP_DASHBOARD_ALLOW_MUTATIONS=true npx ccam mcp stdioDestructive maintenance requires both gates:
MCP_DASHBOARD_ALLOW_MUTATIONS=true \
MCP_DASHBOARD_ALLOW_DESTRUCTIVE=true \
npx ccam mcp stdioDestructive tools still require operation-specific confirmation tokens. Keep analytical agents read-only and separate them from narrowly scoped administrative clients.
- List/filter sessions to establish scope.
- Fetch one session and its agent tree.
- Read events before requesting transcript pages.
- State evidence and uncertainty.
- Propose any mutation with the exact target and expected result.
- Verify state after an authorized mutation.
This minimizes transcript exposure and prevents broad changes based on a guessed identifier.
An authenticated dashboard uses MCP_DASHBOARD_API_TOKEN or its file variant. HTTP/SSE transport separately uses MCP_HTTP_AUTH_TOKEN or its file variant; clients send bearer auth or x-mcp-token. These credentials protect different hops and should not be conflated.
- Upload and binary-response size limits.
- Canonicalized configuration paths and allowed roots.
- Backup-before-write behavior for supported config artifacts.
- Explicit purge/clear confirmation strings.
- Read-only default on every new MCP process.
For tool names, schemas, and client configuration, use the MCP reference.
Start Here · Localized product Wiki · Repository · Releases · Security · Report an issue
Guidance tracks the current master branch. For a deployed release, consult the repository documentation at that release tag before changing configuration.
CCAM Handbook
Use CCAM
- Read the dashboard
- Sessions and agents
- Kanban and tasks
- Tokens and costs
- Run agents
- Personal settings
Operate CCAM
- Deployment guide
- Hook health
- Security
- Backups and retention
- Prometheus and Grafana
- Remote machines
- Upgrades and rollback
- Incident runbooks
Automate and extend
- CLI patterns
- MCP workflows
- Alerts and webhooks
- Dynamic workflows
- Skills and plugins
- Safe config explorer
- Integration patterns
Help