MCP Setup for Claude Code

April 13, 2026 · View on GitHub

Qualixar OS exposes its full API as an MCP (Model Context Protocol) server. This lets Claude Code call QOS tools directly — run tasks, design teams, manage agents, and more — all through the standard MCP protocol over stdio transport.

Step 1: Register QOS as an MCP Server

Run this command in your terminal:

claude mcp add qualixar-os -- npx qualixar-os --mcp

This registers QOS in your Claude Code MCP configuration. The --mcp flag starts QOS in MCP mode (stdio transport), which Claude Code connects to automatically.

Alternative: Manual Configuration

Add this to your ~/.claude.json under the mcpServers section:

{
  "mcpServers": {
    "qualixar-os": {
      "command": "npx",
      "args": ["qualixar-os", "--mcp"]
    }
  }
}

Step 2: Verify the Connection

Start a new Claude Code session and check that QOS tools are available:

> What MCP tools do you have from qualixar-os?

Claude should list the QOS tools. You can also verify from the terminal:

claude mcp list

Look for qualixar-os in the output.

Available MCP Tools

QOS exposes 25 tools via MCP. The core tools you will use most:

Task Management

ToolDescription
run_taskRun a new task. Accepts prompt, type, mode, budget_usd, topology, simulate.
get_statusGet task status by taskId.
list_tasksList recent tasks (up to 50).
pause_taskPause a running task.
resume_taskResume a paused task.
cancel_taskCancel a task.
redirect_taskRedirect a task with a new prompt mid-execution.

Agents and Forge

ToolDescription
list_agentsList all registered agents.
get_forge_designsGet Forge team designs, optionally filtered by task type.
list_topologiesList available execution topologies.

System and Cost

ToolDescription
get_system_configGet current system configuration.
get_costGet cost summary (overall or per task).

Quality and Memory

ToolDescription
get_judge_resultsGet judge evaluation results for a task.
search_memorySearch QOS memory (SLM-Lite). Accepts query, layer, limit.
search_vectorsSearch the vector store.

Data and Connectors

ToolDescription
list_connectorsList configured connectors.
test_connectorTest a connector by ID.
list_datasetsList available datasets.
preview_datasetPreview rows from a dataset.

Blueprints and Prompts

ToolDescription
list_blueprintsList agent blueprints.
deploy_blueprintDeploy a blueprint by ID.
list_promptsList prompt templates.
create_promptCreate a new prompt template.

Chat

ToolDescription
send_chat_messageSend a message in a QOS conversation.

Tool Tiers

QOS supports tiered tool exposure to control token budget. Set the QOS_TIER environment variable:

TierToolsToken Budget
coreqos_task, qos_system~800 tokens
extended+ qos_agents, qos_context~1,600 tokens
full (default)All 6 domain tools~2,400 tokens

The domain-grouped tools (qos_task, qos_agents, etc.) use discriminated unions on the action parameter to keep the tool count low while covering all operations.

Troubleshooting

"Tool not found" or no QOS tools listed

  1. Verify QOS is installed: npx qualixar-os --version
  2. Re-register: claude mcp add qualixar-os -- npx qualixar-os --mcp
  3. Restart Claude Code to pick up the new MCP server

"Connection refused" or timeouts

The MCP server runs over stdio, not HTTP. It starts a fresh QOS process each time Claude Code launches. If you see connection errors:

  1. Check that npx qualixar-os --mcp runs without errors in a standalone terminal
  2. Verify Node.js is available: node --version (requires Node 18+)
  3. Check for port conflicts if you also have qos serve running

High token usage from tool descriptions

Switch to a smaller tier: set QOS_TIER=core in your environment before launching Claude Code. This reduces tool descriptions from ~2,400 tokens to ~800 tokens.

Authentication

If you have QOS_API_KEY set, the MCP server uses the same key. The stdio transport handles this internally. For the HTTP API (used by slash commands), set the key in your environment:

export QOS_API_KEY=your-key-here