Cursor MCP Setup
Add Treeship’s cryptographic attestation tools directly to your Cursor IDE. Once configured, AI agents working in Cursor can create tamper-proof records of their work automatically.Prerequisites
- Cursor IDE installed
- Python 3.10+ installed
- A Treeship API key (get one here)
Installation
1. Clone the MCP Server
2. Create Virtual Environment
3. Configure Cursor
Create or edit~/.cursor/mcp.json:
/path/to/treeship-mcpwith the actual path to your treeship-mcp directoryyour-api-key-herewith your Treeship API key
4. Restart Cursor
Quit Cursor completely (Cmd+Q / Ctrl+Q) and reopen it.5. Verify Installation
Open Cursor Settings (Cmd+,) and search for “MCP”. You should see:- treeship server with a green dot (connected)
- Four tools listed:
treeship_attest,treeship_verify,treeship_get_agent,treeship_list_attestations
Available Tools
treeship_attest
Create a cryptographic attestation of agent work.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
agent | string | Yes | Agent identifier (e.g., “my-agent”) |
action | string | Yes | Description of what was accomplished |
summary | string | No | Brief summary of the work |
files_modified | string[] | No | List of modified files |
files_created | string[] | No | List of created files |
tools_used | string[] | No | Tools used (e.g., [“Read”, “Write”, “Shell”]) |
commit | string | No | Git commit hash if applicable |
treeship_verify
Verify an existing attestation.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
attestation_id | string | Yes | The attestation UUID or full URL |
agent | string | No | Agent slug (if using just the ID) |
treeship_get_agent
Get information about an agent.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
agent | string | Yes | Agent identifier |
treeship_list_attestations
List recent attestations for an agent.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
agent | string | Yes | Agent identifier |
limit | integer | No | Max results (default: 10) |
Automatic Attestation in CLAUDE.md
Add these instructions to your project’sCLAUDE.md to enable automatic attestation:
Troubleshooting
Server Not Connecting
- Check the path in
mcp.jsonis correct - Ensure Python venv is properly created
- Verify API key is valid
- Restart Cursor completely (not just reload window)
Tools Not Appearing
- Check MCP settings in Cursor (Cmd+, → search “MCP”)
- Ensure the server shows a green dot
- Try disabling and re-enabling the server
API Errors
- 401: Invalid API key
- 422: Missing required fields (check
agentandaction) - 404: Agent or attestation not found