mirror of
https://github.com/open-webui/mcpo.git
synced 2026-07-23 12:15:22 -04:00
feat: MCP instructions support #63
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rkconsulting on GitHub (May 15, 2025).
Check Existing Issues
Problem Description
As per MCP spec, an MCP server can send "instructions". This is used to have a way of passing general instructions to the model about what it can do with the MCP server and which tools to use when etc. We need to have a way to get these instructions to show up to the model in OWUI so that its use of the MCP is not severely disadvantaged compared to a client fully supporting MCP spec.
Desired Solution you'd like
MCPO currently generates an OpenAPI-standard "server description", but it simply uses the serverInfo.name and appends " MCP Server", which is pretty redundant since "MCP Server" is likely already in the name of the thing! :-D
So since this field currently serves no real purpose, i propose we put the MCP
instructionsinto this OpenAPI "description". They can be retrieved directly from the MCP session, just like theserverInfo:https://github.com/modelcontextprotocol/python-sdk/blob/6353dd192c41b891ef3bf1dfc093db46f6e2175a/src/mcp/types.py#L300
Then MCPO will be much more competitive and MCP servers will in many cases be more effective for OWUI!
Alternatives Considered
An alternative might be a description param in the config.json, but there is no real reason for this as the
instructionsare part of the current standard already.Additional Context
No response
@rkconsulting commented on GitHub (May 16, 2025):
@tjbck tested and works beautifully.
PR: https://github.com/open-webui/mcpo/pull/146