Overview
The MCP API provides programmatic access to manage Model Context Protocol servers, their tools, and integrations within FlowX.AI. Use these endpoints to automate MCP server configuration, test connections, and manage tool availability.All API endpoints require proper authentication and authorization. Ensure you have the necessary permissions to access Integration Management APIs.
Base URL
{your-domain} with your FlowX.AI deployment domain.
Authentication
All API requests must include authentication headers. The specific authentication mechanism depends on your FlowX.AI deployment configuration. Example Request Headers:MCP System Management
Create MCP System
Create a new MCP server connection as a data source.Path Parameters
The unique identifier of the application.
The unique identifier of the application version.
Request Body
The action to perform. Must be
CREATE for creating a new system.The name of the MCP server resource.Validation:
- Must be unique within the project
- Only letters, numbers, and special characters
[],(),.,_,-are allowed
The configuration payload for the MCP system.
The display name for the MCP server.
The system type. Must be
MCP for MCP servers.Allowed values: REST, NOSQL_DB, MCPThe base URL of the MCP server.Example:
https://api.example.com/mcpAuthentication configuration for the MCP server.
The authentication type.Allowed values:
NO_AUTH, SERVICE_ACCOUNTAuthentication configuration details (required when type is not
NO_AUTH).OAuth 2.0 client ID (required for
SERVICE_ACCOUNT).OAuth 2.0 client secret (required for
SERVICE_ACCOUNT).OAuth 2.0 token endpoint URL (required for
SERVICE_ACCOUNT).Optional description of the MCP server’s purpose.
Request Example
Response
The unique identifier of the created MCP system.
The resource identifier used for referencing this system.
The resource definition identifier.
The system type, always
MCP for MCP servers.Array of available tools. Initially empty; populated after connection test.
Client secrets are not returned in API responses for security reasons.
Test MCP Connection
Test the connection to an MCP server before or after creating it.Path Parameters
The unique identifier of the application.
The unique identifier of the application version.
Request Body
The base URL of the MCP server to test.
Authentication configuration to test.
The authentication type.Allowed values:
NO_AUTH, SERVICE_ACCOUNTAuthentication configuration details (required when type is not
NO_AUTH).Request Example
Response
HTTP status code: 200 for success, 400/500 for failures.
Human-readable message describing the result.
Array of available tools (only included on successful connection).
Get MCP System Details
Retrieve detailed information about an MCP system, including its tools.Path Parameters
The unique identifier of the application.
The unique identifier of the application version.
The resource ID of the MCP system.
Response
Get All Systems
Retrieve information about all available systems, including MCP servers, filtered by type.Path Parameters
The unique identifier of the application.
The unique identifier of the application version.
Query Parameters
Whether to include manifest information in the response.
Comma-separated list of dependency types to include (e.g.,
LIB).Response
This endpoint returns all system types (REST, NOSQL_DB, MCP). Filter by the
type field to identify MCP servers.Tool Management
Enable/Disable MCP Tool
Enable or disable a specific tool from an MCP server.Path Parameters
The unique identifier of the application.
The unique identifier of the application version.
The resource ID of the MCP system.
The ID of the MCP system.
The ID of the tool to enable or disable.
Request Body
Set to
true to enable the tool, false to disable it.Request Example
Response
HTTP status code.
Human-readable message describing the result.
The updated tool object with its new status.
Workflow Node Configuration
Custom Agent Node Structure
When creating or updating a Custom Agent node in a workflow, use the following structure:The
mcpServers array in aiOptions references MCP systems by their resourceDefinitionId and appId, allowing the Custom Agent to access enabled tools from those servers.Error Codes
Common HTTP status codes returned by MCP APIs:| Status Code | Description |
|---|---|
| 200 | Success - Request completed successfully |
| 201 | Created - Resource created successfully |
| 400 | Bad Request - Invalid request parameters or validation errors |
| 401 | Unauthorized - Authentication required or failed |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Resource not found |
| 409 | Conflict - Resource already exists (e.g., duplicate name) |
| 500 | Internal Server Error - Server-side error occurred |
Common Error Messages
Name Validation Errors
Name Validation Errors
Error: “Name must be unique inside the project.”Cause: An MCP system with this name already exists in the project.Solution: Choose a different, unique name.
Error: “Name can only contain letters, numbers and the following special characters [] () . _ -”Cause: The name contains invalid special characters.Solution: Remove or replace invalid characters with allowed ones.
Error: “Name can only contain letters, numbers and the following special characters [] () . _ -”Cause: The name contains invalid special characters.Solution: Remove or replace invalid characters with allowed ones.
Connection Errors
Connection Errors
Error: “Connection failed: Invalid authentication credentials”Cause: The provided authentication credentials are incorrect or expired.Solution: Verify the client ID, client secret, and identity provider URL.
Error: “Connection failed: MCP server is unreachable”Cause: The MCP server is down or the URL is incorrect.Solution: Verify the server URL and ensure the server is running.
Error: “Connection failed: MCP server is unreachable”Cause: The MCP server is down or the URL is incorrect.Solution: Verify the server URL and ensure the server is running.
Authorization Errors
Authorization Errors
Rate Limiting
Rate limiting policies depend on your FlowX.AI deployment configuration. Contact your system administrator for specific rate limit details.
Next steps
Add MCP Data Source
Learn how to configure MCP servers via UI
Custom Agent Node
Use MCP tools in Integration Designer workflows
Related resources
MCP Integration Overview
Learn about MCP integration capabilities
Integration Designer
Learn about Integration Designer and data sources

