awe docs

For developers

How awe talks to MCP servers

MCP (the Model Context Protocol) is the open standard awe uses to reach tools. This page says what awe does as an MCP client, so you know what to expect when you add a server or write one. It is for developers. To add a server, start with mcp-server-installation.md.

Transports

Transport How awe reaches the server How you add it
stdio awe starts the server as a local process and exchanges JSON-RPC lines over its standard input and output ./awe-core connect <name> <command> [args]
HTTP awe posts JSON-RPC to a URL. The server may answer with JSON or with an event stream ./awe-core connect <name> --url <url>
SSE The older HTTP form with a long-lived event stream ./awe-core connect <name> --url <url> --transport sse

Without --transport, awe picks HTTP or SSE from the URL.

Protocol versions

awe offers the newest protocol version it knows and falls back if the server refuses it. In order: 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05. A server that implements any of these will connect.

awe identifies itself as awe-core and declares two client capabilities: roots and sampling.

What awe reads from a server

When a server is connected or reconnected, awe asks for and saves:

  • Tools (tools/list): names, descriptions and input schemas. These are what awe calls.
  • Prompts (prompts/list).
  • Resources (resources/list).
./awe-core tools myserver
./awe-core prompts myserver
./awe-core resources myserver
./awe-core capabilities myserver

The saved copy is what awe uses to choose tools, so a tool with a clear name and a one-sentence description is found more often. After you change a server’s tools, refresh the saved copy:

./awe-core reconnect myserver

Calling tools

A call is one tools/call request with the tool name and a JSON arguments object:

./awe-core call myserver my_tool '{"city":"Lisbon"}'

A stdio tool call that gets no answer within 30 seconds is treated as timed out. HTTP requests have the same 30 second limit.

Requests a server can make to awe

  • Roots (roots/list): awe answers with the folders you set for that server. See roots.
  • Sampling: a server asking awe to run a model. awe asks you first unless you have auto-approved it for that server. See approvals.

Sign-in for remote servers

Kind How
API key --api-key on connect, sent as the Authorization header, or a stored credential with its own header name and format
Custom headers --headers on connect
OAuth The console runs the browser sign-in. awe registers itself with the provider when the provider supports dynamic client registration, uses PKCE, and stores the tokens on your computer

For HTTP servers that issue a session id (the Mcp-Session-Id header), awe keeps it and sends it back on later requests.

Debugging a server

./awe-core validate ./.node/node /path/to/server/index.js
./awe-core test myserver --test-type full
./awe-core status myserver --detailed
./awe-core health-check

validate checks a start command before anything is saved. test exercises a connected server. If a server connects but shows no tools, run ./awe-core tools myserver --live to ask it again.

awe as an MCP server

awe also speaks MCP in the other direction, so that other AI apps can use its memory and tools. In that role it implements initialize, ping, tools/list and tools/call, over stdio or loopback HTTP. See mcp-host.md.