MCP
Vagaris serves its MCP tools itself, at /api/mcp on the API host. The tool set is built for whoever connects, scoped to that caller's authority and audited as that caller, so a client acting through MCP can do exactly what its sign-in or seat can do and nothing more. It reaches the same REST API as the CLI and reimplements no business logic.
Connect a local client with the CLI
vagaris mcp serve runs a stdio MCP server for a client that launches one (Claude Code, Codex and most others). It carries the client's messages to the hosted endpoint under your CLI sign-in, so no API key is written into the client's configuration and an expiring sign-in is refreshed the way every other command refreshes it.
vagaris auth login
Then point the client at the command:
{
"mcpServers": {
"vagaris": {
"command": "vagaris",
"args": ["mcp", "serve"]
}
}
}
Add "--profile", "<name>" to args to use another context profile. The command writes only MCP messages to stdout; anything it has to say goes to stderr.
Connect over HTTP
A client that speaks MCP over HTTP connects to the endpoint directly:
POST https://api.vagaris.org/api/mcp
Authorization: Bearer <token>
The token decides the tool set: a person's sign-in gets the full set; an agent's API key (from vagaris agent local-cli) gets that seat's scope, so a propose-only seat gets the propose-only set and a seat with an explicit tool list gets exactly that list. A request without a valid token is refused with JSON-RPC error -32001.
paperclipApiRequest is the escape hatch for any REST endpoint no tool covers. Tool names keep the paperclip prefix for compatibility with existing client configurations and prompts; every tool is listed under Tools below.
The standalone package
@vagarylabs/mcp-server (npm install -g @vagarylabs/mcp-server, command vagaris-mcp-server) is the earlier way in: a local process that holds an API key in its environment. It keeps working for existing configurations, but receives no new versions and is replaced by the two paths above. vagris-mcp-server and paperclip-mcp-server remain as aliases of the same command, because MCP client configurations name the command to spawn.
Configuration
Everything comes from the environment, read under the canonical VAGARIS_* prefix, with VAGRIS_* as the accepted fallback:
| Suffix | Required | Meaning |
|---|---|---|
API_URL | yes | The Vagaris API origin: https://api.vagaris.org for Vagaris Cloud, or the one vagaris context show --verbose reports for a dedicated service (/api is appended if missing). The MCP server does not run discovery itself |
API_KEY | yes | Bearer token — an agent API key from vagaris agent local-cli |
COMPANY_ID | no | Default company for company-scoped tools |
AGENT_ID | no | Default agent for checkout helpers |
RUN_ID | no | Run id forwarded on mutating requests, for attribution |
MCP_TOOL_MODE | no | full (default), propose, or allowlist |
MCP_TOOL_ALLOWLIST | no | Comma-separated tool names exposed when mode is allowlist |
propose curates the tool set to reads plus comment, suggest-tasks, ask-user-questions and request-confirmation — the safe surface for a propose-only seat. allowlist exposes only the named tools, which is how a lease's explicit tool policy reaches an MCP-connected agent.
The quickest way to get the required values is the export block printed by:
vagaris agent local-cli <agent> --company-id <company-id>
Client configuration
Most MCP clients accept a JSON block of this shape:
{
"mcpServers": {
"vagaris": {
"command": "vagaris-mcp-server",
"env": {
"VAGARIS_API_URL": "https://api.vagaris.org",
"VAGARIS_API_KEY": "<agent-api-key>",
"VAGARIS_COMPANY_ID": "<company-id>",
"VAGARIS_AGENT_ID": "<agent-id>"
}
}
}
}
Tools
The server registers 111 tools. This list is generated from the tool definitions (node scripts/check-docs-drift.mjs --mcp-tools) and the docs-drift gate fails if it falls out of date. Tools marked propose are the only ones a propose-only seat receives.
| Tool | What it does |
|---|---|
paperclipAddApprovalComment | Add a comment to an approval |
paperclipAddComment (propose) | Add a comment to an issue; include resume=true when intentionally requesting follow-up on resumable closed work |
paperclipApiRequest | Make a JSON request to an existing Vagaris /api endpoint for unsupported operations |
paperclipApprovalDecision | Approve, reject, request revision, or resubmit an approval |
paperclipAsk | Ask the organization what is true right now (active missions, open improvement hypotheses, blocked work, pending approvals, agents, feature convergence) — a read-only projection of GET /companies/:companyId/ask, the SAME server contract Console and the CLI consume. |
paperclipAskUserQuestions (propose) | Create an ask_user_questions interaction on an issue |
paperclipAssessOpportunity | Record one departmental assessment of an opportunity through the existing authority checks |
paperclipAssignIssue (propose) | Route an unassigned (or your own) issue to an owning agent in the same company by setting assigneeAgentId — the sole board-routing write available in propose mode. |
paperclipCapabilityEvidence | List the evidence recorded on a capability node (facts filed once per capability, surfaced on every consuming feature) |
paperclipCheckoutIssue | Checkout an issue for an agent |
paperclipCommissionFeature | Raise an opportunity to close one or more of a feature's gap dimension assessments at a target maturity. |
paperclipControlIssueWorkspaceServices | Start, stop, or restart the current issue execution workspace runtime services |
paperclipCreateApproval | Create a board approval request, optionally linked to one or more issues |
paperclipCreateIssue | Create a new issue |
paperclipCreateOpportunity | Record an opportunity thesis without making a decision |
paperclipDecideDefinition | The stored authority event over a feature's definition (MERGE / MOVE / ADOPT_EXTERNAL / REJECT / DEFER / NEEDS_EVIDENCE / RETURN_FOR_REVISION / RETIRE_LEGACY_SPEC / APPROVE_RELEASE). |
paperclipDecideOpportunity | Move an opportunity's status or record its decision. |
paperclipDecideSubjectDefinition | The stored authority event over a product or capability definition — a RATIFY here is what makes a BASELINE target the organization holds. |
paperclipDecisionHistory (propose) | One decision line's full history — every version and row including retracted and superseded ones, and its genome edges. |
paperclipDecisionsEffective (propose) | What organizational decisions govern a subject right now, or as of an instant: rulings live at asOf (valid time), each with its statement, class, scope, authority, assurance, sources and chain. |
paperclipDecisionsList (propose) | List every organizational decision line (ruling) in the company, proposals included, with its current status. |
paperclipDispatchWork | Dispatch work to an executor by CAPABILITY (not by seat). |
paperclipFeatureEndstate | How a feature SHOULD look: the full 47-dimension completeness end-state (each dimension's TARGET → CURRENT → GAP → PROOF → disposition, grouped by layer) plus the connected execution (missions/tasks). |
paperclipFeatureInitiatives | Which initiatives claim this feature — creating, advancing, depending on, validating or retiring it — each with what that relationship MEANS and the definition version the initiative commits against. |
paperclipFileCapabilityClaim | File a claim on a capability node (agent callers are downgraded to executor_claim by the server, exactly as on features) |
paperclipGetAgent (propose) | Get a single agent by id |
paperclipGetApproval (propose) | Get an approval by id |
paperclipGetApprovalIssues (propose) | List issues linked to an approval |
paperclipGetAssimilationCandidates | THE CANDIDATE EVALUATION (operator ruling 2026-09-06) — weigh EVERY assessment of one feature against the RUNNING artifact: one deficiency class per dimension (a implementation candidate · b acquire evidence · c definition work · d already fixed · e existing work · f blocked external · g not relevant) and one response in the operator's vocabulary (RELEASE · VERIFY · RECONCILE · RESUME · WAIT_LINK · INVESTIGATE · DEFINE · IMPLEMENT · DECLINE — 'already fixed' SPLITS on whether the fix is on the running artifact: the tree is not production). |
paperclipGetAssimilationCorpus | VIEW A — the corpus accounting for a company: the unfiltered census (discovered, classified, segmented, extracted, bound, ambiguous, unbound) ALONGSIDE the filtered count this query matched. |
paperclipGetAssimilationFeature | VIEW C — what SOURCES say about one feature: claims, the sources carrying them, near-misses, the evidence basis and contradictions. |
paperclipGetAssimilationFeatureSources | THE OWNER VIEW of one feature — paperclipGetAssimilationFeature extended with the import side: selected source versions (revision + hash, superseded versions kept), statement lineages, conflicts, unresolved interpretations, the last successful import and the import history. |
paperclipGetAssimilationImport | ONE IMPORT as persisted — the same body the import act returned, re-read: pinned sources, lineage (organization, run, extraction version, capture digest), claims, statement lineages, expectation differences with their reasons, findings and unresolved interpretations. |
paperclipGetAssimilationImportApproval | IMPORT APPROVAL STATUS (read) — one import approval in this organization: the manifest hash and subject it binds, the sources of that manifest, who recorded it and when, whether it is still valid for an import of that manifest, the six effects it authorizes, the prohibited effects, and the runs that used it, and the MISSION that waits on it (its derived state: waiting_for_approval, approved_not_executed, executed_not_closed, executed, refused — and the run carrying the receipt once it executed). |
paperclipGetAssimilationOccurrence | VIEW B (the span) — open ONE exact occurrence: the span a claim actually points at, rather than the file it sits in. |
paperclipGetAssimilationReviewQueue | VIEW D — the spans needing human judgment, by reason, with what each reason MEANS. |
paperclipGetAssimilationSource | VIEW B — one source artifact in full: its versions, spans, claims, linked entities and findings. |
paperclipGetAuthority (propose) | Get the current caller's authority: whether authenticated, can mutate, and requires approval. |
paperclipGetComment (propose) | Get a specific issue comment by id |
paperclipGetDefinitionAuthority | Preview, per decision kind, whether the calling principal may take it on this feature — the same check the decide door runs, read-only, deciding nothing |
paperclipGetDefinitionPacket | Render the IMMUTABLE decision packet for one named definition version — content, every review, dissent named separately, alternatives, and the content hash a human decision must cite. |
paperclipGetDocument (propose) | Get one issue document by key |
paperclipGetFeature | Get a feature (slug or feature:<slug> id) with its derived state, edges, and evidence counts. |
paperclipGetFeatureContextPack | THE CONTEXT PACK for one feature (operator ruling 2026-09-14): ask Vagaris what the current state is, what is blocked, what changed since a cursor, what is next and why — in ONE bounded body instead of reading rows, docs or PRs. |
paperclipGetFeatureDefinition | Read a feature's CURRENT definition version, or null if nobody has opened one yet |
paperclipGetFeatureRecommendation | The RECOMMENDATION packet for a feature's definition (ruling 2026-09-07 §8): headline, evidence-backed why, the proposed target, the four material decisions (ui/api/cli/standalone capability), risk, every build disposition considered (RESUME … BUILD) with the one chosen, and required_authority — always pa_approval since ruling 2026-10-03 (a person ratifies; a seat may propose and request ratification, never ratify). |
paperclipGetFeatureTarget | A feature's whole target as ONE content-addressed revision (ruling 2026-10-03): state MIGRATED_BASELINE / NEEDS_CONFIRMATION / RATIFIED, the live digest, the standing ratified revision, any pending candidate and a per-dimension diff. |
paperclipGetGoal (propose) | Get a goal by id |
paperclipGetHeartbeatContext (propose) | Get compact heartbeat context for an issue |
paperclipGetIssue (propose) | Get a single issue by UUID or identifier |
paperclipGetIssueLease | Who holds a mission's governed lease right now: holder, validity (verified against its signed envelope), expiry, checkpoint and whether it is adoptable |
paperclipGetIssueWorkspaceRuntime (propose) | Get the current execution workspace and runtime services for an issue, including service URLs |
paperclipGetOpportunity | Read an opportunity together with all departmental assessments |
paperclipGetProject (propose) | Get a project by id or company-scoped short reference |
paperclipGetRoutine (propose) | Get one routine's detail (triggers, latest revision, recent runs) by id. |
paperclipGetSession (propose) | Get the current Vagaris session: identity, projection, authority and subsystem health. |
paperclipGetSubjectDefinition | Read the CURRENT definition version of a product or capability (its baseline), or null if nobody has opened one yet |
paperclipGetSubjectDefinitionAuthority | Preview, per decision kind, whether the calling principal may take it on a product or capability baseline — the same check the decide door runs, read-only, deciding nothing. |
paperclipImportAssimilationSources | IMPORT (write) — run the product import operation for one subject over an EXPLICIT selection of sources at PINNED revisions (commit shas; an optional contentHash pins the bytes) UNDER A RECORDED APPROVAL: approvalId names an approval a human recorded for exactly this manifest (preview first with paperclipPreviewAssimilationImport; the server refuses by name an absent approval or one bound to a different manifest). |
paperclipInboxLite (propose) | Get the current authenticated agent inbox-lite assignment list |
paperclipInitiativeFeatures | Which features an initiative touches, and how — the reciprocal of paperclipFeatureInitiatives, from the same stored edge. |
paperclipLinkIssueApproval | Link an approval to an issue |
paperclipLinkIssueExternalRef | Link an issue to the GitHub pull request (external_id '<owner>/<repo>#<n>') or commit (external_id = full SHA, url = https://github.com/<owner>/<repo>/commit/<sha>) that carries its code. |
paperclipListAgents (propose) | List agents in a company |
paperclipListApprovalComments (propose) | List comments for an approval |
paperclipListApprovals (propose) | List approvals in a company |
paperclipListAssimilationImports | IMPORT HISTORY — every import run in the organization, newest first, paged, with total. |
paperclipListAssimilationSources | VIEW A (rows) — the source artifacts themselves under the SAME filters as the corpus accounting, paged. |
paperclipListComments (propose) | List issue comments with incremental options |
paperclipListDefinitionReviews | List every review recorded against a feature's definition |
paperclipListDocumentRevisions (propose) | List revisions for an issue document |
paperclipListDocuments (propose) | List issue documents |
paperclipListEvidence (propose) | List the evidence index across every tenant-scoped append-only plane (governed-act audit, activity log, security events). |
paperclipListFeatureClaims | List claims (what someone SAYS is true) recorded against a feature |
paperclipListFeatureEvidence | List all evidence for a feature — claims, server-probed assertions, findings, and maturity snapshots |
paperclipListFeatureGaps | List gap dimension assessments (applicable or blocked) for a feature at a required target maturity |
paperclipListFeatures | List features for a company, optionally filtered by OWNED_BY product slug, CONSUMES capability slug, or a slug/title substring match |
paperclipListGoals (propose) | List goals in a company |
paperclipListIssueApprovals (propose) | List approvals linked to an issue |
paperclipListIssues (propose) | List issues for a company with optional filters |
paperclipListMembers | List company members with their roles and current permission grants — the read half of the access surface (users:manage_permissions required server-side) |
paperclipListOpportunities | List the company's opportunities |
paperclipListPriorArt | List prior-art candidates recorded against a feature — a real search with citations (C24) |
paperclipListProjects (propose) | List projects in a company |
paperclipListRoutines (propose) | List a company's routines with their schedule triggers (kind/enabled/cronExpression/lastFiredAt) and run signals (lastTriggeredAt/lastEnqueuedAt). |
paperclipMe (propose) | Get the current authenticated Vagaris actor details |
paperclipPreviewAssimilationImport | PREVIEW (read; persists nothing) — what the product import operation WOULD do for one subject over an EXPLICIT selection of sources at PINNED revisions: each source with its revision, content hash, size and disposition; the statements the extraction rules would propose, each with its rule, fact class, value state, authority tier and the span it comes from; the existing records they may relate to (bound entities, live claims with the same statement); potential supersessions of captured versions; unresolved classifications that would go to the review queue; the permission and actor the import would record; the expected writes per table; and the fixed list of PROHIBITED effects. |
paperclipPromoteProposal | Promote ONE uncontested review proposal to the target row the organization holds (D2). |
paperclipPromoteToInitiative | Promote a ratified feature to the initiative the commission flow already understands — from the feature's standing TARGET RATIFICATION (ratification_id, from paperclipGetFeatureTarget), never a decision id. |
paperclipProposeAssimilationImport | PROPOSE (write: files the question, imports nothing) — have the product PREPARE the import manifest for one subject: it resolves the candidate sources from the declared corpus (a file is a candidate only when the binder BINDS a span to the subject), pins each at its repository's HEAD with its content hash, lists every candidate it did NOT propose with the reason, previews exactly that manifest (the same body paperclipPreviewAssimilationImport returns), and files a durable MISSION that waits for a human's approval: a pending assimilation_import approval linked to a blocked issue. |
paperclipProposeFeature | Propose a feature that does not exist yet — an idea with (optionally) a checkable signal, before any definition is written. |
paperclipProposeFeatureTargetRevision | Snapshot a feature's current dimension rows into an immutable candidate target revision (agents MAY propose; proposing is not ratifying). |
paperclipRatifyFeatureTargetRevision | Ratify ONE revision of a feature's whole target, binding its id and digest; covers every dimension in it. |
paperclipRecomputeFeature | Recompute a feature's derived state at a target maturity and persist the result as a maturity snapshot evidence node (history only — derivation itself is pure and already runs on every read) |
paperclipRecordDefinitionReview | Record a review of a definition version, performed BY one of the organization's own registered agents (C22). |
paperclipRecordSolutionCandidate | Record a prior-art candidate against a feature — a citation is required even for kind='none' (it records WHERE you looked and found nothing) |
paperclipReleaseIssue | Release an issue checkout |
paperclipRenderDefinition | Render the Markdown end-state specification for a feature, product or capability definition package |
paperclipRequestConfirmation (propose) | Create a request_confirmation interaction on an issue |
paperclipRestoreIssueDocumentRevision | Restore a prior revision of an issue document |
paperclipRevokeFeatureTargetRatification | Withdraw a feature's standing target ratification, bound to the ratification you reviewed; the feature then reads unratified everywhere. |
paperclipSearchPriorArt | Search the organization's own estate for prior art a feature could reuse — the search a prior-art record must cite |
paperclipSuggestOpportunityDepartments | Read the departments suggested to assess an opportunity, without commissioning any work |
paperclipSuggestTasks (propose) | Create a suggest_tasks interaction on an issue |
paperclipUnlinkIssueApproval | Unlink an approval from an issue |
paperclipUpdateIssue | Patch an issue, optionally including a comment; include resume=true when intentionally requesting follow-up on resumable closed work |
paperclipUpsertIssueDocument | Create or update an issue document |
paperclipVerifyFeature | Trigger the server's own probe against a feature's registered probe. |
paperclipWaitForIssueWorkspaceService (propose) | Wait until an issue execution workspace runtime service is running and has a URL when one is exposed |
paperclipWriteFeatureDefinition | Append an immutable new definition version for a feature (POST, never PUT — editing a definition costs its reviews, so this never replaces one in place). |
paperclipWriteSubjectDefinition | Append an immutable new definition version for a product or capability baseline (POST, never PUT). |
Escape hatch: paperclipApiRequest reaches any other REST endpoint.
Relationship to the CLI
The CLI and MCP are two ways into the same API with the same credentials. Use the CLI from a terminal or a script; use MCP from inside an agent, through vagaris mcp serve or the HTTP endpoint. A run hosted by vagaris dev can carry its tool policy into the standalone package through MCP_TOOL_MODE=allowlist and MCP_TOOL_ALLOWLIST.