PeerLink
v0.1.0Scaffold, 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`.
| Parameter | Type | Description |
|---|---|---|
name * | string | App name; used as the directory name and the peerlink.json/package.json name |
dir | string | Directory 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`.
| Parameter | Type | Description |
|---|---|---|
dir | string | Project 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`.
| Parameter | Type | Description |
|---|---|---|
dir | string | Project 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`.
| Parameter | Type | Description |
|---|---|---|
dir | string | Project 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`.
| Parameter | Type | Description |
|---|---|---|
dir | string | Project 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>`.
| Parameter | Type | Description |
|---|---|---|
app * | string | App name |
dir | string | Project 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>`.
| Parameter | Type | Description |
|---|---|---|
app * | string | App name |
principal * | string | User id/email or group name |
dir | string | Project directory the peerlink CLI runs in; defaults to the MCP server process cwd |
principalType | string | Defaults to "user" |
role | string | Defaults to "member" |
access_revoke Revoke app access
Revoke a user or group's access to a deployed app. Runs `peerlink access revoke <app> <principal>`.
| Parameter | Type | Description |
|---|---|---|
app * | string | App name |
principal * | string | User id/email or group name |
dir | string | Project directory the peerlink CLI runs in; defaults to the MCP server process cwd |
principalType | string | Defaults 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`.
| Parameter | Type | Description |
|---|---|---|
dir | string | Directory 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`.
| Parameter | Type | Description |
|---|---|---|
app | string | App name; defaults to the app in this project's peerlink.json |
dir | string | Project directory; defaults to the MCP server process cwd |