Skip to main content

MCP integration

Preview

These packages are in private preview. Names are final; details may change before release.

Two packages. @autessa/mcp-tools is an MCP server that gives any MCP client, such as Claude Desktop or Claude Code, Autessa agent tools: table and Drive search, Drive reads, SMS, email, approvals, and your company's own tools. @autessa/mcp-firewall is a proxy that wraps any MCP server and checks its tool definitions, tool calls, and tool results with the AI Application Firewall.

Install​

npm install -g @autessa/mcp-tools @autessa/mcp-firewall
export AUTESSA_API_KEY="<keyId>:<secret>"

Or let npx fetch them on first run, as shown below. The commands are autessa-mcp-tools and autessa-mcp-firewall.

Minimal example​

Add the tools server to Claude Code:

claude mcp add autessa-tools --env AUTESSA_API_KEY="$AUTESSA_API_KEY" -- npx -y @autessa/mcp-tools

Or to Claude Desktop (claude_desktop_config.json):

{
"mcpServers": {
"autessa-tools": {
"command": "npx",
"args": ["-y", "@autessa/mcp-tools"],
"env": { "AUTESSA_API_KEY": "<keyId>:<secret>" }
}
}
}

Your client lists tools such as autessadb_search, drive_search, drive_read, send_sms, send_email, request_approval, and get_approval. The key decides which tools appear.

Wrap another MCP server with the firewall. Put the firewall command first and the server you already use after --:

{
"mcpServers": {
"notes": {
"command": "npx",
"args": ["-y", "@autessa/mcp-firewall", "--policy", "default", "--", "npx", "-y", "your-notes-mcp-server"],
"env": { "AUTESSA_API_KEY": "<keyId>:<secret>" }
}
}
}

To wrap a remote server, use --upstream-url <url> instead of a command after --.

How it works​

  • Tools server: tools/list lists the tools your key may run (GET /clients/agent-tools), and tools/call runs one (POST /clients/agent-tools/{name}/invoke). When a tool reports an error, or the key may not run it, the result has isError: true and a plain-language message.
  • Transports: stdio by default, for clients that start the server themselves. With --transport http, the tools server serves streamable HTTP at http://<host>:<port>/mcp, and every request must send the caller's own Autessa key in the Authorization or X-Autessa-Api-Key header.
  • Tool definitions (Preview): every time the client lists tools, the proxy checks all definitions as TOOL_DEFINITIONS. It looks for poisoned descriptions, hidden instructions, excessive permissions, and definitions that changed since it first saw them. By default, unsafe tools are hidden, and calls to them are refused.
  • Tool calls: each tools/call is checked as TOOL_CALL before it reaches the upstream server. A blocked call never runs, and the proxy returns an error result with the reason.
  • Tool results: each result is checked as TOOL_RESULT before it reaches the model. A blocked result is withheld.
  • Unreachable firewall: the proxy fails closed. Tools are withheld and calls do not run, with a plain message saying why. A call to a tool whose definition was never checked is refused too. Pass --fail-open to let traffic through instead.
  • Resources and prompts are passed through unchanged.

Options​

OptionPackageWhat it does
--transport stdio|httpbothHow your client connects. Default stdio.
--port, --hostbothFor HTTP. Defaults: 3333 (mcp-tools) or 3334 (mcp-firewall), and 127.0.0.1.
--include builtin,tenantmcp-toolsAutessa feature tools, your company's tools, or both (default).
--allow / --denymcp-toolsShow only, or never show, these tool names, for example --allow autessadb_search,request_approval.
--allow-env-keymcp-toolsHTTP only: let requests without a key use AUTESSA_API_KEY. Off by default.
--policy <name>mcp-firewallUse a named firewall policy.
--profilemcp-firewallfast, balanced, or thorough. Preview.
--on-tool-definitions hide|block|flagmcp-firewallWhat to do with unsafe tool definitions. Default hide.
--fail-openmcp-firewallIf a check can't run (the firewall can't be reached, errors, or times out), let traffic through. Default: block.
--timeout <ms>mcp-firewallLongest one check may take, retries included. Default: the client's timeout (30 s per attempt). Running out of time counts as a failed check.
--upstream-url <url>mcp-firewallWrap a remote (HTTP) MCP server.
--upstream-name <name>mcp-firewallName used to remember tool definitions. Default: the server's own name.

Both packages can also be used from code: createAgentToolsServer from @autessa/mcp-tools, and createFirewallProxy from @autessa/mcp-firewall.

Example​

mcp-firewall-desktop: a tiny MCP server with one poisoned tool, wrapped by the firewall proxy. The poisoned tool is withheld from tools/list, and the ordinary tool works as before.