Provision an API key
Set CONNECT_API_KEY in your environment. The key is the only thing that authenticates requests to the Connect API — there is no user model in the MVP.
# .env.local
CONNECT_API_KEY=$(openssl rand -hex 24)A dev default (dev-connect-key) is used if no key is set, with a one-time warning logged on startup. Always set a real key in production.
Store a connector credential
Every connector is keyed by an id (e.g. github). Send the credential once via POST /api/connectors/<id>/connect. The secret lives in the in-memory vault for the lifetime of the process.
curl -X POST \
-H "Authorization: Bearer $CONNECT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"secret": "ghp_…your_personal_access_token"}' \
https://connect.aidimension.io/api/connectors/github/connectCall a tool via the MCP endpoint
The MCP endpoint accepts a namespaced tool key and an args object. The vault lookup and credential injection happen automatically.
curl -X POST \
-H "Authorization: Bearer $CONNECT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tool": "github.get_user", "args": {"login": "octocat"}}' \
https://connect.aidimension.io/api/mcp/invokeA successful response returns the tool result directly:
{
"content": {
"login": "octocat",
"name": "The Octocat",
"bio": "GitHub mascot",
"public_repos": 8
},
"isError": false
}Errors come back structured too — isError: true with the upstream status code and a human-readable message incontent.error.
List available tools
Discover every tool exposed by every live connector in one call. The response uses MCP namespacing (<connectorId>.<toolName>).
curl -H "Authorization: Bearer $CONNECT_API_KEY" \
https://connect.aidimension.io/api/mcp/toolsWire it into your agent
Any MCP-aware client can drive the /api/mcp/tools and /api/mcp/invoke endpoints as a single MCP server. For non-MCP clients, use the REST-style /api/connectors/<id>/invoke endpoint with a plain tool + args body.
For a quick visual check, the /dashboard page lets you store a credential and invoke a tool in the browser.