Usage
Prerequisites
You must be logged in first. Runtoolshed login if you haven’t already. The command will exit with an error if no config is found.
How it works
- Loads credentials from
~/.toolshed/config.json - Fetches the tool catalog from
GET /api/registryusing the session token - Creates a runtime (local or Vercel sandbox) with the user’s role and tool set
- Starts the MCP server on stdio transport
- When an agent calls a tool, the CLI vends a token from
POST /api/tokens/vendand executes the tool handler
Connecting from Claude
Add Toolshed to Claude’s MCP server config:tools/list.
Environment variables
| Variable | Default | Description |
|---|---|---|
TOOLSHED_RUNTIME | local | Runtime backend: local or vercel |
VERCEL_TEAM_ID | — | Required when TOOLSHED_RUNTIME=vercel |
VERCEL_PROJECT_ID | — | Required when TOOLSHED_RUNTIME=vercel |
VERCEL_TOKEN | — | Required when TOOLSHED_RUNTIME=vercel |
Authentication flow
When an agent calls a tool that requires OAuth credentials (e.g.,github.issues.create):
- The CLI looks up the tool’s
authProviderfield - Calls
POST /api/tokens/vendwith the user’s ID and provider name - The server decrypts the stored OAuth token (refreshing if expired)
- The CLI receives a usable access token and passes it to the tool handler