MCP servers
MCP servers operations in the Hlix API.
See the OpenAPI document for schemas and operation IDs.
Prerequisites
Section titled “Prerequisites”- Protected operations require an API key in
x-api-keyor a browser session cookie; some actions require a verified user session - Tenant-scoped operations use
X-Organization-Id; browser sessions can use their active workspace. Discovery and personal-workspace bootstrap do not require an active workspace - The base URL for your deployment,
https://server.hlix.aiby default
Operations
Section titled “Operations”| Method | Path | Operation |
|---|---|---|
GET |
/v1/api/mcp-servers |
List MCP servers in workspace or project scope |
POST |
/v1/api/mcp-servers |
Register an MCP server |
DELETE |
/v1/api/mcp-servers/{id} |
Delete an MCP server |
GET |
/v1/api/mcp-servers/{id} |
Get one MCP server |
PATCH |
/v1/api/mcp-servers/{id} |
Update an MCP server |
POST |
/v1/api/mcp-servers/{id}/connect |
Start hosted OAuth for a remote MCP connection |
POST |
/v1/api/mcp-servers/{id}/disconnect |
Disconnect OAuth and invalidate discovered tools |
POST |
/v1/api/mcp-servers/{id}/discover |
Discover and save the remote server tool catalog |
POST |
/v1/api/mcp-servers/{id}/qualification |
Assign a Wesam test run to the connected agent |
List MCP servers in workspace or project scope
Section titled “List MCP servers in workspace or project scope”GET /v1/api/mcp-servers · operation ID listMcpServers
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
projectId |
query | no | string | List only connections belonging to this project. Omitted lists workspace connections. |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
McpServer[] | Every registered server, enabled or not. env values are write-only: each key is listed and every value reads as an empty string. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
Register an MCP server
Section titled “Register an MCP server”POST /v1/api/mcp-servers · operation ID createMcpServer
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Request body — application/json, CreateMcpServer (required)
| Property | Type | Required | Notes |
|---|---|---|---|
args |
string[] | null | no | |
authentication |
headers | oauth |
no | |
command |
string | null | no | |
description |
string | null | no | |
enabled |
boolean | no | |
env |
object | null | no | |
name |
string | yes | min length 1, max length 100 |
oauthClientId |
string | null | no | |
oauthClientSecret |
string | null | no | |
projectId |
string (uuid) | null | no | |
serviceAgentId |
string (uuid) | no | |
transport |
stdio | http | sse |
yes | |
url |
string (uri) | string | null | no |
Responses
| Status | Body | Description |
|---|---|---|
201 |
McpServer | The stored row. |
400 |
ValidationError | ApiError | The JSON body failed schema validation (ValidationError), or the request named no active organization (ApiError). |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Writing the registry is owner/admin only. (Or the caller is not a member of this workspace at all.) |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
500 |
ApiError | The server could not be written. |
Delete an MCP server
Section titled “Delete an MCP server”DELETE /v1/api/mcp-servers/{id} · operation ID deleteMcpServer
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
MessageAck | The server is gone. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Writing the registry is owner/admin only. (Or the caller is not a member of this workspace at all.) |
404 |
ApiError | No such MCP server in this workspace. |
Get one MCP server
Section titled “Get one MCP server”GET /v1/api/mcp-servers/{id} · operation ID getMcpServer
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
McpServer | The row. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | No such MCP server in this workspace. |
Update an MCP server
Section titled “Update an MCP server”PATCH /v1/api/mcp-servers/{id} · operation ID updateMcpServer
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Request body — application/json, UpdateMcpServer (required)
| Property | Type | Required | Notes |
|---|---|---|---|
args |
string[] | null | no | |
authentication |
headers | oauth |
no | |
command |
string | null | no | |
description |
string | null | no | |
enabled |
boolean | no | |
env |
object | null | no | |
name |
string | no | min length 1, max length 100 |
oauthClientId |
string | null | no | |
oauthClientSecret |
string | null | no | |
projectId |
string (uuid) | null | no | |
serviceAgentId |
string (uuid) | no | |
transport |
stdio | http | sse |
no | |
url |
string (uri) | string | null | no |
Responses
| Status | Body | Description |
|---|---|---|
200 |
McpServer | The updated row. An env value sent as an empty string keeps the stored value for that key. |
400 |
ValidationError | ApiError | The JSON body failed schema validation (ValidationError), or the request named no active organization (ApiError). |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Writing the registry is owner/admin only. (Or the caller is not a member of this workspace at all.) |
404 |
ApiError | No such MCP server in this workspace. |
Start hosted OAuth for a remote MCP connection
Section titled “Start hosted OAuth for a remote MCP connection”POST /v1/api/mcp-servers/{id}/connect · operation ID connectMcpServer
Authentication — A signed-in user session is required. API keys cannot authenticate this operation. Browsers send the session cookie automatically; server clients preserve the complete issued Cookie header.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
McpConnect | The provider authorization URL and safe connection status. Requires a signed-in browser session. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Writing the registry is owner/admin only. (Or the caller is not a member of this workspace at all.) |
404 |
ApiError | No such MCP server in this workspace. |
Disconnect OAuth and invalidate discovered tools
Section titled “Disconnect OAuth and invalidate discovered tools”POST /v1/api/mcp-servers/{id}/disconnect · operation ID disconnectMcpServer
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
McpServer | The disconnected server. Its configuration remains saved. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Writing the registry is owner/admin only. (Or the caller is not a member of this workspace at all.) |
404 |
ApiError | No such MCP server in this workspace. |
Discover and save the remote server tool catalog
Section titled “Discover and save the remote server tool catalog”POST /v1/api/mcp-servers/{id}/discover · operation ID discoverMcpServer
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
McpServer | The connection with its saved discovery status. No tool is executed. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Writing the registry is owner/admin only. (Or the caller is not a member of this workspace at all.) |
404 |
ApiError | No such MCP server in this workspace. |
Assign a Wesam test run to the connected agent
Section titled “Assign a Wesam test run to the connected agent”POST /v1/api/mcp-servers/{id}/qualification · operation ID qualifyWesamServiceAgent
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Request body — application/json, WesamQualification (required)
| Property | Type | Required | Notes |
|---|---|---|---|
testRunId |
string (uuid) | yes |
Responses
| Status | Body | Description |
|---|---|---|
200 |
QualificationRequest | Qualification request recorded. |
400 |
ValidationError | ApiError | The JSON body failed schema validation (ValidationError), or the request named no active organization (ApiError). |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Writing the registry is owner/admin only. (Or the caller is not a member of this workspace at all.) |
404 |
ApiError | No such MCP server in this workspace. |
If a request fails
Section titled “If a request fails”The response table for each operation lists its documented errors. Common status codes include:
400— the body failed schema validation, or the request named no active organization. AValidationErrorbody carries the failing fields; anApiErrorbody carries onlyerror.401— no valid session or API key.403— authenticated, but not a member of the named organization, or a client collaborator without the required access.404— check the resource ID and your access to the selected Workspace.409— the expected revision or state is stale, or another operation currently owns the transition.500— the operation failed server-side. Retry only where an idempotency key makes that safe.