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

Method fn

tests/server/mcpserver/test_server.py:1308–1309  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1306
1307 @mcp.prompt()
1308 def fn() -> str:
1309 return "Hello, world!"
1310
1311 result = await mcp.get_prompt("fn")
1312 content = result.messages[0].content

Callers

nothing calls this directly

Calls 3

UserMessageClass · 0.90
EmbeddedResourceClass · 0.90

Tested by

no test coverage detected