MCP Server

Manage MCP Servers

Listing MCP servers

get

Retrieves mcp servers based on the provided query.

Required scopes

  • ai.agent_read

Authorizations
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

Query parameters
qstringOptional

A standard query parameter is used to search for specific values.

See: Standard Practices - Query parameter

pageSizestringOptional

The number of documents to be retrieved per page.

pageNumberstringOptional

The page number to be retrieved. The size of the pages should be specified by the pageSize parameter.

sortstringOptional

List of properties used to sort the results, separated by colons.

fieldsstringOptional

Fields to be returned in the response.

expandstring · enumOptional

Fields to be expanded in the response. It means that instead of the object IDs, the whole objects are returned in the response.

Possible values:
Header parameters
X-Total-CountbooleanOptional

Flag indicating whether the total number of retrieved results should be returned.

Responses
200

List of mcp servers.

application/json
get
/ai-service/{tenant}/agentic/mcp-servers
GET /ai-service/{tenant}/agentic/mcp-servers HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
  {
    "id": "mcp-custom",
    "name": "Custom MCP Server",
    "transport": "sse",
    "config": {
      "url": "http://localhost:7900",
      "authorizationHeaderName": "Authorization",
      "authorizationHeaderTokenId": "token-id"
    }
  }
]

Searching MCP servers

post

Searches for MCP servers based on the provided query.

Required scopes

  • ai.agent_read

Authorizations
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

Query parameters
pageSizestringOptional

The number of documents to be retrieved per page.

pageNumberstringOptional

The page number to be retrieved. The size of the pages should be specified by the pageSize parameter.

sortstringOptional

List of properties used to sort the results, separated by colons.

fieldsstringOptional

Fields to be returned in the response.

expandstring · enumOptional

Fields to be expanded in the response. It means that instead of the object IDs, the whole objects are returned in the response.

Possible values:
Header parameters
X-Total-CountbooleanOptional

Flag indicating whether the total number of retrieved results should be returned.

Body
qstringOptional

A standard query parameter is used to search for specific values.

See: Standard Practices - Query parameter

Responses
200

List of MCP servers.

application/json
post
/ai-service/{tenant}/agentic/mcp-servers/search
POST /ai-service/{tenant}/agentic/mcp-servers/search HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "q": "name:~Support"
}
[
  {
    "id": "mcp-custom",
    "name": "Custom MCP Server",
    "transport": "sse",
    "config": {
      "url": "http://localhost:7900",
      "authorizationHeaderName": "Authorization",
      "authorizationHeaderTokenId": "token-id"
    }
  }
]

Retrieving MCP server by ID

get

Retrieves the mcp server by given ID.

Required scopes

  • ai.agent_read

Authorizations
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

mcpServerIdstringRequired
Query parameters
fieldsstringOptional

Fields to be returned in the response.

Responses
200

A single mcp server.

application/json
Responseall of
get
/ai-service/{tenant}/agentic/mcp-servers/{mcpServerId}
GET /ai-service/{tenant}/agentic/mcp-servers/{mcpServerId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "id": "mcp-custom",
  "name": "Custom MCP Server",
  "transport": "sse",
  "config": {
    "url": "http://localhost:7900",
    "authorizationHeaderName": "Authorization",
    "authorizationHeaderTokenId": "token-id"
  }
}

Upserting MCP server

put

Updates or creates a specified mcp server by replacing all of its existing data with data from the request body. If the metadata.version is provided then optimistic locking is enabled and version must match the version in the database.

Required scopes

  • ai.agent_manage

Authorizations
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

mcpServerIdstringRequired
Body
all ofOptional
Responses
201

ID of created mcp server.

application/json
put
/ai-service/{tenant}/agentic/mcp-servers/{mcpServerId}
PUT /ai-service/{tenant}/agentic/mcp-servers/{mcpServerId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 169

{
  "name": "Custom MCP Server",
  "transport": "sse",
  "config": {
    "url": "http://localhost:7900",
    "authorizationHeaderName": "Authorization",
    "authorizationHeaderTokenId": "token-id"
  }
}
{
  "id": "a81bc81b-dead-4e5d-abff-90865d1e13b1"
}

Deleting MCP server

delete

Deletes mcp server by given ID.

Important: If mcp server is being used by an agent then delete operation is not possible without force flag set to true.

Required scopes

  • ai.agent_manage

Authorizations
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

mcpServerIdstringRequired
Query parameters
forcebooleanOptional

Allows you to remove a given entity even if it is used as a dependency in other entries. In that case, the removed entity is unassigned from other entries.

Example: false
Responses
204

Given mcp server has been deleted.

No content

delete
/ai-service/{tenant}/agentic/mcp-servers/{mcpServerId}
DELETE /ai-service/{tenant}/agentic/mcp-servers/{mcpServerId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*

No content

Partially updating MCP server

patch

Partially updates a single mcp server document with given information. Single update may contain multiple partial updates in the form of an array. It contains the allowed operations list:

  • add (adding an item to the items list)

  • remove (removing an item from the items list)

  • replace (replacing an item with given ID with new definition)

Required scopes

  • ai.agent_manage

Authorizations
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

mcpServerIdstringRequired
Bodyobject[]

Partial update operation list.

opany ofRequired
undefined · enumOptionalPossible values:
pathstringRequiredExample: /name
valueany ofOptional
stringOptional

Value of the string type.

or
objectOptional

Any part of the details object.

Responses
204

No Content

No content

patch
/ai-service/{tenant}/agentic/mcp-servers/{mcpServerId}
PATCH /ai-service/{tenant}/agentic/mcp-servers/{mcpServerId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 65

[
  {
    "op": "REPLACE",
    "path": "/name",
    "value": "New Custom MCP Server"
  }
]

No content

Last updated

Was this helpful?