Skip to main content
Glama

Streamable HTTP Bridge

by masx200
Mulan Permissive Software License, Version 2
2
  • Linux
  • Apple
getServerCapabilities.ts505 B
import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { type ServerCapabilities } from "@modelcontextprotocol/sdk/types.js"; // 获取服务器能力 export async function getServerCapabilities( client: Client, ): Promise<ServerCapabilities | undefined> { try { return await client.getServerCapabilities(); } catch (error) { console.error("Error getting server capabilities:", error); return { tools: {}, resources: {}, prompts: {}, }; } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/masx200/mcp-demo-streamable-http-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server