Simple MCP server for AgentOps with Zed
Project description
Zed AgentOps
- CI/CD-like loop: edit -> verify -> commit
- Test generation as part of the loop (agent adds tests, then verify)
Note: This project currently supports macOS only.
Quick start
zed-agentops-init.sh project_name
zed-agentops-init.sh --update existing_project
Use --update to migrate an existing AgentOps-managed directory (refreshes .rules and ensures .agent state files exist; it does not remove legacy artifacts).
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 canonical .agent/tx_event_log.jsonl and .agent/tx_state.json, along with legacy derived-only .agent/journal.jsonl).
It also auto-appends common entries to .gitignore.
Open the directory in Zed and use the Agent Panel.
For release coverage runs, use .zed/scripts/verify-release (requires pytest-cov).
Workflow tips
- Before ending a session or when context is tight:
- Run
ops_compact_context(preferinclude_diff=false,max_charsoptional) - Run
ops_capture_state(captures transaction state) - Run
ops_handoff_export(writes.agent/handoff.json)
- Run
- To resume quickly: run
ops_resume_brief - Task tracking:
ops_start_task/ops_update_task/ops_end_task - Token discipline: prefer summaries/diff stats over full diffs and keep outputs short
Semantic resume (0.4.0)
- Canonical sources of truth are
.agent/tx_event_log.jsonl(event log) and.agent/tx_state.json(materialized state). semantic_summarycaptures concise progress;user_intentrecords explicit resume intent (e.g., “continue”)..agent/handoff.jsonis derived-only and never a canonical input for resume decisions.
About .rules (from v0.2.0)
zed-agentops-init.sh generates .rules.
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).zed/scripts/verify-release: release-only coverage run (pytest-cov).agent/tx_event_log.jsonl: canonical transaction event log.agent/tx_state.json: canonical materialized transaction state.agent/handoff.json: derived-only human-readable summary.agent/observability_summary.json: derived-only observability summary.agent/journal.jsonl: legacy derived-only artifacts/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": {
"PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
}
}
}
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: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"
}
}
},
"default_model": {
"provider": "copilot_chat",
"model": "gpt-5.2-codex"
}
},
MCP tools (snake_case):
commit_if_verifiedtx_event_appendtx_state_savetx_state_rebuildsession_capture_contextrepo_verifyrepo_commitrepo_status_summaryrepo_commit_message_suggesttests_suggesttests_suggest_from_failuresops_compact_contextops_handoff_exportops_resume_briefops_start_taskops_update_taskops_end_taskops_capture_stateops_task_summaryops_observability_summary- Aliases: dotted names (e.g.
ops.handoff_export) map to snake_case for compatibility.
Usage notes:
- Call
tools/listto enumerate tools. Example request:{"jsonrpc":"2.0","id":1,"method":"tools/list"} - Call
tools/callto invoke a tool. Example request:{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"ops_start_task","arguments":{"title":"Review v0.1.0 docs"}}} - Successful responses include a
result; failures include anerrorwithcodeandmessage.
Then register the MCP server in Zed and grant tool permissions as you prefer.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentops_mcp_server-0.4.2.tar.gz.
File metadata
- Download URL: agentops_mcp_server-0.4.2.tar.gz
- Upload date:
- Size: 92.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b25c40dcc63ea4b9cd435d58810f653ac11248fa49eb395fe25a5ae43654636
|
|
| MD5 |
107894f176693e28e94cd5e8a80ed064
|
|
| BLAKE2b-256 |
0c3f2cf2f5c5ef532b935b0a1316854cd2fe5d23fe7d777482eb21024f3eac63
|
File details
Details for the file agentops_mcp_server-0.4.2-py3-none-any.whl.
File metadata
- Download URL: agentops_mcp_server-0.4.2-py3-none-any.whl
- Upload date:
- Size: 39.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
525a17aafbf68501b76bb0fa120a5673bcc0b6ae1eb1e603fe0d1d9a89e478d8
|
|
| MD5 |
d4987b3122b65a3679c45fa621bc5931
|
|
| BLAKE2b-256 |
2ec4047fce806238c0d7ae5975e328d48c2414908d8c93ffd2b2c794a42303cc
|