Merge pull request #146 from rkconsulting/issue#142-server-instructions
Some checks failed
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Has been cancelled
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Has been cancelled
Create and publish Docker images with specific build args / merge-main-images (push) Has been cancelled

[add] support for mcp server instructions
This commit is contained in:
Tim Jaeryang Baek 2025-05-16 17:22:52 +04:00 committed by GitHub
commit ee22e46abb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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