MCP And Developer Access
Connect coding agents to version-aware Archflow tools
Archflow exposes a Streamable HTTP MCP endpoint for compatible coding agents. The Archflow CLI uses the same tool and resource access and offers guided repository setup. Choose the narrowest credential scope and access level that fits the task.
Credential Options
| Credential | Location | Scope |
|---|---|---|
| Project MCP key | Project Settings → MCP/API | One project; read-only or write-enabled |
| Account token | Global Settings → Developer tools | Projects accessible to the account; expires after 30 days |
| Browser OAuth | Offered by compatible MCP clients | Account authorization without manually pasting a long-lived key |
Availability can depend on plan and project role.
Connect A Project
- Open Project Settings → MCP/API.
- Create a named key and leave Write Access off unless the agent must change the model.
- Copy the key immediately; it is shown only once.
- Use the generated Claude Code, Cursor, or generic-client configuration.
- Restart or reconnect the client and inspect the exposed tools.
The generated configuration contains the correct endpoint and bearer-token format. Do not commit the token to source control.
Project keys can be disabled, re-enabled, rotated, or deleted. Rotation immediately invalidates the old value.
Account-Wide Access
Use an account token when one client needs to discover and work across several projects. The token grants the client the same project visibility as the account, so store it more carefully than a single-project key and revoke it when the client is no longer used.
Prefer browser OAuth when your client supports the Archflow authorization flow and interactive login is practical.
Guided Coding-Agent Setup
Open Settings → Developer tools and use Bring your repository into Archflow. Choose Your coding agent, follow the generated connection instructions, and install the workflow skills. For an account connection, explicitly select the Destination project before copying the handoff prompt. Opening the guide from project settings fixes the destination to that project.
Send the generated prompt from the intended repository. The agent should verify authenticated access, report the destination project name and ID, and identify the installed skills and bundle version before proposing the initial model. Downloading a ZIP or copying a command does not establish a working connection.
The current bundle includes a manifest and supports both account and project-key connections. Skills guide the workflow; the selected MCP or CLI connection provides access. In-app Archie uses the configured AI provider and needs no coding-agent skill installation.
Tool Boundaries
MCP tools are version-aware. Inspect the active project version and stable resource IDs before writing. Project IDs are injected for project-scoped keys; do not invent or copy IDs between projects or versions.
Read tools cover project structure, relationships, workflows, documentation, analysis evidence, knowledge, and supported model surfaces. Write-enabled connections can use supported creation and update tools. Destructive MCP-only operations require an explicit confirmation argument.
Architecture Simulations use optimistic revision checks. On a revision conflict, inspect the returned latest revision before continuing.
Actors And Canonical Library Reuse
Use getArchflowGuide and read the actors-and-stakeholders and shared-libraries-and-identity sections. createSystems accepts type: "actor" for a human role without a parent or technology, and normal software types with technologyType: "library" for reusable definitions. updateSystem can correct a root system to an actor without replacing its ID or links.
inspectLibraries reads canonical definitions and inclusion references. includeLibrary reuses an existing definition in software or another library; removeLibraryInclusion removes only the exact reference. Use canonical element IDs, never Explorer occurrence IDs. Inclusion is separate from software ownership, runtime connections, and deployments; it adds no separate library release/version layer. Actors cannot include libraries.
Handbook stakeholders keep their own responsibilities and concerns and link to actors through architectureElementIds. Event Model actor nodes and AI software agents are distinct concepts. See Systems And Architecture Elements for the UI workflow.
Tool descriptions and guide content match the deployed server. Reconnect clients that cache schemas after a deployment. A newer downloaded skill must not assume an older server accepts new actor/library fields; inspect the advertised schema first.
Checkpoints And Model Evidence
Archie and MCP share checkpoint reads: listArchitectureReviewCheckpoints, getArchitectureReviewCheckpoint, and compareArchitectureCheckpoints. Use markArchitectureReviewed to capture a new baseline when writing is authorized; comparison reads do not advance that baseline.
Read tools with an optional versionId can inspect a selected version without activating it. Omission uses the active version. Snapshot-aware architecture writes require an explicit versionId and the concurrency fields advertised by the tool, including expectedSnapshotId and a request ID where supported. A prior read does not retarget a later write. Inspect the live schema, retain the reviewed snapshot, and review again after a stale-state conflict. Older tools can retain different targeting rules; do not assume all tools accept the same selectors.
inspectDataModel includes workflow usage with transition and step references. getRelationshipDataContract reads the shared logical data selection; updateRelationshipDataContract replaces it with an expected revision check. Inspect the current contract first because the selection is shared by every transition linked to the Relationship.
See Checkpoints And Change Review and Shared Data Contracts for the corresponding product workflows.
Recommended Skills Bundle
The project settings page provides a bundle containing:
archflow-refresh-docsfor refreshing a read-only local architecture referencearchflow-onboardfor first-time discovery and modelingarchflow-syncfor recurring architecture drift reviewarchflow-best-practicesfor modeling and evidence conventionsarchflow-github-pr-syncfor reviewing architecture changes associated with a GitHub pull request
Install the current bundle shown in Archflow rather than reusing an older downloaded copy.
Local Architecture Documentation
Use archflow context pull or the archflow-refresh-docs skill to download the connected architecture into your repository. Unqualified refreshes follow the active version; use explicit version/snapshot selectors for another state. Generated files remain read-only. See Local Architecture Documentation for discovery, refresh receipts, and the distinction from code/model synchronization.
Safe Operating Practices
- Begin read-only and enable writes for a defined task.
- Inspect before updating, and reuse returned stable IDs.
- Keep product-facing names human-readable; put code paths in descriptions or evidence.
- Review the active version before every mutation.
- Rotate exposed keys and disable unused ones.
- Treat generated Architecture Documents and simulations as reviewable work, not automatic truth.