We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/contentful/contentful-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
register.ts•526 B
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { ListOrgsToolParams, listOrgsTool } from './listOrgs.js';
import { GetOrgToolParams, getOrgTool } from './getOrg.js';
export function registerOrgTools(server: McpServer) {
server.tool(
'list_orgs',
'List all organizations that the user has access to',
ListOrgsToolParams.shape,
listOrgsTool,
);
server.tool(
'get_org',
'Get details of a specific organization',
GetOrgToolParams.shape,
getOrgTool,
);
}