Skip to main content

Connect Your Agent with MCP

Equip Claude Code, Codex and other compatible agents with UnfoldAI's project context, checkpoint and verification tools. Your agent can use them to understand recent work, preserve a recovery point and prepare the next useful check. You review checkpoint approvals and recovery in VS Code.

When work moves between agents, ask the next agent to use the project context first:

“Read the current Second Opinion and Claude Code’s API change before updating the client retries. Explain how you will verify a lost acceptance response.”

Illustrative MCP context request before Codex updates a client to match Claude Code’s API change

Illustrative MCP workflow: bring Claude Code’s API context to Codex before the next client change.

Connect from UnfoldAI​

  1. Open exactly one trusted local project folder in VS Code and keep it open.
  2. Choose Command → Connect your agent or Toolbox → MCP.
  3. Enable MCP if it is off, select your client and choose Connect.
  4. Complete any confirmation shown in the client. Follow the client-specific guidance if setup needs another step.
  5. Once connected, copy the first request into your agent's chat and check for a successful tool result.

MCP is optional and off by default. You can use Command and the local Second Opinion without connecting an agent.

If setup needs attention​

Check the selected client's status in Toolbox → MCP. If it says Configured or Awaiting confirmation, finish the requested step in that client, then return to UnfoldAI. Keep the project open throughout setup.

If another connection already uses the same name, review it in the client before retrying. Use UnfoldAI's Connect flow rather than copying an extension file path into a manual configuration.

Put the tools to work​

Try these requests in your connected agent's chat:

  • Before risky edits: “Create an UnfoldAI checkpoint before changing this flow. Wait for my approval if requested.”
  • When switching agents: “Use UnfoldAI to review changes since my checkpoint and suggest the next useful check.”
  • When a check fails: “Get UnfoldAI's verification prompt, investigate the issue and propose a focused check.”
  • When recovery is needed: “Request a restore review for the checkpoint we selected.”

Each agent asks UnfoldAI for the project's context when it needs it. Your agent performs its own investigation, edits and checks with its existing project access.

Available Tools​

ToolUse it to
unfold_create_checkpointPreserve a recovery point before risky work
unfold_list_checkpointsFind a relevant saved checkpoint
unfold_diff_since_checkpointUnderstand what changed since a checkpoint
unfold_get_risksReview concerns that need attention
unfold_get_verification_promptPrepare a focused check for your agent
unfold_get_recovery_promptPrepare a recovery task for your agent
unfold_request_restoreOpen a human restore review in VS Code
unfold_get_work_brief_contextBring approved project context into the agent's work

Approval States​

Checkpoint requests ask for approval by default. Review the pending request in UnfoldAI and approve or deny it. You can choose whether agents may create checkpoints through the available settings.

A restore request opens review; it does not restore files. Open Checkpoints, inspect the preview, resolve any blockers and confirm recovery yourself.

Privacy​

Connecting a client does not automatically enable richer project-context sharing or automatic AI analysis. Richer agent sharing needs separate approval for that project. Review that choice before granting it.

A connected agent may send context it receives to its own provider. UnfoldAI's Local-only setting controls UnfoldAI's network features, not another agent's networking. See privacy and data handling.

Troubleshooting​

No tools appear

  • Confirm that the intended trusted local project folder is open.
  • In Toolbox → MCP, confirm that MCP is enabled.
  • Finish any pending confirmation in your client, then send the first request again.
  • Consult the Claude Code or Codex guide for that client.

A checkpoint request is pending

Open UnfoldAI and review its approval card. Approve or deny the request there.

A restore request does not restore

Open Checkpoints to review and confirm the proposed restore. See checkpoints and recovery.