mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 05:54:19 +02:00
Include instructions in MCP inspect output (#4873)
🤖 Generated with Codex
This commit is contained in:
parent
75de8b352e
commit
743ddffd0a
2 changed files with 2 additions and 0 deletions
|
|
@ -489,6 +489,7 @@ async def format_mcp_info(mcp: FastMCP[Any] | SDKServer) -> bytes:
|
|||
"mcp": importlib.metadata.version("mcp"), # MCP protocol version
|
||||
},
|
||||
"serverInfo": server_info,
|
||||
"instructions": client.initialize_result.instructions,
|
||||
"capabilities": {}, # MCP format doesn't include capabilities at top level
|
||||
"tools": tools_result.tools,
|
||||
"prompts": prompts_result.prompts,
|
||||
|
|
|
|||
|
|
@ -425,6 +425,7 @@ class TestFormatFunctions:
|
|||
|
||||
# Check server version in MCP format
|
||||
assert data["serverInfo"]["version"] == "2.0.0"
|
||||
assert data["instructions"] == "Test instructions"
|
||||
|
||||
# MCP format SHOULD have environment fields
|
||||
assert "environment" in data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue