Connect an AI agent to Vivary
Use this guide after Vivary creates or adopts a workspace.
Result
Section titled “Result”The agent can read bounded project context. The connection does not grant write authority.
Agent contract
Section titled “Agent contract”| Field | Value |
|---|---|
| Goal | Give one agent bounded local context. |
| Required input | Healthy workspace and approved runtime. |
| Default authority | Read public workspace context. |
| Optional authority | Start the local MCP adapter. |
| Prohibited action | Do not enable writes, providers, indexing, or network access. |
| Proof | The agent reads the context route and returns a bounded result. |
1. Verify the workspace
Section titled “1. Verify the workspace”Run Doctor before the connection.
uvx create-vivary doctor C:/path/to/projectStop if Doctor reports an error.
2. Use the standard agent route
Section titled “2. Use the standard agent route”Start the agent in the workspace root. Tell the agent to read these files in order:
AGENTS.md.vivary/context.mdSTATE.md, only when current state affects the task
Use this instruction:
Read AGENTS.md and .vivary/context.md before work.Read STATE.md only when current state affects the task.Retrieve only the evidence that the task needs.State what is known, inferred, and unknown.Stop at privacy, authority, destructive, credential, publication, and human gates.This route works without MCP.
3. Install MCP only when required
Section titled “3. Install MCP only when required”MCP is an optional local adapter. The normal Vivary installation does not include it.
From a source checkout, install the reviewed local packages together.
python -m pip install ./packages/core ./packages/tropo ./packages/mcpThis command changes the selected Python environment. Get approval before the installation.
4. Bind the workspace at startup
Section titled “4. Bind the workspace at startup”Use an operator-selected alias and an absolute path.
vivary-mcp --workspace project C:/path/to/projectThe process uses local standard input and output. The process does not open a network service.
Use this generic client configuration:
{ "mcpServers": { "vivary": { "command": "python", "args": ["C:/path/to/vivary/packages/mcp/vivary_mcp.py", "--workspace", "project", "C:/path/to/project"] } }}Put the configuration in the client-owned MCP settings file. Do not add a client-specific file unless the operator selects that client.
5. Check discovery
Section titled “5. Check discovery”The client must discover exactly four tools.
| Tool | Result |
|---|---|
vivary_find |
Bounded task context. |
vivary_query |
Filtered typed matches. |
vivary_check |
Validation findings without repair. |
vivary_capsule |
Public Task Capsule for later evidence binding. |
Every result has known, unknown, or refused status.
The result identifies the workspace by alias only.
6. Confirm the authority boundary
Section titled “6. Confirm the authority boundary”Inspect the workspace tree. Call one read tool. Inspect the workspace tree again. The tool call must create no file. MCP cannot approve or apply a record. MCP cannot repair, index, publish, deploy, or call a provider.
Use Get bounded context for the first retrieval task. Use the MCP reference for schemas, limits, diagnostics, and conformance status.
