MCP integration
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/listlists the tools your key may run (GET /clients/agent-tools), andtools/callruns one (POST /clients/agent-tools/{name}/invoke). When a tool reports an error, or the key may not run it, the result hasisError: trueand a plain-language message. - Transports: stdio by default, for clients that start the server themselves. With
--transport http, the tools server serves streamable HTTP athttp://<host>:<port>/mcp, and every request must send the caller's own Autessa key in theAuthorizationorX-Autessa-Api-Keyheader. - 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/callis checked asTOOL_CALLbefore 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_RESULTbefore 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-opento let traffic through instead. - Resources and prompts are passed through unchanged.
Options
| Option | Package | What it does |
|---|---|---|
--transport stdio|http | both | How your client connects. Default stdio. |
--port, --host | both | For HTTP. Defaults: 3333 (mcp-tools) or 3334 (mcp-firewall), and 127.0.0.1. |
--include builtin,tenant | mcp-tools | Autessa feature tools, your company's tools, or both (default). |
--allow / --deny | mcp-tools | Show only, or never show, these tool names, for example --allow autessadb_search,request_approval. |
--allow-env-key | mcp-tools | HTTP only: let requests without a key use AUTESSA_API_KEY. Off by default. |
--policy <name> | mcp-firewall | Use a named firewall policy. |
--profile | mcp-firewall | fast, balanced, or thorough. Preview. |
--on-tool-definitions hide|block|flag | mcp-firewall | What to do with unsafe tool definitions. Default hide. |
--fail-open | mcp-firewall | If a check can't run (the firewall can't be reached, errors, or times out), let traffic through. Default: block. |
--timeout <ms> | mcp-firewall | Longest 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-firewall | Wrap a remote (HTTP) MCP server. |
--upstream-name <name> | mcp-firewall | Name 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.