v48

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-305398191.8 KB
servers

List runtime logs

Fetch recent runtime logs grouped by invocation.

get/servers/{qualifiedName}/logs

Path parameters

qualifiedNamestring required

The server's qualified name (e.g. 'namespace/server' or 'namespace' for namespace-only servers). Use %2F to encode the slash.

Query parameters

fromstring
Example:2026-01-01T00:00:00Z

Start of time range (ISO 8601).

tostring
Example:2026-01-01T01:00:00Z

End of time range (ISO 8601).

limitinteger
Example:20

Max invocations to return. Defaults to 20.

searchstring
Example:error

Text search across log messages.

Response

Logs fetched successfully

totalnumber required

Total invocations matching query

Example response

{
  "invocations": [
    {
      "id": "625f9ce6-f179-4f23-b3e3-4de28b52b39d",
      "timestamp": "2026-01-04 10:53:39",
      "request": {
        "method": "POST",
        "url": "https://gateway.smithery.ai/@smithery/unicorn"
      },
      "response": {
        "status": 200,
        "outcome": "ok"
      },
      "duration": {
        "cpuMs": 5,
        "wallMs": 743
      },
      "logs": [
        {
          "timestamp": "2026-01-04 10:53:39",
          "level": "info",
          "message": "Processing request..."
        }
      ],
      "exceptions": [
        {
          "timestamp": "2026-01-04 10:53:39",
          "name": "TypeError",
          "message": "Cannot read property 'x' of undefined"
        }
      ]
    }
  ]
}