Skip to main content
Glama

DevBrain

by mimeCam
test_retrieve_knowledge.py685 B
import asyncio from fastmcp import Client # Assuming the main MCP server is in `server.py` in the parent directory. client = Client("/app/src/mcp_server/server.py") async def test_retrieve_knowledge_tool(): print("Attempting to call 'retrieve_knowledge' tool...") async with client: try: result = await client.call_tool( "retrieve_knowledge", {"query": "algorithms"} ) print(f"Retrieve Knowledge tool response: {result}") except Exception as e: print(f"Error calling retrieve_knowledge tool: {e}") raise if __name__ == "__main__": asyncio.run(test_retrieve_knowledge_tool())

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/mimeCam/mcp-devbrain-stdio'

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