Developer docs
Introduction
What the Portless gateway does and the two ways to use it.
npm · @portlesslabs/sdk
View on npm ↗- Total downloads
- 282
- Last 7 days
- 282
- Last 30 days
- 282
- Latest version
- 0.1.0
- Versions
- 3
- Last publish
- Dec 5, 2026
Downloads · last 30 days
Portless is a gateway for the Model Context Protocol (MCP). You register the MCP servers your agents use, such as GitHub, Jira, your own internal tools, once in the dashboard. Your agents then reach all of them through a single endpoint and a single API key.
your agent ──► Portless gateway ──► MCP server (github, jira, …)
│ checks the API key
│ checks the tool is turned on
│ adds the server's saved credentials
└─ logs status, latency and agent to ActivityTwo ways in
| Use it when | Endpoint | |
|---|---|---|
| MCP endpoint | Your agent already speaks MCP (Cursor, VS Code, Claude Code, agent frameworks). It sees every enabled tool as one MCP server. | POST /api/v1/mcp |
| REST API | You are calling tools from scripts, backends or the SDK, and want plain JSON in and out. | /api/v1/… |
Both use the same API keys, the same tool switches and the same activity log. A tool you turn off in the dashboard is off everywhere.
Core concepts
- Server: an upstream MCP server with a unique namespace (for example
github). The hosted gateway reacheshttpandsseservers. - Tool: a capability a server exposes, addressed as
namespace.toolin REST (for examplegithub.create_issue) andnamespace__toolover MCP. - API key: a
pl_live_…secret that identifies your workspace. It is shown once when you create it. - Agent: an optional label for who made a call, so Activity shows which agent did what.
Base URL
https://www.initpbj.devNext steps
Quickstart
Add a server, create a key and make your first call.
Connect MCP clients
Use the gateway from Cursor, VS Code or Claude Code.
REST API reference
Every endpoint, with request and response shapes.
Server credentials
Reach servers that need their own token.
Questions or bugs? Open an issue on GitHub.