We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bytebase/dbhub'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
index.ts•453 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { executeSqlToolHandler, executeSqlSchema } from "./execute-sql.js";
/**
* Register all tool handlers with the MCP server
*/
export function registerTools(server: McpServer): void {
// Tool to run a SQL query (read-only for safety)
server.tool(
"execute_sql",
"Execute a SQL query on the current database",
executeSqlSchema,
executeSqlToolHandler
);
}