Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Medium CLI + 23-tool MCP server. Your IDE drafts replies. No API keys.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
MEDIUM_INTEGRATION_TOKEN, MEDIUM_SID, MEDIUM_UID, MEDIUM_XSRF, MEDIUM_CF_CLEARANCE, MEDIUM_USERNAME, MEDIUM_OPS_MCP_PATH, MEDIUM_OPS_LLM_CMD标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"medium-ops": {
"command": "uvx",
"args": [
"medium-ops",
"mcp",
"serve"
],
"env": {
"MEDIUM_INTEGRATION_TOKEN": "your-value",
"MEDIUM_SID": "your-value",
"MEDIUM_UID": "your-value",
"MEDIUM_XSRF": "your-value",
"MEDIUM_CF_CLEARANCE": "your-value",
"MEDIUM_USERNAME": "your-value",
"MEDIUM_OPS_MCP_PATH": "your-value",
"MEDIUM_OPS_LLM_CMD": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add medium-ops --env MEDIUM_INTEGRATION_TOKEN=your-value --env MEDIUM_SID=your-value --env MEDIUM_UID=your-value --env MEDIUM_XSRF=your-value --env MEDIUM_CF_CLEARANCE=your-value --env MEDIUM_USERNAME=your-value --env MEDIUM_OPS_MCP_PATH=your-value --env MEDIUM_OPS_LLM_CMD=your-value -- uvx medium-ops mcp serve运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"medium-ops": {
"command": "uvx",
"args": [
"medium-ops",
"mcp",
"serve"
],
"env": {
"MEDIUM_INTEGRATION_TOKEN": "your-value",
"MEDIUM_SID": "your-value",
"MEDIUM_UID": "your-value",
"MEDIUM_XSRF": "your-value",
"MEDIUM_CF_CLEARANCE": "your-value",
"MEDIUM_USERNAME": "your-value",
"MEDIUM_OPS_MCP_PATH": "your-value",
"MEDIUM_OPS_LLM_CMD": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"medium-ops": {
"type": "stdio",
"command": "uvx",
"args": [
"medium-ops",
"mcp",
"serve"
],
"env": {
"MEDIUM_INTEGRATION_TOKEN": "your-value",
"MEDIUM_SID": "your-value",
"MEDIUM_UID": "your-value",
"MEDIUM_XSRF": "your-value",
"MEDIUM_CF_CLEARANCE": "your-value",
"MEDIUM_USERNAME": "your-value",
"MEDIUM_OPS_MCP_PATH": "your-value",
"MEDIUM_OPS_LLM_CMD": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
MEDIUM_UID envMEDIUM_USERNAME envMEDIUM_OPS_MCP_PATH envMEDIUM_OPS_LLM_CMD env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 06ketan 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:MEDIUM_INTEGRATION_TOKEN, MEDIUM_SID, MEDIUM_XSRF, MEDIUM_CF_CLEARANCE
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.2)于6个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Spec Driven Development, Remote Desktop Commander, Fomu MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Kenya government form guides: checklists, draft letters, eCitizen, Huduma, timelines. Sample data.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Standalone Medium CLI + 22-tool MCP server for Cursor MCP, Claude MCP, OpenCode MCP, and any stdio MCP host. Your IDE drafts the replies. Zero AI API keys.
Stories, responses, claps, feed, profiles, stats, reply engine, MCP server. One Python install, one binary, MIT licensed. Sibling of substack-ops.
uvx medium-ops mcp install cursor # or claude-desktop, claude-code, opencode, print
Your host's LLM (Cursor's, Claude's) does the drafting via the propose_reply / confirm_reply tools. No ANTHROPIC_API_KEY / OPENAI_API_KEY needed.
This project is `medium-ops` on [PyPI](https://pypi.org/project/medium-ops/) — install with `uv` / `uvx`, not unrelated `npx` packages from “Medium MCP” searches. Canonical listing: [Glama — 06ketan/medium-ops](https://glama.ai/mcp/servers/06ketan/medium-ops).
These rows help discovery (search keywords); confirm each host’s current MCP docs before upgrading.
| Host | Documentation | Typical wire-up |
|---|---|---|
| OpenCode | OpenCode MCP servers | uvx medium-ops mcp install opencode |
| Continue | Continue | uvx medium-ops mcp install print — paste the snippet into Continue’s MCP settings |
| Zed | Zed | Configure stdio MCP per Zed’s docs |
| Cline | Cline | MCP setup per extension / marketplace docs |
| Goose | Goose | MCP extensions per Goose docs |
| Host | Documentation | Typical wire-up |
|---|---|---|
| Cursor | Cursor MCP | uvx medium-ops mcp install cursor |
| Claude (Desktop / Code) | Claude Desktop, Claude Code | mcp install claude-desktop / claude-code |
| GitHub Copilot | Copilot | MCP in VS Code where supported — use print + host docs |
| ChatGPT | OpenAI | Connector flows — often REST for tools without MCP |
| Google Gemini | Gemini | Gemini CLI / IDE features per Google docs |
Auto-install:
uvx medium-ops mcp install opencode
Manual (~/.config/opencode/opencode.json):
{
"mcp": { "medium-ops": { "type": "local", "command": ["uvx", "medium-ops", "mcp", "serve"], "enabled": true } } }
Optional version pin: ["uvx", "medium-ops==0.1.2", "mcp", "serve"] (replace with current PyPI release).
Medium exposes three usable surfaces and we use all of them:
medium.com/feed/@{user} returns the author's ~10 most recent stories with body_html, pubDate, tags, hero image, and dc:creator. Zero credentials, faster than GraphQL, stable. Used by default for list_posts / get_post / get_post_content. Inspired by Portfolio_V2's blog page.medium.com/_/graphql + medium.com/_/api/* with the sid cookie. Used as a fallback when you ask for more than ~10 posts, when the post isn't in the RSS window, or for things RSS can't give you (responses, claps, feed, stats, search).api.medium.com/v1/* with an Integration Token. Supports createPost, createPostInPublication, getUser, getPublications. That's it.Force a specific transport with --source rss|graphql|auto on posts list, posts show, and posts content. The dashboard + GraphQL endpoints are undocumented and Medium can change them at any time. See Known gaps.
git clone https://github.com/06ketan/medium-ops && cd medium-ops
uv sync uv sync --extra mcp # mcp SDK for the MCP server (recommended) uv sync --extra tui # textual for the TUI
Auth is read from ~/.cursor/mcp.json's mcpServers.medium-ops.env (or medium-api / medium). Override with env or .env.
uv run medium-ops auth verify
uv run medium-ops quickstart
Every write defaults to --dry-run. Flip with --no-dry-run. All writes land in .cache/audit.jsonl and are dedup-checked against .cache/actions.db.
| Command | What it does |
|---|---|
auth verify | Probe both integration token (/me) and sid cookie (GraphQL Viewer). |
auth test | Same but exits non-zero on failure (CI-friendly). |
auth setup | Interactive: paste token / sid / uid / username to .env. |
| Command | What it does | ||
|---|---|---|---|
posts list [--user] [--limit] | Latest stories by a user (default: self). | ||
posts show | Story metadata (title, clap count, response count). | ||
posts content [--md] | Body HTML (or Markdown with --md). | ||
posts search [--limit] | Medium-side full-text search. | ||
| `posts publish -t "..." -f body.md [--pub] [--status draft | public | unlisted]` | Publish via integration token. |
| Command | What it does |
|---|---|
responses list [--limit] | Top-level responses table. |
responses tree [--out file.json] | Full response + reply tree JSON. |
responses add "body" [--parent ] [--no-dry-run] | Post a response or reply. |
| Command | What it does |
|---|---|
claps count | Total claps. |
claps give [--claps N] [--no-dry-run] | Clap 1-50 times. Dedup-protected. |
| Command | What it does | ||
|---|---|---|---|
| `feed list [--tab home\ | following\ | tag-{slug}] [--limit]` | Reader feed. |
profile me | Your full profile (GraphQL). | ||
profile get | Any user's public profile. | ||
profile stats [--days N] | Per-post views / reads / fans (dashboard scrape). | ||
profile publications | Publications you can publish to (integration token). |
| Command | What it does |
|---|---|
reply template --template thanks | Rule-based replies (no LLM). |
reply bulk --out drafts.json | Draft every response to a file. |
reply bulk-send drafts.json [--no-dry-run] | Post only action=approved rows. Dedup-checked. |
| Command | What it does |
|---|---|
audit search [--kind] [--target] [--status] [--since 7d] | Query the JSONL audit log. |
audit dedup-status | Counts in the dedup SQLite DB. |
| Command | What it does |
|---|---|
mcp install [--dry-run] | Auto-merge config into your host. |
mcp serve | stdio MCP server (22 tools). |
mcp list-tools | Print the tool registry. |
| Command | What it does |
|---|---|
quickstart | Print a quickstart checklist. |
| Mode | What it does | Safety |
|---|---|---|
template | YAML keyword rules under src/medium_ops/templates/*.yaml | dry-run default |
bulk | LLM drafts every response to drafts.json. Edit, set action: "approved" | offline review, dedup-checked on send |
bulk-send | Posts only items with action: "approved" | dry-run default; dedup DB prevents dup replies |
MCP propose_reply → confirm_reply | Host LLM drafts, you approve per-item, token-gated | 5-min token TTL, idempotent, no API key |
medium-ops mcp install opencode # ~/.config/opencode/opencode.json
medium-ops mcp install cursor # auto-add to ~/.cursor/mcp.json medium-ops mcp install claude-desktop # auto-add to claude_desktop_config.json medium-ops mcp install claude-code # uses claude mcp add medium-ops mcp install print # print the snippet only medium-ops mcp serve # stdio server medium-ops mcp list-tools # 22 tools
Manual config snippet:
{
"mcpServers": { "medium-ops": { "command": "medium-ops", "args": ["mcp", "serve"] } } }
If the mcp SDK is not installed, the server falls back to a minimal stdin/stdout JSON-line dispatcher:
echo '{"tool":"list_posts","args":{"limit":3}}' | medium-ops mcp serve
The safety + drafting stack that makes the unattended mode safe:
| Tool | What it does |
|---|---|
get_unanswered_responses | Worklist — responses where you haven't replied. |
propose_reply | Dry-run only. Returns a token + payload preview. |
confirm_reply | Posts the staged reply by token. Idempotent via dedup DB. Token TTL 5 min. |
bulk_draft_replies / send_approved_drafts | File-based offline review loop. |
audit_search / dedup_status | Read the audit log + dedup counts. |
Two layers, both free:
propose_reply / confirm_reply. No env vars, no API key. Use this for interactive replies.reply bulk when no human is in the loop. Auto-detects claude (Claude Code), cursor-agent, or codex on PATH. Override with MEDIUM_OPS_LLM_CMD.There is no paid-API-key path.
Medium has two auth layers that map to different feature surfaces:
Authorization: Bearer . Used against api.medium.com/v1/*. Gets you: publish_post, list_own_publications. Token generation at https://medium.com/me/settings → "Integration tokens". Note: Medium stopped issuing new tokens in 2023. If you never generated one, the write path will 401 and you'll have to use the sid-cookie response path for any writes.medium.com (Application → Cookies → sid). Used against medium.com/_/graphql and medium.com/_/api/*. Gets you: all reads (stories, responses, claps, feed, stats, profile), plus clap_post and post_response (fragile — undocumented).medium-ops auth verify
medium-ops auth test medium-ops auth setup medium-ops auth har ./medium.har # ingest a Chrome dev
只显示了开头部分;其余内容请在仓库中阅读