publish-pilot-mcp
This server automates taking a project from an empty folder to a published GitHub repo and npm/PyPI/crates.io package, while keeping logins, approvals, and destructive actions gated.
Check readiness: tools, logins, git identity, and free package/repo names.
Install missing developer tools via winget, brew, or apt.
Start and monitor GitHub/npm/PyPI/crates.io login jobs.
Scaffold projects with source, tests, README, LICENSE, CHANGELOG, manifests, and CI/release workflows.
Run secret scans, installs, linting, typechecking, builds, tests, and publish dry runs.
Commit code and create GitHub repositories with gated confirmation.
Publish packages with gated confirmation, dry-run checks, and rate-limit handling.
Set up trusted publishing/OIDC for releases.
Tag versions, create GitHub releases, bump versions, and watch workflows.
Verify published packages or repos by installing/cloning into a temp folder and running commands.
Send desktop notifications and open approved registry/GitHub pages.
Run limited shell commands while refusing dangerous operations like force-push, deletion, or unpublish.
Enables creating and managing GitHub repositories, handling authentication, committing and pushing code, creating releases, and interacting with GitHub via the gh CLI.
Generates CI and release workflows (ci.yml, release.yml) for GitHub Actions, watches workflow runs, and supports trusted publishing with OIDC.
Supports publishing npm packages, including login, publish approval, trusted publishing setup, and version management.
Supports publishing Python packages to PyPI via twine, including login, trusted publishing setup, and version management.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@publish-pilot-mcp take this empty folder to a published GitHub repo and npm package"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
publish-pilot-mcp
An MCP server that lets Claude(or any other agent) take a project from an empty folder to a published GitHub repo and npm, PyPI or crates.io package. It checks your tools, handles logins, scaffolds the project, runs checks, publishes and releases. You only do the sign-in, 2FA and approval clicks.ANDDDDD whats the difference between this mcp and other mcps(like windows mcp) those control ur pcs? well this mcp would less likely to control ur whole pc to get the job done which means u can either publish multiple repos at the same time or use ur pc while Claude is doing the job*
Install
You need Node.js 22 or newer. The server runs with npx, so it needs no separate install. To publish, you also need git, the GitHub CLI (gh) and your registry's CLI; doctor (below) shows what's missing, and Claude can install it for you.
Claude Code (macOS, Linux, WSL):
claude mcp add publish-pilot -- npx -y publish-pilot-mcpOn native Windows, npx is a .cmd script that MCP clients can't start directly, so wrap it in cmd /c:
claude mcp add publish-pilot -- cmd /c npx -y publish-pilot-mcpClaude Desktop: open Settings → Developer → Edit Config. That opens claude_desktop_config.json, wherever your install keeps it. Add publish-pilot under mcpServers, keeping any servers already there, save, and restart Claude Desktop.
Windows:
{
"mcpServers": {
"publish-pilot": {
"command": "cmd",
"args": ["/c", "npx", "-y", "publish-pilot-mcp"]
}
}
}macOS and Linux:
{
"mcpServers": {
"publish-pilot": {
"command": "npx",
"args": ["-y", "publish-pilot-mcp"]
}
}
}Any other MCP client: run npx -y publish-pilot-mcp as a stdio server (cmd /c npx -y publish-pilot-mcp on Windows).
Faster start (optional). npx checks the registry every time the client starts the server, which adds about 0.7 s. A global install starts in about 0.2 s, but you update it yourself (npm install -g publish-pilot-mcp@latest):
npm install -g publish-pilot-mcp
npm root -gThen point the client at node and the installed dist/cli.js, using the folder npm root -g printed. For example, on Windows:
{
"mcpServers": {
"publish-pilot": {
"command": "node",
"args": ["C:\\Users\\you\\AppData\\Roaming\\npm\\node_modules\\publish-pilot-mcp\\dist\\cli.js"]
}
}
}On macOS and Linux, "command": "publish-pilot-mcp" with no args also works.
Related MCP server: worktree-tools-mcp
Quick start
Check that your machine is ready:
npx -y publish-pilot-mcp doctor both npmThis lists the tools that are installed or missing (git, gh, node/npm) and whether you are logged in to GitHub and npm.
Ask Claude, naming the folder to work in:
Use publish-pilot to make an npm package called my-tool in C:\code\my-tool that converts CSV to JSON, and publish it to both GitHub and npm.
In Claude Code you can also run the built-in plan with
/mcp__publish-pilot__publish_project(listed as/publish-pilot:publish_project).
Claude then works through the plan: preflight, scaffold, code and tests, quality checks, dry run, commit, GitHub repo, publish, trusted publishing, tag, release and a final install test. When it needs you, it sends a desktop notification and either opens the right page (the GitHub device-code login) or a terminal window where npm asks for your approval (npm login, publish and trusted-publisher setup).
What you have to do yourself
The server never types passwords or 2FA codes and never clicks Authorize, Approve or Save. Expect to:
Sign in to GitHub and click Authorize (only if
ghis not logged in yet).Sign in to npm (only if
npm whoamifails).Approve the first
npm publishon npmjs.com (2FA).Approve the trusted-publisher link (
npm trust github) with 2FA. If you prefer the website, open the package's Settings → Trusted Publisher page and fill in the values Claude gives you.
npm only shows its approval link in a real terminal. So on Windows and macOS these npm steps run in a visible PowerShell or Terminal window: if it says "Press ENTER to open in the browser", press Enter there and approve. On Linux they run under script, which gives npm a terminal, and the page opens in your browser.
npm can only add a trusted publisher to a package that already exists, so a brand-new package is published once from your machine and every later version from GitHub Actions.
After that, every release is a pushed v* tag. GitHub Actions publishes with OIDC, so no tokens are stored anywhere.
Tools
Tool | What it does |
| Checks git, gh, the registry CLI, your logins and your git identity. Starts no logins. |
| Installs a missing tool with winget (Windows), brew (macOS) or apt (Linux). |
| Checks that the package and repo names are valid and free, and picks the best free alternative (for npm, |
| Starts a browser login: |
| Polls a running login or publish job: status, output, URLs and codes. |
| Creates source, tests, README, LICENSE, CHANGELOG, .gitignore, manifest and workflows. Never overwrites files. With |
| Writes |
| Secret scan, then install, lint, typecheck, build and test (npm scripts, a Python |
| Runs the publish dry run and lists the files that would ship, flagging junk and secrets. |
| Runs |
| Gated. Runs |
| Gated. Runs the registry's dry run, then |
| Connects the package to |
| Gated. Tags |
| Waits for the workflow run of the current commit (release by default) and returns the failing log if it fails. |
| Bumps the patch, minor or major version and adds a CHANGELOG entry, or turns the "Unreleased" section into the new version. |
| Installs from the real registry (or clones the repo, private ones included) into a new temp folder and runs your README steps one by one, stopping at the first that fails. |
| Desktop notification. With |
| Runs a command in PowerShell (Windows) or sh. Destructive commands are refused. |
The publish_project prompt takes optional target, name, description, registry, visibility, license, what and dir arguments. Anything you leave out, Claude asks for before it starts.
Safety
create_github_repo,tag_and_releaseandpublish_packageare gated. Called withoutconfirm: true, they do nothing and return{"needsConfirm":true,"plan":[…]}with the exact commands and the repo and visibility, the tag and commit, or the package and version. Thepublish_projectprompt shows you that plan and waits for your yes before calling again withconfirm: true.A gated step refuses uncommitted changes (unless
allowDirty: true) and anything the secret scan finds, andpublish_packageruns the registry's dry run before it publishes.Every gated step that runs is logged as one JSON line (tool, arguments with secrets redacted, result and exit code) in
%LOCALAPPDATA%\publish-pilot\actions.logon Windows, or$XDG_STATE_HOME/publish-pilot/actions.log(default~/.local/state/publish-pilot/actions.log) elsewhere. SetPUBLISH_PILOT_LOGto use another file.Errors are compact JSON with a stable code:
{"error":{"code":"E_DIRTY_TREE","message":"…"}}. The codes areE_INPUT,E_NOT_FOUND,E_PRECONDITION,E_TOOL_MISSING,E_DIRTY_TREE,E_SECRETS_FOUND,E_CHECK_FAILED,E_COOLDOWN(the 24-hour wait after a rate limit) andE_INTERNAL.All command output is scanned, and tokens (GitHub, npm, PyPI, crates.io, AWS and others) are replaced with
***before Claude sees them.Commits and publishes are blocked when
.envfiles, private keys or tokens would be included.It never deletes, force-pushes or unpublishes anything, tags included. Failed releases are fixed with a new patch version instead.
run_commandrefuses force-push, tag/repo/release deletion,npm unpublish,cargo yank, logout/token commands and recursive deletes.It only opens
https://pages on github.com, npmjs.com, pypi.org and crates.io.
Use as a library
import { createServer } from "publish-pilot-mcp";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
await createServer().connect(new StdioServerTransport());preflight, scaffoldProject, releaseWorkflow, scanProject, checkPackageName and other helpers are exported too, with TypeScript types.
Build from source
git clone https://github.com/acus9345/publish-pilot-mcp.git
cd publish-pilot-mcp
npm install
npm test
node dist/cli.js --helpTroubleshooting
doctorsays a tool is MISSING: ask Claude to runinstall_tool, or install it yourself (for examplewinget install --id GitHub.cli -e). Then restart your MCP client so it picks up the new PATH.The server doesn't start on Windows (
spawn npx ENOENT,EINVALor "Connection closed"): the config uses plainnpx. Use the Windows form above (cmd /c npx -y publish-pilot-mcp) and restart the client. Claude Desktop writes each server's log tomcp-server-<name>.log; on Windows look in%LOCALAPPDATA%\Claude\logsor%APPDATA%\Claude\logs.npx publish-pilot-mcpsays the command isn't recognized: you ran it inside the publish-pilot-mcp source folder, where npx runs the local copy. Run it from any other folder.npm publishfails with E429rate limited exceeded: npm limits how many packages and versions one account can publish, and it doesn't say what the limit is. Nothing was published. Don't retry soon: every failed attempt can extend the block.publish_packagerecords the failure in~/.publish-pilot/rate-limits.jsonand refuses to try again for 24 hours (unless called withforce). Wait, or ask npm to lift it at https://www.npmjs.com/support.The npm approval link expired: ask Claude to call
publish_packageagain. Each call opens a fresh link, and versions that are already published are skipped.The release workflow says the tag doesn't match the version: the
v*tag must equal the manifest version. Ask Claude tobump_version, commit, and tag the new version. Old tags are never moved.npm publishfrom Actions fails with 404 or 401: trusted publishing isn't set up for this repo andrelease.ymlyet. Runsetup_trusted_publishing(the package must already exist on npm).
License
Available Tools
19 toolsadd_workflowsB
Write ci.yml and release.yml (on v* tags: test, publish via OIDC unless the version exists, GitHub release from CHANGELOG). Keeps existing files unless overwrite.
Inputs: dir (required), private, release, registry, +1 more.
bump_versionA
Bump the version and add notes to CHANGELOG (no notes: Unreleased becomes the version). Does not commit.
Inputs: dir (required), level, notes.
check_namesBRead-only
Check a package name on its registry and a repo name on your GitHub. If taken, returns the first free alternative (npm: @user/name first).
Inputs: registry, repoName, packageName.
create_github_repoC
Gated. Create the GitHub repo from the folder and push (only push if it is already origin).
Inputs: dir (required), name (required), confirm, allowDirty, +2 more.
git_commitA
Stage all and commit (git init -b main if needed). Refuses if secrets would be committed.
Inputs: dir (required), message (required).
inspect_packageBRead-only
Publish dry run: files that would ship, junk/secret warnings, registry check.
Inputs: dir (required).
install_toolA
Install a tool with winget, brew or apt.
Inputs: name (required).
job_statusC
Status and output of a login/publish job; without id, lists jobs.
Inputs: id, stop, sendEnter, waitSeconds.
loginA
Start a browser login. Returns a job with the URL and code; the user signs in and approves. Poll job_status until running is false.
Inputs: service (required), openBrowser.
notifyB
Desktop notification, e.g. 'Ready for your approval'. url opens a github.com, npmjs.com, pypi.org or crates.io page.
Inputs: message (required), url, title.
preflightARead-only
Check tools (git, gh, registry CLI), logins and git identity. Run first.
Inputs: target (required), registry.
publish_packageC
Gated. Publish; returns a job (npm approval opens in a terminal). Skips existing versions; refuses for 24 h after an E429.
Inputs: dir (required), force, dryRun, confirm, +2 more.
run_checksB
Secret scan, install, lint, typecheck, build, test (npm scripts, .venv + pytest, or cargo). Stops at the first failure.
Inputs: dir (required).
run_commandADestructive
Run a shell command (PowerShell on Windows, sh elsewhere). Destructive ones (force-push, deleting tags/repos/releases, unpublish, rm -r) are refused.
Inputs: command (required), cwd, timeoutSeconds.
scaffold_projectA
Create a project: source, test, README, LICENSE, CHANGELOG, .gitignore, manifest (0.1.0). With repoUrl, also CI and release workflows. Never overwrites files.
Inputs: dir (required), name (required), registry (required), description (required), +6 more.
setup_trusted_publishingB
Link the package to release.yml for OIDC publishing. npm: npm trust (package must exist; user approves 2FA). PyPI/crates: opens the settings page with the values; user clicks Save.
Inputs: dir (required), repo (required), openBrowser, workflowFile.
tag_and_releaseC
Gated. Tag v, push branch and tag atomically, create the GitHub release from CHANGELOG unless release.yml does. Never moves tags.
Inputs: dir (required), confirm, version, allowDirty, +1 more.
verify_installA
In a fresh temp folder, install the published package (or clone repoUrl) and run commands in order, stopping at the first failure. Its executables are on PATH.
Inputs: command (required), name, repoUrl, version, +1 more.
watch_workflowCRead-only
Result of the workflow run for HEAD (default release.yml), with failed logs.
Inputs: dir (required), ref, workflow, waitSeconds.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Most tools map to a distinct pipeline stage (preflight, login, check_names, scaffold, publish, tag, verify). A few boundaries are soft: publish_package vs inspect_package (dry run), scaffold_project (which can write workflows) vs add_workflows, and run_command which can duplicate most other actions as a general escape hatch. Descriptions largely disambiguate these, so an agent can still pick correctly.
Nearly all tools use consistent snake_case verb_noun or verb_noun_phrase forms (create_github_repo, publish_package, tag_and_release, verify_install). Minor deviations exist: noun-only names like preflight and job_status, and verb-only names like login and notify. It stays readable and predictable overall.
At 19 tools it sits in the heavy range, but the scope is genuinely broad (auth, repo creation, scaffolding, CI, versioning, publishing, verification, notifications). Each tool maps to a recognizable step, so the count is defensible rather than padded, though a few could be consolidated.
The surface covers the full release lifecycle end-to-end: preflight checks, login/OIDC setup, name availability, repo creation, scaffolding, workflow writing, commit, checks, version bump, dry-run, publish, tag/release, workflow watching, install verification, and notification. Only deliberately-unsafe operations (unpublish, force-push) are excluded, which is by design.
Maintenance
Related MCP Connectors
Build, validate, test-run and publish AIOS workflows from Claude Code, Codex, Cursor or VS Code.
Publish and schedule videos to TikTok, YouTube Shorts, Instagram, Facebook, LinkedIn, Pinterest, Bluesky, Threads and X from Claude, Cursor or any MCP client. Upload once, post everywhere, track views in unified analytics, and retry failed posts. Official platform APIs only, free plan available. Docs: https://docs.multi-upload-tool.com/mcp
Lint, grade, and publish agent skills against Anthropic's skill best practices.
Launch your clients' products on up to 110 directories each from Claude, ChatGPT, Cursor or VS Code.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables to interact with GitHub repositories directly from Claude, supporting actions like viewing repos, checking status, committing and pushing changes, and managing pull requests.-
- AlicenseAqualityDmaintenanceEnables Claude to create, manage, and clean up git worktrees automatically, including dependency installation and GitHub PR creation.5MIT
- AlicenseNot gradedqualityBmaintenanceEnables users to validate a remote MCP server against Claude connector directory rules — sign-in discovery, tool metadata, and listing requirements — and walk through publishing it to npm, the official MCP Registry, a Claude Code plugin repo, and the Claude connector directory one step at a time.49 npmMIT
- AlicenseBqualityBmaintenanceEnables Claude Desktop to inspect and edit workspace files, search code, run human-approved commands and tests, manage Git/GitHub workflows, and save plans or checkpoints for resuming work.40MIT