Skip to main content
Glama

CodeGraph CLI MCP Server

by Jakedismo
client.js763 B
import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js"; const transport = new SSEClientTransport(new URL(`http://127.0.0.1:8000/sse`)); const client = new Client( { name: "example-client", version: "1.0.0" }, { capabilities: { prompts: {}, resources: {}, tools: {} } } ); await client.connect(transport); const tools = await client.listTools(); console.log(tools); const resources = await client.listResources(); console.log(resources); const templates = await client.listResourceTemplates(); console.log(templates); const prompts = await client.listPrompts(); console.log(prompts); await client.close(); await transport.close();

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/Jakedismo/codegraph-rust'

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