Skip to main content
Glama

Database MCP Server

userInfoOctokit.ts534 B
import { Octokit } from "octokit"; import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; export interface ToolProps { accessToken: string; } export function UserInfoOctokit(server: McpServer, props: ToolProps) { server.tool("userInfoOctokit", "Get user info from GitHub, via Octokit", {}, async () => { const octokit = new Octokit({ auth: props.accessToken }); return { content: [ { type: "text", text: JSON.stringify(await octokit.rest.users.getAuthenticated()), }, ], }; }); }

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/EmilyThaHuman/database-mcp'

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