Coding assistants (MCP)
sysgraph is also an MCP server (Model Context Protocol). Coding assistants such as Claude Code, Cursor and VS Code connect to it and read the standards of a workspace while they write code:
- accepted decisions (ADRs) that apply to the application you are working on — its own, its parent system's and the workspace-wide ones;
- the catalog: which item a repository or project is (by its code names), its owner teams, its zone and the zone's boundary rule;
- endpoint contracts: parameters, body fields, responses, security, deprecated;
- live flows: the sequence diagrams an application takes part in.
Everything is read-only. The same privacy rules as the public API apply: no personal data, no approvals, no drafts or project proposals.
Cloud workspaces
Each member connects with a personal MCP token (sgp_…): open Workspace › Integrations › Coding assistants (MCP), create a token under My personal tokens and copy it (it is shown once). The assistant then works on your behalf, with your role and permissions. The workspace's public API token (sga_…) also works, always read-only — handy for a shared CI or portal setup. The same section shows the MCP address and ready-made configuration for each assistant.
Keep the token in an environment variable, not in the file — then you can commit the configuration to the repository and every team member uses their own token:
export SYSGRAPH_TOKEN=sgp_…
claude mcp add --transport http sysgraph https://<address>/functions/v1/mcp --header "Authorization: Bearer $SYSGRAPH_TOKEN"// .mcp.json (Claude Code) — Cursor uses .cursor/mcp.json with "Bearer ${env:SYSGRAPH_TOKEN}"
{ "mcpServers": { "sysgraph": { "type": "http", "url": "https://<address>/functions/v1/mcp",
"headers": { "Authorization": "Bearer ${SYSGRAPH_TOKEN}" } } } }VS Code (.vscode/mcp.json) asks for the token the first time it connects; the snippet on the Integrations page sets that up.
Every MCP request counts towards the token's limit (120 a minute, 10,000 a day).
What the owner controls
The workspace owner sets the MCP mode in the same section (save with Save, like other workspace settings):
| Mode | Effect |
|---|---|
| Off | No assistant can connect (personal or workspace tokens). The public API keeps working. |
| Read-only (default) | Assistants only read. |
| Can write | With a personal token the assistant can also propose a decision, propose a project design (a draft project) and write comments, as the connected person. Live content is never changed or deleted. |
In write mode the person's own permissions still apply: a viewer can only comment, and a member without permission to write decisions can't propose one. A proposal goes through the decision board like any other. The owner sees every member's tokens and can revoke them; removing a member stops their tokens immediately.
Local and Lite workspaces
Local workspaces live in the browser, so the assistant reads them from a backup file: make one in Settings › Data › Back up and point the local MCP server at it. sysgraph-mcp.mjs comes in the Lite download archive (one file, Node 20+):
claude mcp add sysgraph -- node /path/to/sysgraph-mcp.mjs --file /path/to/sysgraph-backup.json --workspace "Shop"--workspace (id or name) is needed when the backup holds several workspaces. A newer backup at the same path is picked up automatically. The local server never connects to the network. The backup file never changes: what the assistant writes — progress (report_task), token usage, draft project designs, proposed decisions and comments — is appended to sysgraph-agents.jsonl next to the backup (--reports, --name, --read-only); import it on the Agents page, review and Save.
Tools
| Tool | What the assistant gets |
|---|---|
standards | For a repository / application: accepted decisions to follow (with the decision and its consequences), its zone and boundary rule, its endpoints with deprecated flags |
component | A catalog item by id, code name (repository or project name) or name: place in the hierarchy, owner teams, endpoints, linked decisions |
endpoint | An endpoint by method and path (GET /api/v2/orders/42 finds /orders/{id}), with its contract and provider |
flows, flow | Live sequence diagrams that involve an application or call an endpoint; one flow with its Mermaid diagram (planned, dropped and proposal flows are left out) |
tasks, task | Open project tasks with their agent team; one task with its scope, design flows, decisions, boundary rules and acceptance criteria |
check_task | The assistant checks its own code against the task before calling it done: it passes a sysgraph-scan output and gets the differences from the design — endpoint method and path, response codes from the contracts, calls the design flows have or do not have, zone boundary rules. In the cloud the scan is sent as content (up to 256 KB: scan only the task's repository); the local server also reads it from a file. Runtime bugs are for the tests |
propose_decision, add_comment | Can write mode, personal token: open a decision proposal; comment on a decision, flow, endpoint, catalog item or project / task |
propose_project | Can write mode, personal token, not for viewers: the architect tool — turn a request into a draft project: goal, scope (components and endpoints that change, new or removed ones), tasks for agent teams, design flows in Mermaid (a changed copy of a current flow, or a new flow) and linked decisions. Participants and calls are linked to the catalog and endpoints by name. Only drafts can be revised; nothing goes live — see Agent teams end to end |
report_usage | Can write mode, personal token: token usage of a session per model, normally sent by the agent kit's hook |
report_task | Can write mode, personal token: report progress on a task (started, working, blocked, review, done, failed) — shown on the Agents page |
check_call | Whether one application may call another directly under the zone boundary rules |
decisions, decision | Decision lists (accepted by default; by tag or application) and one decision in full |
search, overview | Full-text search; counts, zones, teams and decision tags |
Tip: link decisions to catalog items and add code names (repository / project names) to the catalog — then standards returns exactly what applies to the repository the assistant is working in.