HarnessRouter MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with HarnessRouter MCP or direct API to configure harnesses, manage sessions, control workspaces, and inspect environments through natural language.

HarnessRouter logoHarnessRouter
Api Key

HarnessRouter is an API service for configuring and operating AI harnesses, sessions, workspaces, and environments. It gives teams a central way to manage AI execution resources and workflows.

61 Tools

Try HarnessRouter now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
HarnessRouter
Try asking
TOOLS

Supported Tools

Every HarnessRouter action and event your agent gets out of the box.

Activate Environment Version

Switch an environment to an earlier successful built version without rebuilding.

Build Environment

Start the next environment version build and return immediately.

Check Environment Package

Check one pip, npm, or apt package specification against its registry before declaring it on an environment.

Check Environment Packages

Sequentially check 1-50 pip, npm, or apt package specifications against their registries before declaring them on an environment.

Create Arena

Create a free arena grouping with up to 10 harness/model columns.

Create Environment

Create an environment project and optionally declare its description, entry instructions, packages, and Python runtime.

Create Harness

Create a configuration-only harness without running a task or invoking a model.

Create Session Directory

Create a directory and missing parents in an idle session workspace.

Create Snippet Folder

Create a folder used to organize reusable instruction snippets.

Discover UHP Support

Discover the Unified Harness Protocol versions and capabilities supported by HarnessRouter without starting a task or invoking a model.

Download Container File

Download one session artifact by container and file ID in its original format or as HarnessRouter's PDF preview.

Download Session Files Archive

Download a session's files as one ZIP archive.

Export Harness Plugin

Export a harness's provider-defined plugin configuration without credentials.

Get Agent Type Latency

Read how soon each HarnessRouter agent type starts answering, grouped by how its session started, optionally filtered by model and time window.

Get Arena

Read one arena grouping by ID without running any of its columns.

Get Balance

Return the connected organization's plan, available USD balance, currency, deficit status, and measurement time without running a task.

Get Current Account

Return the organization, workspace, and member the connected API key acts as.

Get Environment Build

Read one environment build's status, current step, and log.

Get Harness

Return one harness's configuration by ID without running it.

Get Harness Plugin Files

Read the complete stored file bundle for one plugin installed on a harness.

Get Harness Skill Files

Read the complete stored file bundle for one skill attached to a harness.

Get Response

Get a response, including its current status and output, without polling.

Get Session

Get one session without starting or continuing its task.

Get Session Sharing

Get whether a session is shared and the provider's share-link details.

Get Snippet

Read one reusable instruction snippet by its exact workspace path.

Get Storage Usage

Return total storage bytes used by the connected organization.

Get Trace

Get a session trace summary.

Import Environment

Import one zip/tar archive of up to 512 MiB or one git repository into an environment source tree without clearing existing source first.

List API Keys

List API-key metadata for an organization without returning secret key values.

List Arenas

List free arena groupings without running any column, model, or task.

List Bases

Find base harnesses by ID, backend, or readiness status.

List Connectors

List the connectors available in the connected workspace and whether each connector is connected.

List Harnesses

Find harness configurations by documented ID, name, or base without starting any tasks.

List Harness Models

List the models available to one configured harness, including its default and fallback model, with bounded results.

List Kits

List available HarnessRouter starter kits and whether each has already been launched, without launching one.

List Models

Browse available HarnessRouter models by backend with bounded results.

List Provider Connections

List configured direct REST model-provider connections, safe model-routing maps, and provider catalog counts.

List Response Input Items

List a bounded page of what a response was given without starting or continuing a task.

List Session Files

List file metadata from a session workspace, optionally restricted to the most recent turn.

List Sessions

List sessions newest first without starting or continuing a task.

List Session Turns

Get a session's conversation oldest first without continuing the task.

List Snippets

Find reusable instruction snippet and folder metadata by documented path and kind.

List Trace Events

List one chunk or the complete payload of a session's trace events.

List Traces

List task trace summaries newest first.

Move Session File

Move or rename one file or directory in an idle session workspace.

Move Snippet Or Folder

Move or rename one reusable instruction snippet or snippet folder inside the workspace.

Read Session File

Read one file by its relative path from a session workspace.

Rename API Key

Rename an existing HarnessRouter API key without changing its secret or workspace scope.

Rename Session

Update a session title without starting or continuing its task.

Render Instructions

Preview instruction template text with test values without saving a snippet or running a harness.

Set Harness Connectors

Replace a harness's complete connector list with the supplied connector names or IDs.

Set Harness Paused

Set whether a harness is paused.

Set Session Sharing

Publish or disable a session's public read-only share link with an explicit enabled choice.

Test MCP Server Connection

Test whether HarnessRouter can connect to a public MCP server URL without supplying server authentication, custom headers, or server credentials.

Update Arena

Replace an arena grouping by ID.

Update Environment

Update an environment's name, description, entry instructions, package declarations, or Python runtime.

Upload File

Upload one user-authorized source file for use in a later task.

Upsert Harness

Create a harness at the supplied ID, or fully replace that harness's mutable configuration if it already exists.

Create Or Replace Snippet

Create a reusable instruction snippet at a new path or completely replace the text at an existing path.

Write Environment File

Create or replace one environment source file with raw bytes, up to 64 MiB.

Write Session File

Create or replace one file in an idle session workspace using UTF-8 text or base64 bytes, up to 4 MiB.

SETUP GUIDE

Connect HarnessRouter MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["harnessrouter"],
  mcp: true,
});
Create a session scoped to HarnessRouter and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "List all workspaces in HarnessRouter",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a HarnessRouter request
SETUP GUIDE

Connect HarnessRouter API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["harnessrouter"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to HarnessRouter
3

Run HarnessRouter tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "List all workspaces in HarnessRouter" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the HarnessRouter tool calls through the session, and print the final answer

Why Use Composio?

AI Native HarnessRouter Integration

  • Supports both HarnessRouter MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable harness and session operations
  • Rich coverage for configuring workspaces, environments, harnesses, and related resources

Managed Auth

  • Secure API key handling without exposing credentials in agent prompts
  • Central place to manage, scope, and revoke HarnessRouter access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access HarnessRouter
  • Scoped, least privilege access to HarnessRouter resources
  • Full audit trail of agent actions to support review and compliance
FRAMEWORKS

Use HarnessRouter with any AI Agent Framework

Choose a Framework you want to connect HarnessRouter with

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with HarnessRouter.It takes 30 seconds.

Managed auth, hosted MCP servers, and every HarnessRouter tool your agent needs.Free to start.

Start building