mcpField
K
klanex

klanex

Remote
klanexai.comAI & Agents0Updated 6w ago

About klanex

klanex is an MCP server that runs agent tool calls against third-party APIs asynchronously. It validates payloads, handles retries and idempotency, and records execution status and audit details.

Key features

  1. 01Validate payloads against JSON Schema
  2. 02Retry failures with backoff and circuit breakers
  3. 03Support idempotency keys and approval gates
  4. 04Store credentials outside model context
  5. 05Track, list, and replay executions
  6. 06Send signed webhooks and model-oriented error hints

Use cases

  1. 01Run API calls despite temporary outages or rate limits
  2. 02Require approval before destructive operations
  3. 03Retry a submission without duplicating its effect
  4. 04Inspect or replay completed executions

MCP support

The MCP server exposes tools to submit and manage API executions, inspect usage and connections, and replay calls. It supports hosted HTTP endpoints and a stdio shim for clients that only support stdio.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://api.klanexai.com/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

All endpoints
Streamable HTTPhttps://api.klanexai.com/mcpAuth required
Packages
npmklanex-mcp0.1.0

Tools

6
ParameterTypeRequiredDescription
urlstringYesabsolute http(s) URL of the target endpoint
methodstringNoHTTP method: GET, POST, PUT, PATCH, or DELETE (default POST)
headersobjectNorequest headers, typically third-party credentials; encrypted at rest and never readable back. Prefer connection_id so secrets never pass through your context
payloadanyNoJSON body to send to the target
seal_urlbooleanNoset true when the URL itself is a secret (webhook URL, presigned URL); it is encrypted and reads back redacted
timeout_msintegerNoper-attempt timeout in milliseconds (default 30000)
max_attemptsintegerNomaximum delivery attempts, 1-10 (default 5)
wait_secondsintegerNoblock up to this many seconds (max 55) for a terminal result instead of returning immediately after queueing
connection_idstringNoID of a stored credential connection (con_...) to authenticate the call; see list_connections
payload_schemaanyNoJSON Schema to validate payload against before anything executes; mismatches are rejected synchronously with a correction hint
idempotency_keystringNostable key (max 255 chars) making this submit safe to retry; the same key returns the original execution instead of creating a new one. Always set this for side-effecting calls
requires_approvalbooleanNopause for a human approve/reject decision before anything executes; use for destructive or high-stakes actions

Details

From the project README

klanex MCP server

npm MCP Marketplace

Reliable execution for agent tool calls, as an MCP server.

klanex is an async execution layer between an agent's tool-use intents and real third-party APIs: it schema-gates hallucinated payloads before anything runs, absorbs rate limits and outages with retries/backoff/circuit breakers, encrypts credentials, keeps an audit trail, and reports back via signed webhooks. With this MCP server, an agent submits a call once — klanex makes sure it lands.

Failures come back written for the model: every error carries an llm_hint telling the agent exactly what to fix (or that klanex is already handling it), so agents self-correct instead of guessing.

Connect (hosted, recommended)

klanex's MCP server is hosted — no install needed if your client supports HTTP transports:

EndpointEnvironmentKeys
https://api.klanexai.com/mcpproductionklx_live_…
https://api.sandbox.klanexai.com/mcpsandbox (free to try)klx_test_…

Get an API key at klanexai.com — sandbox keys are free.

Claude Code

claude mcp add --transport http klanex https://api.klanexai.com/mcp \
  --header "X-API-Key: klx_live_..."

Cursor / Windsurf / VS Code (mcp.json)

{
  "mcpServers": {
    "klanex": {
      "url": "https://api.klanexai.com/mcp",
      "headers": { "X-API-Key": "klx_live_..." }
    }
  }
}

Authorization: Bearer klx_... works too, for clients that can only set that header.

Connect (stdio shim)

For clients that only speak stdio (e.g. Claude Desktop), this package proxies stdio to the hosted endpoint:

{
  "mcpServers": {
    "klanex": {
      "command": "npx",
      "args": ["-y", "klanex-mcp"],
      "env": { "KLANEX_API_KEY": "klx_live_..." }
    }
  }
}

The shim routes by key prefix — klx_test_… keys go to the sandbox automatically. Set KLANEX_MCP_URL to override.

Tools

ToolWhat it does
executeSubmit an HTTP call for reliable async execution: optional JSON Schema gate, retries/backoff/circuit breakers, idempotency keys, human approval gates, encrypted credentials. wait_seconds blocks up to 55s for the terminal result.
get_executionCurrent status, attempts, target response, or classified error for an execution.
list_executionsThe account's executions, filterable by status/time, paginated.
replay_executionRe-run a terminal execution byte-exact — outage recovery without re-prompting the LLM.
get_usagePlan and current-month usage/quota.
list_connectionsStored credential connections (token vault) to reference via connection_id — so secrets never pass through model context.

Why this beats calling APIs directly

  • Hallucinated payloads are rejected before they execute — pass payload_schema and mismatches return synchronously with a correction hint.
  • Transient failures are not the agent's problem — 429s, timeouts, and 5xxs are retried with backoff behind a circuit breaker; the agent does nothing.
  • A network blip can never double-execute a refund — idempotency_key makes submits safe to retry.
  • Destructive actions can wait for a human — requires_approval pauses execution for an approve/reject decision (API, dashboard, or Slack buttons).
  • Credentials stay out of model context — store them once as a connection; klanex injects them at execution time.

Full API docs: api.klanexai.com/docs

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.