Docs

The Gateway

Updated View as Markdown

Everything you can do in your Workspace is an action. Your own code calls an action over REST, and an AI tool calls the same action over MCP. Both reach one dispatcher, so each call is checked against the same Mandates, metered the same way and written to the same workspace audit log.

One action, two surfaces

An action you find on one surface is on the other, with the same area and verb, the same input and the same output.

SurfaceUse it fromPath on your Workspace host
RESTYour own code and scripts/api/v<N>/<area>/<verb>
MCPAn AI tool that speaks MCP/api/mcp

A connected integration’s operation usually has two addresses: its typed path and MCP tool, and the generic invoke call that names the operation. Both reach one action, with the same check, cost and audit entry.

Where each action answers

Each action declares where it answers, its Exposure. Most actions answer on your Workspace host. A few, such as sign-in, also answer on the platform’s own domain.

ExposureHostIts reference
WorkspaceYour Workspace host or your custom domainWorkspace REST and MCP reference
PlatformThe platform’s own domain and its sign-in hostGeneral REST and MCP reference

An Exposure says where an action answers and grants nothing. A call on any host is authorized the same way.

Download the reference files

Your Workspace serves its OpenAPI document. Download it to generate a typed client, or to load the API into a tool that reads OpenAPI:

curl -o openapi.json https://<workspace-host>/openapi.json \
  -H "Authorization: Bearer $HARNESTY_TOKEN"

The document lists only the operations your credential may call.

An MCP client needs no file. It reads the tool list from the endpoint when it connects, and the list holds only the tools that client may call.

Find your endpoint

Open Gateway in the app and copy the URL:

https://<workspace-host>/api/mcp

Every Workspace host serves it.

Connect a client

Add the endpoint to any MCP-compatible client. The client reads the endpoint’s protected-resource metadata, obtains its own access token from Harnesty’s issuer and signs in as itself. No token is pasted into the client.

{
  "mcpServers": {
    "harnesty": {
      "url": "https://meridian-studio.harnesty.com/api/mcp"
    }
  }
}

Every call is metered and logged

Every call writes to the workspace audit log, with the calling actor and the Mandate it acted under. A call through a Connection also records that Connection.

Integration kindPer callWhat it is
Catalog2 crServed through our catalog bridge, the default
Native Preview1 crA first-party connector we run ourselves
Custom1 crYour own MCP server or endpoint

Features marked Preview turn on together, for your whole Workspace, when we grant access.

A search, scraping, enrichment or compute-backed tool may publish a price above its kind; the gallery shows every integration’s price before you connect it.

Human approvals of gateway calls are always Free. Issuing or revoking a Mandate costs nothing either.

Sources

  1. Governance
  2. Workspace REST and MCP reference
  3. Model Context Protocol specification 2025-06-18: Authorizationread November 25, 2026
  4. RFC 9728: OAuth 2.0 Protected Resource Metadataread November 25, 2026