MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / read_profile

Function read_profile

examples/mcpserver/memory.py:277–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275
276@mcp.tool()
277async def read_profile() -> str:
278 deps = Deps(openai=AsyncOpenAI(), pool=await get_db_pool())
279 profile = await display_memory_tree(deps)
280 await deps.pool.close()
281 return profile
282
283
284async def initialize_database():

Callers

nothing calls this directly

Calls 4

DepsClass · 0.85
get_db_poolFunction · 0.85
display_memory_treeFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected