We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sanity-io/sanity-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
register.ts•484 B
import type {McpServer} from '@modelcontextprotocol/sdk/server/mcp.js'
import {getInitialContextTool, GetInitialContextToolParams} from './getInitialContextTool.js'
export function registerContextTools(server: McpServer) {
server.tool(
'get_initial_context',
'IMPORTANT: This tool must be called before using any other tools. It will get initial context and usage instructions for this MCP server. ',
GetInitialContextToolParams.shape,
getInitialContextTool,
)
}