MCP servers
Connect project agents to tools from other services.
Connect an MCP server to give agents tools for search, design or another service your project uses. Add a saved connection in the dashboard, or import a server definition into a project’s Environment.
To connect your own assistant to Hlix, use Connect your AI.
Prerequisites
Section titled “Prerequisites”- A Workspace owner or admin can manage saved connections. Project-scoped connections also require
manageaccess on that project. - Importing an Environment resource requires agency
manageaccess on the project and its referenced project secrets. - Use the provider’s public HTTPS MCP endpoint for a remote connection.
Add a saved connection
Section titled “Add a saved connection”- Open Connectors → Agent tools & plugins.
- Choose a server from the catalog or add a custom connection.
- Select Workspace scope or one project and enter the setup inputs.
- For an OAuth connection, choose Connect and sign in with the provider in your browser. For header authentication, supply the requested headers.
- Choose Check connection to load the remote server’s tools.
Saved credentials are encrypted. On edits, leave an existing credential field empty to preserve its saved value. Recheck the connection after the provider changes its tools.
Enabled Workspace connections apply across projects. A project connection of the same name takes precedence, followed by any matching entry in the project’s Environment. The API for saved connections is /v1/api/mcp-servers.
Declare one
Section titled “Declare one”Use the project resource endpoint to add a server definition to the active Environment. This path uses project-secret placeholders for credentials.
curl -sS -X POST "$HLIX_BASE_URL/v1/api/projects/$PROJECT_ID/resources/mcp" \ -H "x-api-key: $HLIX_API_KEY" \ -H "X-Organization-Id: $HLIX_WORKSPACE_ID" \ -H 'content-type: application/json' \ -d '{ "name": "docs-search", "transport": "http", "url": "https://mcp.example.com/", "headers": { "Authorization": "Bearer ${DOCS_MCP_TOKEN}" }, "envKeys": ["DOCS_MCP_TOKEN"] }'Expected result:
{"mcpServer": {"name": "docs-search", "transport": "http", "envKeys": ["DOCS_MCP_TOKEN"]}}The 201 response includes the server name, transport and referenced environment keys. The server joins the active Environment; the audit log records the change.
transport is stdio, http or sse. A remote transport takes url and optional headers; stdio takes command and args.
Project resource credentials use references
Section titled “Project resource credentials use references”Use ${DOCS_MCP_TOKEN} to reference a project secret. Add the secret before importing the definition, and include its name in envKeys.
- Remote headers accept a single-key template such as
${DOCS_MCP_TOKEN}orBearer ${DOCS_MCP_TOKEN}. - Credential arguments for a
stdioserver use a complete${KEY}placeholder. - A remote resource URL uses public HTTPS without userinfo, a query string or a fragment. Put credentials in headers.
The placeholders resolve from the project’s secrets when a cycle run starts. Saved connections use the dashboard’s credential fields instead of this placeholder format.
What a stdio server may run
Section titled “What a stdio server may run”For an Environment resource, choose one of these direct executables: bunx, deno, node, npx, python, python3 or uvx. Put its arguments in args.
Where it lands in a cycle run
Section titled “Where it lands in a cycle run”The run receives the Environment’s server definitions with their project-secret placeholders resolved. They merge into .mcp.json alongside the repository’s own definitions. See Environments for the rest of the project’s setup.
Troubleshooting
Section titled “Troubleshooting”- A project secret is missing. Add the named key to project secrets and import the definition again. Restore any key removed after import before starting another run.
- A resource credential is rejected. Use the supported header or argument placeholder above and include the key in
envKeys. - A remote connection fails. Check its public HTTPS endpoint, saved credentials and connection status. Reconnect if authorization has expired.
- A local resource command is rejected. Use one of the direct executables above with its arguments in
args. - A
403on a saved connection. Use a Workspace owner or admin account, withmanageaccess for a project-scoped connection. Complete OAuth sign-in through a signed-in browser. - A
403on resource import. Check agencymanageaccess on the project.