SolidX
Getting Started

Using SolidX MCP Server

Expose SolidX tools to external AI clients over HTTP with the SolidX MCP server.

The MCP server exposes SolidX tools to external AI clients (Claude Code, Claude Desktop, Cursor, Codex CLI, etc.) over HTTP with API-key authentication.

Prerequisite: bootstrap a project first

This guide assumes you have already scaffolded and started a SolidX project using solidctl create-app and solidctl start:dev, as described in the main Getting Started guide. The MCP server runs against an existing project's backend - it does not create one.


Connect your AI agent

solidctl mcp install detects which supported AI agents are installed on your machine and writes the SolidX MCP server entry into each agent's config automatically. This is a one-time setup step and does not require the MCP server to be running.

Supported agents:

AgentWhat gets detected
Claude CodeCLI (claude) and/or config at ~/.claude.json
Claude DesktopApp config at the platform-specific Claude Desktop path
CursorCLI (cursor) and/or config at ~/.cursor/mcp.json
CodexCLI (codex) and/or config at ~/.codex/config.toml

Step 1: Install the MCP entry

From your SolidX project root:

solidctl mcp install

The command:

  • Reads your project's API key from ~/.solidx/<project>/mcp.json (created during solidctl create-app).
  • Detects which of the supported agents above are present on your machine.
  • Adds a server entry named solidx-<project>-mcp to each detected agent's MCP config.
  • Backs up any config file it modifies.

Options:

FlagDefaultDescription
--project <name>Derived from cwdConsuming project name (kebab-case)
--api-key <key>From mcp.jsonOverride the API key (must start with sldx_)
--url <url>http://localhost:9000/mcpMCP server URL
--name <server>solidx-<project>-mcpOverride the server entry name
--agents <list>All detectedComma-separated subset: claude-code, cursor, codex, claude-desktop
--dry-runPrint planned changes without writing anything
--forceRe-write even when an identical entry already exists

Examples:

# Preview what would change
solidctl mcp install --dry-run

# Install into Cursor and Codex only
solidctl mcp install --agents cursor,codex

# Use a new API key generated in the admin panel
solidctl mcp install --api-key sldx_...

API key

During scaffolding, solidctl create-app writes an admin API key to ~/.solidx/<project>/mcp.json. mcp install reads that key automatically. If you generated a new key in the admin panel (IAM → API Keys), pass it with --api-key.

Step 2: Restart your agent

If Claude Code, Claude Desktop, Cursor, or Codex was already open when you ran mcp install, restart it so it picks up the new MCP server entry. Newly launched agents load the updated config automatically.


Start the MCP server

If your project is already running via solidctl start:dev (the default from the Getting Started guide), the MCP server is already runningstart:dev supervises the API, UI, and MCP server together.

You only need to start the MCP server separately if you launched the project with a subset of services, for example:

solidctl start:dev --api    # API only
solidctl start:dev --ui     # UI only

In that case, start the MCP server from your SolidX project root:

solidctl mcp start

Options:

FlagDefaultDescription
-p, --port9000Listen port
-H, --host0.0.0.0Bind address
--mount-path/mcpURL path for the MCP endpoint
-l, --log-levelINFOLogging level

The server listens at http://localhost:9000/mcp by default. Keep it running while your AI client is connected. With the server up, SolidX tools appear in your agent and you can drive the platform from natural language.


Manual MCP configuration

Use these instructions if solidctl mcp install fails, you want to configure a specific agent by hand, or you are using a client that is not supported by the installer.

You need:

  1. An API key — from ~/.solidx/<project>/mcp.json or generated in the admin panel (IAM → API Keys).
  2. The MCP server running — included by default in solidctl start:dev, or started separately with solidctl mcp start if you used --api or --ui only.

Default endpoint: http://localhost:9000/mcp
Default server entry name: solidx-<project>-mcp (replace <project> with your project name).


MCP commands

CommandWhat it does
mcp installAuto-configure Claude Code, Claude Desktop, Cursor, and Codex
mcp startStart the MCP server (HTTP)

Full reference: solidctl Commands


Next Steps