GitDiagram
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Medium CLI + 23-tool MCP server. Your IDE drafts replies. No API keys.
Pick the AI app you use, then copy the settings.
Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a medium-ops key (create it on the maker’s site) · 2 setting(s) to fill in (MEDIUM_UID, MEDIUM_USERNAME) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server medium-ops for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "medium-ops": { "command": "uvx", "args": [ "medium-ops", "mcp", "serve" ], "env": { "MEDIUM_SID": "your-value", "MEDIUM_UID": "your-value", "MEDIUM_XSRF": "your-value", "MEDIUM_CF_CLEARANCE": "your-value", "MEDIUM_USERNAME": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For MEDIUM_SID, MEDIUM_XSRF, MEDIUM_CF_CLEARANCE, MEDIUM_UID, MEDIUM_USERNAME, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the medium-ops tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
MEDIUM_UID Medium 'uid' cookie value. Required alongside sid for some authenticated endpoints.MEDIUM_USERNAME Your Medium handle (without the @). Required for the public RSS read path so the client knows whose feed to fetch.Descriptions are as written by the maker.
SettingsDeveloperEdit Config
{
"mcpServers": {
"medium-ops": {
"command": "uvx",
"args": [
"medium-ops",
"mcp",
"serve"
],
"env": {
"MEDIUM_SID": "your-value",
"MEDIUM_UID": "your-value",
"MEDIUM_XSRF": "your-value",
"MEDIUM_CF_CLEARANCE": "your-value",
"MEDIUM_USERNAME": "your-value"
}
}
}
}Paste the key only into the app’s field, never into a chat or to anyone
Use medium-ops and tell me what you can do for me, then show me one thing✓ If Claude says it is using medium-ops or shows a medium-ops tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
MEDIUM_INTEGRATION_TOKEN Legacy Medium Integration Token (api.medium.com/v1/*). Optional. Generate at medium.com/me/settings → 'Integration tokens' (note: Medium stopped issuing new tokens in 2023).MEDIUM_OPS_MCP_PATH Override path to the mcp.json file the auth layer reads. Defaults to ~/.cursor/mcp.json.MEDIUM_OPS_LLM_CMD Optional: override the host CLI used by the unattended daemon path (default: auto-detect claude / cursor-agent / codex on PATH). Use {prompt} placeholder if your CLI takes the prompt as an arg.Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect medium-ops yet
medium-ops runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect medium-ops
B · Others in Developer tools that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code, with some setup first
You need a medium-ops key (create it on the maker’s site) · 2 setting(s) to fill in (MEDIUM_UID, MEDIUM_USERNAME) · Install Python (uv) on your computer first (one time)
Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server medium-ops for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user medium-ops --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 -- uvx medium-ops mcp serve 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For MEDIUM_SID, MEDIUM_XSRF, MEDIUM_CF_CLEARANCE, MEDIUM_UID, MEDIUM_USERNAME, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the medium-ops tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
MEDIUM_UID Medium 'uid' cookie value. Required alongside sid for some authenticated endpoints.MEDIUM_USERNAME Your Medium handle (without the @). Required for the public RSS read path so the client knows whose feed to fetch.Descriptions are as written by the maker.
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --scope user medium-ops --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 -- uvx medium-ops mcp serveReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
You should see medium-ops listed as connected
Use medium-ops and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using medium-ops or shows a medium-ops tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
MEDIUM_INTEGRATION_TOKEN Legacy Medium Integration Token (api.medium.com/v1/*). Optional. Generate at medium.com/me/settings → 'Integration tokens' (note: Medium stopped issuing new tokens in 2023).MEDIUM_OPS_MCP_PATH Override path to the mcp.json file the auth layer reads. Defaults to ~/.cursor/mcp.json.MEDIUM_OPS_LLM_CMD Optional: override the host CLI used by the unattended daemon path (default: auto-detect claude / cursor-agent / codex on PATH). Use {prompt} placeholder if your CLI takes the prompt as an arg.Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a medium-ops key (create it on the maker’s site) · 2 setting(s) to fill in (MEDIUM_UID, MEDIUM_USERNAME) · Install Python (uv) on your computer first (one time)
Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server medium-ops for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "medium-ops": { "command": "uvx", "args": [ "medium-ops", "mcp", "serve" ], "env": { "MEDIUM_SID": "your-value", "MEDIUM_UID": "your-value", "MEDIUM_XSRF": "your-value", "MEDIUM_CF_CLEARANCE": "your-value", "MEDIUM_USERNAME": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For MEDIUM_SID, MEDIUM_XSRF, MEDIUM_CF_CLEARANCE, MEDIUM_UID, MEDIUM_USERNAME, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the medium-ops tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
MEDIUM_UID Medium 'uid' cookie value. Required alongside sid for some authenticated endpoints.MEDIUM_USERNAME Your Medium handle (without the @). Required for the public RSS read path so the client knows whose feed to fetch.Descriptions are as written by the maker.
In the medium-ops settings, MEDIUM_SID, MEDIUM_XSRF, MEDIUM_CF_CLEARANCE, MEDIUM_UID, MEDIUM_USERNAME is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use medium-ops and tell me what you can do for me, then show me one thing✓ If Cursor says it is using medium-ops or shows a medium-ops tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
MEDIUM_INTEGRATION_TOKEN Legacy Medium Integration Token (api.medium.com/v1/*). Optional. Generate at medium.com/me/settings → 'Integration tokens' (note: Medium stopped issuing new tokens in 2023).MEDIUM_OPS_MCP_PATH Override path to the mcp.json file the auth layer reads. Defaults to ~/.cursor/mcp.json.MEDIUM_OPS_LLM_CMD Optional: override the host CLI used by the unattended daemon path (default: auto-detect claude / cursor-agent / codex on PATH). Use {prompt} placeholder if your CLI takes the prompt as an arg.Descriptions are as written by the maker.
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a medium-ops key (create it on the maker’s site) · 2 setting(s) to fill in (MEDIUM_UID, MEDIUM_USERNAME) · Install Python (uv) on your computer first (one time)
Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server medium-ops for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "medium-ops": { "type": "stdio", "command": "uvx", "args": [ "medium-ops", "mcp", "serve" ], "env": { "MEDIUM_SID": "your-value", "MEDIUM_UID": "your-value", "MEDIUM_XSRF": "your-value", "MEDIUM_CF_CLEARANCE": "your-value", "MEDIUM_USERNAME": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For MEDIUM_SID, MEDIUM_XSRF, MEDIUM_CF_CLEARANCE, MEDIUM_UID, MEDIUM_USERNAME, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the medium-ops tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
MEDIUM_UID Medium 'uid' cookie value. Required alongside sid for some authenticated endpoints.MEDIUM_USERNAME Your Medium handle (without the @). Required for the public RSS read path so the client knows whose feed to fetch.Descriptions are as written by the maker.
In the medium-ops settings, MEDIUM_SID, MEDIUM_XSRF, MEDIUM_CF_CLEARANCE, MEDIUM_UID, MEDIUM_USERNAME is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use medium-ops and tell me what you can do for me, then show me one thing✓ If VS Code says it is using medium-ops or shows a medium-ops tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
MEDIUM_INTEGRATION_TOKEN Legacy Medium Integration Token (api.medium.com/v1/*). Optional. Generate at medium.com/me/settings → 'Integration tokens' (note: Medium stopped issuing new tokens in 2023).MEDIUM_OPS_MCP_PATH Override path to the mcp.json file the auth layer reads. Defaults to ~/.cursor/mcp.json.MEDIUM_OPS_LLM_CMD Optional: override the host CLI used by the unattended daemon path (default: auto-detect claude / cursor-agent / codex on PATH). Use {prompt} placeholder if your CLI takes the prompt as an arg.Descriptions are as written by the maker.
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
Claude Code
claude mcp add --scope user medium-ops --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 -- uvx medium-ops mcp serveClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"medium-ops": {
"command": "uvx",
"args": [
"medium-ops",
"mcp",
"serve"
],
"env": {
"MEDIUM_SID": "your-value",
"MEDIUM_UID": "your-value",
"MEDIUM_XSRF": "your-value",
"MEDIUM_CF_CLEARANCE": "your-value",
"MEDIUM_USERNAME": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"medium-ops": {
"command": "uvx",
"args": [
"medium-ops",
"mcp",
"serve"
],
"env": {
"MEDIUM_SID": "your-value",
"MEDIUM_UID": "your-value",
"MEDIUM_XSRF": "your-value",
"MEDIUM_CF_CLEARANCE": "your-value",
"MEDIUM_USERNAME": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"medium-ops": {
"type": "stdio",
"command": "uvx",
"args": [
"medium-ops",
"mcp",
"serve"
],
"env": {
"MEDIUM_SID": "your-value",
"MEDIUM_UID": "your-value",
"MEDIUM_XSRF": "your-value",
"MEDIUM_CF_CLEARANCE": "your-value",
"MEDIUM_USERNAME": "your-value"
}
}
}
}MEDIUM_INTEGRATION_TOKEN secret envMEDIUM_SID secret required envMEDIUM_UID required envMEDIUM_XSRF secret required envMEDIUM_CF_CLEARANCE secret required envMEDIUM_USERNAME required envMEDIUM_OPS_MCP_PATH envMEDIUM_OPS_LLM_CMD envDescriptions are as written by the maker.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
pypi: medium-opsBased on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 15, 2026
The registry name was verified with the GitHub account 06ketan, which owns the repo
Code last changed 6 months ago
Uses MIT
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Not checked yet
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
You need to fill in: MEDIUM_SID, MEDIUM_XSRF, MEDIUM_CF_CLEARANCE
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed 6 months ago, and the latest version (0.1.2) reached the registry 7 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
In the same category: GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise
Same category, other makers, commands already checked. Official ones first, then by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
Cloudflare MCP servers
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
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