[add] support for mcp server instructions

This commit is contained in:
rkirscht
2025-05-16 13:00:06 +02:00
parent c34e4c55e5
commit db10c1c807

View File

@@ -35,6 +35,10 @@ async def create_dynamic_endpoints(app: FastAPI, api_dependency=None):
)
app.version = server_info.version or app.version
instructions = getattr(result, "instructions", None)
if instructions:
app.description = instructions
tools_result = await session.list_tools()
tools = tools_result.tools