mirror of
https://github.com/open-webui/mcpo
synced 2025-06-26 18:26:58 +00:00
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
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:
commit
ee22e46abb
@ -35,6 +35,10 @@ async def create_dynamic_endpoints(app: FastAPI, api_dependency=None):
|
|||||||
)
|
)
|
||||||
app.version = server_info.version or app.version
|
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_result = await session.list_tools()
|
||||||
tools = tools_result.tools
|
tools = tools_result.tools
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user