Skip to main content
Glama

CodeGraph CLI MCP Server

by Jakedismo
client.pyโ€ข775 B
from mcp import ClientSession, StdioServerParameters, types from mcp.client.sse import sse_client import sys async def run(): url = sys.argv[1] async with sse_client(url) as (read, write): async with ClientSession( read, write ) as session: # Initialize the connection await session.initialize() # List available prompts prompts = await session.list_prompts() print(prompts) # List available resources resources = await session.list_resources() print(resources) # List available tools tools = await session.list_tools() print(tools) if __name__ == "__main__": import asyncio asyncio.run(run())

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