Skip to main content
GET
/
servers
/
{qualifiedName}
/
logs
JavaScript
import Smithery from '@smithery/api';

const client = new Smithery({
  apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted
});

const logs = await client.servers.logs.list('qualifiedName');

console.log(logs.invocations);
{
  "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"
        }
      ]
    }
  ],
  "total": 123
}

Documentation Index

Fetch the complete documentation index at: https://smithery.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Smithery API key as Bearer token

Path Parameters

qualifiedName
string
required

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

Query Parameters

from
string

Start of time range (ISO 8601).

Example:

"2026-01-01T00:00:00Z"

to
string

End of time range (ISO 8601).

Example:

"2026-01-01T01:00:00Z"

limit
integer

Max invocations to return. Defaults to 20.

Required range: 1 <= x <= 100
Example:

20

Text search across log messages.

Example:

"error"

Response

Logs fetched successfully

invocations
object[]
required
total
number
required

Total invocations matching query