Set up with MCP
NativePort speaks the Model Context Protocol over Streamable HTTP at https://api.nativeport.ai/mcp. Your agent authenticates with your NativePort API key in the Authorization header and gets four tools that mirror the Agent API: find an endpoint, read its price, call it, check the balance. No SDK, no skill file, no per-provider setup.
Get a key
Create an account at accounts.nativeport.ai/sign-up and copy the Default key from panel.nativeport.ai/keys.
Tools
The resource nativeport://skill returns the same SKILL.md the gateway serves over HTTP.
call_endpoint runs the ordinary gateway route internally, so billing, logging and every restriction apply exactly as for a direct HTTP call. Only your Authorization header and a JSON content-type are forwarded; other request headers cannot be set through MCP.
What comes back
- Responses are read for a model: JSON is parsed, text is capped at 512 KB (
truncated: truewhen cut), binary bodies under the cap come back base64-encoded with their MIME type and larger ones are omitted with a note. Do not request streaming throughcall_endpoint. - A non-2xx answer is a tool result with
isError: trueand the gateway’s body verbatim.402means the balance is empty and the agent should stop and tell you;403with"Account suspended."or a trial-restriction body should be reported as is;404on a documented path means the action is not admitted for this key.
Connection semantics
The server is stateless: there are no sessions to resume, and each request stands alone.