PeerLink
v0.1.0Scaffold, check, publish and share internal apps on PeerLink behind SSO.
peerlink-mcp is a stdio MCP server for PeerLink. It gives Claude Code, Cursor, VS Code, Claude Desktop and any other MCP client the tools to take an app from an empty directory to a URL that only the people you choose can open. This opens a browser, signs you in through the platform's SSO and stores a token in ~/.peerlink/config.json. The MCP server reads that file, and never handles a credential itself. Where no browser can run, mint a token in the PeerLink console and pass it with --token.
Summary extracted from the README.
peerlink-mcp
Let your coding agent ship internal apps on PeerLink: scaffolded, checked against policy, published behind SSO, and shared with the right people, all without leaving the chat.
peerlink-mcp is a stdio MCP server for
PeerLink. It gives Claude Code, Cursor, VS Code,
Claude Desktop and any other MCP client the tools to take an app from an empty directory
to a URL that only the people you choose can open.
You need access to a PeerLink platform to publish. Most people use the hosted platform at
https://console.peerlink.dev, where only people who've been added can sign in: request early access. If your company runs its own PeerLink, use the URL your IT team gives you instead. Scaffolding andproject_doctorwork without one.
Install
Requires Node.js 24 or later.
1. Sign in once, in a terminal
npx -y -p peerlink-mcp peerlink login --url https://console.peerlink.dev
This opens a browser, signs you in through the platform's SSO and stores a token in
~/.peerlink/config.json. The MCP server reads that file, and never handles a credential
itself. Where no browser can run, mint a token in the PeerLink console and pass it with
--token.
2. Add the server to your client
Claude Code
claude mcp add peerlink -- npx -y peerlink-mcp
Cursor: ~/.cursor/mcp.json, or .cursor/mcp.json in a project
{
"mcpServers": {
"peerlink": { "command": "npx", "args": ["-y", "peerlink-mcp"] }
}
}
VS Code: .vscode/mcp.json
{
"servers": {
"peerlink": { "type": "stdio", "command": "npx", "args": ["-y", "peerlink-mcp"] }
}
}
Claude Desktop: claude_desktop_config.json
{
"mcpServers": {
"peerlink": { "command": "npx", "args": ["-y", "peerlink-mcp"] }
}
}
Then ask your agent something like "Build a PeerLink app that tracks our team's on-call swaps, publish it and give the on-call group access."
Tools
| Tool | What it does | Changes anything? |
|---|---|---|
scaffold_project |
Creates an app from the PeerLink template: Express behind the platform's auth middleware, plus Vite/React | Writes a new local directory |
project_doctor |
Checks a project against the platform contract: manifest, auth, port, database, Secrets | No |
publish |
Builds, packages and deploys the app | Deploys a new release |
app_status |
The deployed app's status and URL | No |
delete_app |
Tears the app down. Idempotent | Destructive |
access_list |
Who can open an app | No |
access_grant |
Gives a user or group access, as member or admin |
Adds a grant |
access_revoke |
Removes a user's or group's access | Destructive |
whoami |
The signed-in Member, so the agent can grant you access to what it just published | No |
secret_list |
An app's Secrets and which are still missing. Never their values | No |
Each tool carries MCP annotations (readOnlyHint, destructiveHint, idempotentHint),
so your client can ask you before running anything destructive.
The server also exposes the platform's app checklist as the peerlink-integration-guide
prompt and the peerlink://integration-guide resource, and sends the workflow to the
model as server instructions when a client connects.
Left out on purpose
Some steps are deliberately human-only: signing in (peerlink login), setting or deleting
a Secret (peerlink secret set), and custom domains. A Secret's value must never pass
through an agent's transcript, so the agent tells you which command to run instead.
Configuration
Everything comes from ~/.peerlink/config.json, written by peerlink login. Environment
variables override it:
| Variable | Purpose |
|---|---|
PEERLINK_API_URL |
The platform URL |
PEERLINK_API_KEY |
An API token minted in the console |
PEERLINK_CONSOLE_API_URL |
The console API, only for a deployment that serves it from a separate origin |
PEERLINK_HOME |
The directory that holds .peerlink/, by default your home directory |
The peerlink CLI
This package also installs the peerlink CLI that the tools drive, so everything an agent
does you can also do at the terminal: npx -y -p peerlink-mcp peerlink --help.
Agent skill
skills/peerlink/SKILL.md teaches an agent the same workflow
and rules, for skill-aware clients and for agents that use the CLI without MCP.