PeerLink

v0.1.0
io.github.mypeerlink/peerlink-mcp Checked 6 hours ago Published 10 days ago

Scaffold, check, publish and share internal apps on PeerLink behind SSO.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scaffold_project Scaffold a PeerLink project

Create a new PeerLink app from the template (Express server behind the platform auth-wrapper + Vite/React frontend). Runs `peerlink new`.

ParameterTypeDescription
name *stringApp name; used as the directory name and the peerlink.json/package.json name
dirstringDirectory to scaffold into; defaults to the MCP server process cwd

project_doctor Run PeerLink pre-publish checks

Validate a PeerLink project against the platform contract (manifest, auth middleware, fixed port, database allowlist). Runs `peerlink doctor`.

ParameterTypeDescription
dirstringProject directory; defaults to the MCP server process cwd

publish Publish a PeerLink app

Build, package, and deploy the app to the PeerLink platform (requires `peerlink login` to already be configured). Runs `peerlink publish`.

ParameterTypeDescription
dirstringProject directory; defaults to the MCP server process cwd

app_status Get PeerLink app status

Look up the last deployed status and URL for the app in this project. Runs `peerlink status`.

ParameterTypeDescription
dirstringProject directory; defaults to the MCP server process cwd

delete_app Delete a PeerLink app

Tear down the app in this project, stopping and removing everything the platform runs for it. Succeeds whether or not the app is still deployed, so it is safe as a cleanup step. Runs `peerlink delete`.

ParameterTypeDescription
dirstringProject directory; defaults to the MCP server process cwd

access_list List app access grants

List who currently has access to a deployed app. Runs `peerlink access list <app>`.

ParameterTypeDescription
app *stringApp name
dirstringProject directory the peerlink CLI runs in; defaults to the MCP server process cwd

access_grant Grant app access

Grant a user or group access to a deployed app, so a team can be onboarded without opening a browser. Runs `peerlink access grant <app> <principal>`.

ParameterTypeDescription
app *stringApp name
principal *stringUser id/email or group name
dirstringProject directory the peerlink CLI runs in; defaults to the MCP server process cwd
principalTypestringDefaults to "user"
rolestringDefaults to "member"

access_revoke Revoke app access

Revoke a user or group's access to a deployed app. Runs `peerlink access revoke <app> <principal>`.

ParameterTypeDescription
app *stringApp name
principal *stringUser id/email or group name
dirstringProject directory the peerlink CLI runs in; defaults to the MCP server process cwd
principalTypestringDefaults to "user"

whoami Show the signed-in Member

Return the id and email of the Member that `peerlink login` signed in as, so access_grant can name them without asking. Runs `peerlink whoami`.

ParameterTypeDescription
dirstringDirectory the peerlink CLI runs in; defaults to the MCP server process cwd

secret_list List an app's Secrets

List the app's Secrets with their versions, when each was last set and whether each is declared, never their values. `missing` lists the Secrets declared and nobody has set: run in the project, those its peerlink.json declares, which a publish is refused until each is set; by app name, those the running release declares and runs without. To set one, the person runs `peerlink secret set NAME` themselves. Runs `peerlink secret list`.

ParameterTypeDescription
appstringApp name; defaults to the app in this project's peerlink.json
dirstringProject directory; defaults to the MCP server process cwd