Skip to main content

Simple MCP server for AgentOps with Zed

Project description

Zed AgentOps

Zed AgentOps helps you run an edit → verify → commit loop inside Zed with an MCP server and a project scaffold designed for resumable agent work.

Currently supported on macOS.

What it does

  • Scaffolds a project for AgentOps use in Zed
  • Provides a local MCP server for repo, verification, and resume-oriented workflow helpers
  • Adds a default verify entry point you can extend for your project
  • Keeps enough local state for the agent to resume work more reliably across interrupted sessions

This README is written for users of the tool. Internal implementation details are intentionally kept to a minimum.

Installation

Install with Homebrew:

brew tap rioriost/agentops_mcp_server
brew install agentops_mcp_server

This installs the agentops_mcp_server binary and zed-agentops-init.sh.

Quick start

Initialize a new project directory:

zed-agentops-init.sh my_project

Update an existing AgentOps-managed directory:

zed-agentops-init.sh --update my_project

After initialization:

  1. Open the directory in Zed
  2. Register the MCP server in your Zed settings
  3. Open the Agent Panel
  4. Start working in the repo

What initialization creates

Running zed-agentops-init.sh sets up the files you need to start using AgentOps in Zed:

  • .rules
  • .zed/tasks.json
  • .zed/scripts/verify
  • .agent/tx_event_log.jsonl
  • .agent/tx_state.json

It also:

  • creates a Git repository if one does not already exist
  • appends common ignore entries to .gitignore
  • preserves existing files when possible
  • supports --update to refresh an existing setup

Recommended Zed configuration

Add the MCP server to your Zed settings.

Minimal MCP server example:

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

If you also want to pre-allow commonly used AgentOps tools in the Agent Panel, your settings.json can include entries like this under your tool permissions:

{
  "terminal": {
    "default": "allow"
  },
  "mcp:agentops-server:workspace_initialize": {
    "default": "allow"
  },
  "mcp:agentops-server:tx_event_append": {
    "default": "allow"
  },
  "mcp:agentops-server:tx_state_save": {
    "default": "allow"
  },
  "mcp:agentops-server:tx_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"
  },
  "mcp:agentops-server:ops_compact_context": {
    "default": "allow"
  },
  "mcp:agentops-server:ops_handoff_export": {
    "default": "allow"
  },
  "mcp:agentops-server:ops_resume_brief": {
    "default": "allow"
  },
  "mcp:agentops-server:ops_start_task": {
    "default": "allow"
  },
  "mcp:agentops-server:ops_update_task": {
    "default": "allow"
  },
  "mcp:agentops-server:ops_end_task": {
    "default": "allow"
  },
  "mcp:agentops-server:ops_capture_state": {
    "default": "allow"
  },
  "mcp:agentops-server:ops_task_summary": {
    "default": "allow"
  },
  "mcp:agentops-server:ops_observability_summary": {
    "default": "allow"
  }
}

Adjust permissions to match your own security preferences.

Typical usage flow

Once the project is initialized, the normal flow is:

  1. Ask the agent to make a change
  2. Let it run project verification
  3. Review the result
  4. Commit the change

The scaffolded verify script is the default entry point for checks:

.zed/scripts/verify

Extend it to match your repository. By default, it tries common checks for changed files, such as Python, Swift, Rust, shell scripts, and Bicep where the corresponding tools are installed.

Release verification / coverage

For release-oriented Python coverage runs, use:

.zed/scripts/verify-release

This requires pytest-cov to be available.

Updating from older versions

If you already use Zed AgentOps, run:

zed-agentops-init.sh --update <project>

This refreshes the user-facing scaffold, especially:

  • .rules
  • .agent state file presence
  • default verify/task scaffolding where applicable

Recent versions also tightened resumability and state alignment, so updating is recommended before starting new work in an older scaffold.

What changed in recent versions

Current behavior summary

  • The scaffold now aligns .rules with the current workflow expectations
  • Initial transaction state starts from the current baseline
  • Resume behavior is centered on the local AgentOps state files
  • The default setup is aimed at safer interruption/resume cycles

If you are upgrading from an older scaffold

You may notice:

  • refreshed .rules
  • refreshed initial state defaults
  • improved consistency between the scaffold and the current runtime behavior

In most cases, --update is enough.

Files you will commonly interact with

  • .rules — project instructions injected into the agent context
  • .zed/scripts/verify — your main verification entry point
  • .zed/tasks.json — reusable Zed tasks
  • .agent/tx_event_log.jsonl — local AgentOps event log
  • .agent/tx_state.json — local AgentOps state used for resuming work

For most users, the important point is simple: keep .rules current by using the latest scaffold or running --update.

Notes

  • macOS only at the moment
  • The generated scaffold is meant to be customized per repository
  • The default verify script is intentionally conservative and may need project-specific additions

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.4.12.tar.gz (161.9 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.4.12-py3-none-any.whl (45.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentops_mcp_server-0.4.12.tar.gz
  • Upload date:
  • Size: 161.9 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.4.12.tar.gz
Algorithm Hash digest
SHA256 35b948589a51e47e5a38d1a477b53b04cf38b784a01433b3d8939dfc90c75bb2
MD5 9fddfc978bb77bbc7b2b1dd1be7cc03e
BLAKE2b-256 d952509e3d42d69e9183a64c28af3a428dbef7ae280e44c582c7e8e55c8e0f0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agentops_mcp_server-0.4.12-py3-none-any.whl
  • Upload date:
  • Size: 45.6 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.4.12-py3-none-any.whl
Algorithm Hash digest
SHA256 c4653d33c6ff2d73bad5956c770024dc814c9e5aeccb455a959c99e23ae92004
MD5 b8c7685c8c5f11f581bb4a800b334048
BLAKE2b-256 4c7b894522641d25c58ae9f4cbc7b3986a19df6449c3cc60945bed68b2045c9c

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