Skip to content

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.

  • A Workspace owner or admin can manage saved connections. Project-scoped connections also require manage access on that project.
  • Importing an Environment resource requires agency manage access on the project and its referenced project secrets.
  • Use the provider’s public HTTPS MCP endpoint for a remote connection.
  1. Open Connectors → Agent tools & plugins.
  2. Choose a server from the catalog or add a custom connection.
  3. Select Workspace scope or one project and enter the setup inputs.
  4. For an OAuth connection, choose Connect and sign in with the provider in your browser. For header authentication, supply the requested headers.
  5. 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.

Use the project resource endpoint to add a server definition to the active Environment. This path uses project-secret placeholders for credentials.

Terminal window
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} or Bearer ${DOCS_MCP_TOKEN}.
  • Credential arguments for a stdio server 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.

For an Environment resource, choose one of these direct executables: bunx, deno, node, npx, python, python3 or uvx. Put its arguments in args.

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.

  • 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 403 on a saved connection. Use a Workspace owner or admin account, with manage access for a project-scoped connection. Complete OAuth sign-in through a signed-in browser.
  • A 403 on resource import. Check agency manage access on the project.