INDIVIDUAL MCP TOOL
get_direct_connection
Pro only: a Postgres connection locked to the app's own schema, for apps with their own server (Drizzle, migrations).
LIVE ENDPOINT
https://leash.build/mcp
Connect to this endpoint to inspect the live schema for get_direct_connection and invoke it with your own arguments.
Indexed input schema
{}Risk classification
Inferred read-only · medium confidence · heuristic, not a guarantee.
- No write-capable action terms were found; this is not proof that invocation has no side effects.
Parent server
CONNECT WITH APPROVAL
Client installation
Review this server and its permissions before adding it. Secret placeholders must be set locally.
Codex
~/.codex/config.toml
[mcp_servers.leash]
url = "https://leash.build/mcp"
enabled = true
Claude Code
.mcp.json
{
"mcpServers": {
"leash": {
"type": "http",
"url": "https://leash.build/mcp"
}
}
}
Claude Desktop
Settings → Connectors → Add custom connector
Name: leash
Remote MCP URL: https://leash.build/mcp
Add this remote URL as a custom connector in Claude Desktop. Availability depends on the user plan and workspace policy.
Cursor
.cursor/mcp.json
{
"mcpServers": {
"leash": {
"url": "https://leash.build/mcp"
}
}
}
Visual Studio Code
.vscode/mcp.json
Add to Visual Studio Code{
"servers": {
"leash": {
"type": "http",
"url": "https://leash.build/mcp"
}
}
}
Generic MCP
Client-specific MCP configuration
{
"name": "leash",
"transport": "streamable-http",
"url": "https://leash.build/mcp"
}
MCP Inspector
Run the official MCP Inspector locally and enter the indexed Streamable HTTP endpoint.
Related tools
list_apps— List the person's Leash apps (id, slug, allowed origins).create_app— Create a Leash app: its own walled-off Postgres schema and sign-in.set_app_origins— Replace the app's allowed web origins (sign-in return URLs and CORS).usage— Show the account's storage: bytes per app as last measured (null with a note until first measured, a few minutes after the first write), total vs the plan's limit, plan, whether writes are blocked for being over the limit, snapshot usage, and the database server's state (running/stopped: it sleeps when idle and wakes on the next request).reclaim_space— Compact the app's tables that have many deleted rows (VACUUM FULL), then re-measure storage.list_tables— List the app's tables and views (name, kind, estimated row count).describe_table— Describe one of the app's tables or views: columns (name, type, nullable, default), primary key, constraints, indexes, and a view's definition.query— Run one read-only SQL SELECT against the app's tables (its own schema).