Company MCP servers are registered with ctl mcp, and tools granted with keys limits --tools
CI / test (push) Failing after 5m4s

llmgw ctl mcp add|list|remove|test and /api/v1/mcp/servers keep the
servers; a token given with --secret-file is kept in the store, sealed,
and named by reference. keys limits --tools, and the console's limits
form, grant tools as patterns. Documented in install.md and clients.md.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-20 12:50:55 +02:00
1 parent ca77637a71
commit 4453f469e1
16 files changed
+893 -9

No files matched your search

+261
View File
@@ -65,6 +65,9 @@
{
"name": "keys"
},
{
"name": "mcp"
},
{
"name": "metrics"
},
@@ -1936,6 +1939,170 @@
}
}
},
"/api/v1/mcp/servers": {
"get": {
"operationId": "getMcpServers",
"summary": "The company's MCP servers /mcp serves, and how each is reached",
"tags": [
"mcp"
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MCPServerView"
}
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/api/v1/mcp/servers/{name}": {
"put": {
"operationId": "putMcpServersName",
"summary": "Add an MCP server, or change one: its address, headers and the secrets they carry",
"tags": [
"mcp"
],
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"description": "The MCP server's name: its tools are NAME.tool in /mcp.",
"schema": {
"type": "string"
}
},
{
"$ref": "#/components/parameters/Actor"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MCPServerRequest"
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MCPServerView"
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
},
"delete": {
"operationId": "deleteMcpServersName",
"summary": "Remove an MCP server: its tools leave /mcp",
"tags": [
"mcp"
],
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"description": "The MCP server's name: its tools are NAME.tool in /mcp.",
"schema": {
"type": "string"
}
},
{
"$ref": "#/components/parameters/Actor"
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/api/v1/mcp/servers/{name}/test": {
"post": {
"operationId": "postMcpServersNameTest",
"summary": "Ask an MCP server for its tools, with its credentials, as /mcp would",
"tags": [
"mcp"
],
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"description": "The MCP server's name: its tools are NAME.tool in /mcp.",
"schema": {
"type": "string"
}
},
{
"$ref": "#/components/parameters/Actor"
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MCPTestView"
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/api/v1/metrics/range": {
"post": {
"operationId": "postMetricsRange",
@@ -7190,6 +7357,100 @@
}
}
},
"MCPServerRequest": {
"type": "object",
"description": "MCPServerRequest adds a server or changes one. Secrets are header values to keep in the store, sealed, each then read by reference; HeaderRefs name secrets kept elsewhere (a file, env:, vault:).",
"properties": {
"url": {
"type": "string"
},
"description": {
"type": "string"
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"header_refs": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"secrets": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"enabled": {
"type": "boolean"
},
"timeout_seconds": {
"type": "integer"
}
}
},
"MCPServerView": {
"type": "object",
"description": "MCPServerView is a server as the API shows it: header values only for the headers sent as written, and for the others the reference read.",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
},
"description": {
"type": "string"
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"header_refs": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"enabled": {
"type": "boolean"
},
"timeout_seconds": {
"type": "integer"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"created_by": {
"type": "string"
}
}
},
"MCPTestView": {
"type": "object",
"description": "MCPTestView is what the server said when asked: its tools, or why not.",
"properties": {
"ok": {
"type": "boolean"
},
"tools": {
"type": "array",
"items": {
"type": "string"
}
},
"error": {
"type": "string"
}
}
},
"MembershipRequest": {
"type": "object",
"description": "MembershipRequest puts a person in an organization, team or project, or with DELETE takes them out.",