mirror of
https://github.com/open-webui/mcpo
synced 2025-06-26 18:26:58 +00:00
[add] support for mcp server instructions
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user