Your AI agent reads your production errors

An account key lets an AI agent, a script or a BI tool read your logs, metrics, customers and devices. It only reads: it can't change or delete anything.

Keys are included in the paid plans. After you sign up, the account owner creates one on the "API & AI agents" page of the console: it is shown once, and the commands on that page already contain it.

Connect your AI agent

ExeWatchMCP gives an agent such as Claude Code or Codex your errors, slow operations, metrics, customers and devices, so it can work on your code with the evidence in hand. It only reads: it can't change or delete anything.

  1. 1Install it (Python 3.9 or later)

    pip install ExeWatchMCP
  2. 2Add it to your agent

    With the key in the command:

    claude mcp add exewatch --env EXEWATCH_API_KEY=ew_api_... -- exewatch-mcp

    Or with the key in an environment variable, to keep it out of the agent's settings. First set the variable, then start the agent again so it sees it.

    On Linux or macOS, add this line to ~/.bashrc or ~/.zshrc so it lasts, then open a new terminal:

    export EXEWATCH_API_KEY=ew_api_...

    On Windows, then close and reopen the terminal and the agent:

    setx EXEWATCH_API_KEY ew_api_...

    Then register the server without the key:

    claude mcp add exewatch -- exewatch-mcp

    With the key in the command:

    codex mcp add exewatch --env EXEWATCH_API_KEY=ew_api_... -- exewatch-mcp

    Or with the key in an environment variable, to keep it out of the agent's settings. First set the variable, then start the agent again so it sees it.

    On Linux or macOS, add this line to ~/.bashrc or ~/.zshrc so it lasts, then open a new terminal:

    export EXEWATCH_API_KEY=ew_api_...

    On Windows, then close and reopen the terminal and the agent:

    setx EXEWATCH_API_KEY ew_api_...

    Then tell Codex to pass the variable to the server, in ~/.codex/config.toml, or in .codex/config.toml in the project if Codex trusts the project:

    [mcp_servers.exewatch]
    command = "exewatch-mcp"
    env_vars = ["EXEWATCH_API_KEY"]

    For any agent with an mcpServers setting. If the file is in a repository, don't write the key in it: anyone who can read the repository can read your data.

    { "mcpServers": { "exewatch": {
        "command": "exewatch-mcp",
        "env": { "EXEWATCH_API_KEY": "ew_api_..." } } } }

    Replace ew_api_... with your key.

  3. 3Ask

    • "Find what is slow, why, and propose fixes."
    • "Find where my app is slow, then make it faster."
    • "Fix the errors of the last week."
    • "Fix the error that happened this morning."
    • "Why are there so many orders_failed?" (a metric)
    • "Is this version worse than the previous one?"
    • "Considering everything in ExeWatch, what would you work on first?"

Use the API with its OpenAPI schema

The API is described by an OpenAPI schema, so a person, an agent or a tool can find every endpoint and its parameters without reading a manual. Every endpoint is a GET and answers JSON, and the same key works for all of them.

https://api.exewatch.com/v1/openapi.json

Try it yourself

Open the API reference, press Authorize and paste your key. On any endpoint press Try it out and then Execute: you see the real answer from your account. The page keeps the key only until you close the tab.

Open the API reference

Let an agent call it

An agent that can run commands but has no MCP setup can read the schema and call the API itself. Put the key in an environment variable, so you never paste it into the conversation, then start the agent:

On Linux or macOS, add this line to ~/.bashrc or ~/.zshrc so it lasts, then open a new terminal:

export EXEWATCH_API_KEY=ew_api_...

On Windows, then close and reopen the terminal and the agent:

setx EXEWATCH_API_KEY ew_api_...

Then ask it:

Read the OpenAPI schema at https://api.exewatch.com/v1/openapi.json and use the key in the EXEWATCH_API_KEY environment variable as a Bearer token. List the errors of my applications in the last 7 days, grouped by message, most frequent first.

From a script or a BI tool

Send the key in the Authorization header. Tools that import an OpenAPI schema build the requests for you from the address above.

curl -H "Authorization: Bearer ew_api_..." https://api.exewatch.com/v1/applications