MCP Servers
Register New MCP Server
POST
/api/integrations/mcp-servers/Overview
Registers a new external Model Context Protocol server.
Authentication & Headers
- Auth: Bearer Token (L1 / L2)
- Required Header:
API-Version: 1
Parameters & Request Body Fields
name(string, required): Name of the MCP server.transport(string, required):sseorstdio.endpoint_url(string, required): URL for SSE endpoint.auth_token(string, optional): Secret authorization token if secured.
Body permintaan
application/json
namestringwajibdescriptionstring | nulltransportstring | nullconnection_configobjecttool_filterobject[] | nulltimeoutintegercategorystring | nulltagsobject[]icon_urlstring | nullis_publicbooleanrole_group_idstring | null{
"name": "string",
"description": "string",
"transport": "string",
"connection_config": {},
"tool_filter": [
null
],
"timeout": 30,
"category": "string",
"tags": [
null
],
"icon_url": "string",
"is_public": false,
"role_group_id": "string"
} Respons
201 MCP server registered
400 Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).
401 Unauthorized - Missing, invalid, or expired JWT Bearer token.
403 Forbidden - Insufficient role permissions or resource access denied by RBAC policy.
404 Not Found - The requested resource ID was not found.
422 Validation Error
detailobject[]detail[].locstring | integer[]wajibdetail[].msgstringwajibdetail[].typestringwajibdetail[].inputobjectdetail[].ctxobject{
"detail": [
{
"loc": [
null
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Contoh
curl -X POST "$PINTER_URL/api/integrations/mcp-servers/" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string","transport":"string","connection_config":{},"tool_filter":[null],"timeout":30,"category":"string","tags":[null],"icon_url":"string","is_public":false,"role_group_id":"string"}'