Skip to main content
GET
/
servers
/
{namespace}
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 response = await client.servers.getByNamespace('namespace');

console.log(response.connections);
{
  "qualifiedName": "smithery/hello-world",
  "displayName": "Hello World",
  "description": "A simple hello world server",
  "iconUrl": "https://example.com/icon.png",
  "remote": true,
  "deploymentUrl": "https://api.example.com",
  "connections": [
    {
      "type": "<string>",
      "configSchema": {},
      "bundleUrl": "<string>",
      "runtime": "<string>",
      "stdioFunction": "<string>"
    }
  ],
  "security": {
    "scanPassed": true
  },
  "tools": [
    {
      "name": "get_weather",
      "description": "Get current weather",
      "inputSchema": {
        "type": "<string>",
        "properties": {}
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Smithery API key as Bearer token

Path Parameters

namespace
string
required

Response

Server found

qualifiedName
string
required
Example:

"smithery/hello-world"

displayName
string
required
Example:

"Hello World"

description
string
required
Example:

"A simple hello world server"

iconUrl
string | null
required
Example:

"https://example.com/icon.png"

remote
boolean
required
Example:

true

deploymentUrl
string | null
required
Example:

"https://api.example.com"

connections
object[]
required
security
object
required
tools
object[] | null
required