Skip to main content

Simple MCP server for AgentOps with Zed

Project description

Zed AgentOps

  • Cross-session handoff (.agent/handoff.md)
  • CI/CD-like loop: edit -> verify -> commit -> update handoff
  • Test generation as part of the loop (agent adds tests, then verify)

Note: This project currently supports macOS only.

Quick start

zed-agentops-init project_name
zed-agentops-init --update existing_project

Use --update to migrate an existing AgentOps-managed directory (removes legacy files, creates .agent state files, and refreshes .rules).

Installation

brew tap rioriost/agentops_mcp_server
brew install agentops_mcp_server

Use zed-agentops-init.sh to scaffold a directory (it creates .rules, .zed/, .agent, and .zed/scripts/verify, plus .agent/journal.jsonl, .agent/snapshot.json, .agent/checkpoint.json). It also auto-appends common entries to .gitignore. Open the directory in Zed and use the Agent Panel.

Where things live

  • .rules : project rules auto-injected into Zed Agent context
  • .zed/tasks.json : reusable Tasks (verify, git helpers)
  • .zed/scripts/verify : the single entry point for build/test/lint (extend as needed)
  • .agent/handoff.md : cross-session handoff (source of truth)
  • .agent/work-in-progress.json : lightweight task state (phase, task, last action, next step)
  • .agent/journal.jsonl : append-only event log
  • .agent/snapshot.json : state snapshot
  • .agent/checkpoint.json : roll-forward starting point
  • /opt/homebrew/bin/agentops_mcp_server : MCP server binary installed by Homebrew (macOS)

MCP Server (Zed)

The MCP server is provided as a Homebrew-installed binary (e.g. /opt/homebrew/bin/agentops_mcp_server) and exposes a minimal JSON-RPC 2.0 stdio protocol compatible with Zed. It reads one JSON object per line from stdin and writes JSON-RPC responses to stdout. Supported methods include initialize, initialized, tools/list, tools/call, shutdown, and exit.

Zed (MCP Server):

{
  "agentops-server": {
    "command": "/opt/homebrew/bin/agentops_mcp_server",
    "args": [],
    "env": {}
  }
}

Tool Settings (settings.json):

"agent": {
  "tool_permissions": {
    "tools": {
      "create_directory": {
        "default": "allow"
      },
      "fetch": {
        "default": "allow"
      },
      "web_search": {
        "default": "allow"
      },
      "terminal": {
        "default": "allow"
      },
      "mcp:agentops-server:journal_append": {
        "default": "allow"
      },
      "mcp:agentops-server:snapshot_save": {
        "default": "allow"
      },
      "mcp:agentops-server:snapshot_load": {
        "default": "allow"
      },
      "mcp:agentops-server:checkpoint_update": {
        "default": "allow"
      },
      "mcp:agentops-server:checkpoint_read": {
        "default": "allow"
      },
      "mcp:agentops-server:roll_forward_replay": {
        "default": "allow"
      },
      "mcp:agentops-server:continue_state_rebuild": {
        "default": "allow"
      },
      "mcp:agentops-server:session_capture_context": {
        "default": "allow"
      },
      "mcp:agentops-server:repo_verify": {
        "default": "allow"
      },
      "mcp:agentops-server:repo_commit": {
        "default": "allow"
      },
      "mcp:agentops-server:repo_status_summary": {
        "default": "allow"
      },
      "mcp:agentops-server:repo_commit_message_suggest": {
        "default": "allow"
      },
      "mcp:agentops-server:tests_suggest": {
        "default": "allow"
      },
      "mcp:agentops-server:tests_suggest_from_failures": {
        "default": "allow"
      },
      "mcp:agentops-server:commit_if_verified": {
        "default": "allow"
      }
    }
  },
  "default_model": {
    "provider": "copilot_chat",
    "model": "gpt-5.2-codex"
  }
},

MCP tools (snake_case):

  • journal_append
  • snapshot_save
  • snapshot_load
  • checkpoint_update
  • checkpoint_read
  • roll_forward_replay
  • continue_state_rebuild
  • session_capture_context
  • repo_verify
  • repo_commit
  • repo_status_summary
  • repo_commit_message_suggest
  • tests_suggest
  • tests_suggest_from_failures
  • commit_if_verified
  • Aliases: dotted names (e.g. roll_forward.replay) map to snake_case for compatibility.

Usage notes:

  • Call tools/list to enumerate tools. Example request: {"jsonrpc":"2.0","id":1,"method":"tools/list"}
  • Call tools/call to invoke a tool. Example request: {"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"journal_append","arguments":{"kind":"task.start","payload":{"title":"Review v0.1.0 docs"}}}}
  • Successful responses include a result; failures include an error with code and message.

Then register the MCP server in Zed and grant tool permissions as you prefer.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentops_mcp_server-0.1.3.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentops_mcp_server-0.1.3-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file agentops_mcp_server-0.1.3.tar.gz.

File metadata

  • Download URL: agentops_mcp_server-0.1.3.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentops_mcp_server-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ac5fb5d908fe66814a743c770844473bb89549dc1f65e5276e1611ab7c30015b
MD5 5635e743fd41d1dcec6494ea62f46327
BLAKE2b-256 80c8815b144c5b6f22a66f07c2f791f46ed8f0e9f09169801d057e9506e7501e

See more details on using hashes here.

File details

Details for the file agentops_mcp_server-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: agentops_mcp_server-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentops_mcp_server-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e4781acf3fcec062b913b022f40cec0cad76303a9660d6a25d90b74d2671b8a6
MD5 fb579dcc8e792bb2513acb8749fe92a9
BLAKE2b-256 33688bce529614c25a8439f799b24e5bdac267e6ebea12e108f9989ea651939b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page