Feature Request: Tool Usage Metadata for MCP Servers #2487
Closed
prmichaelsen
started this conversation in
1. Feature requests
Replies: 1 comment
-
|
Hi There! In order to increase visibility of product requests, we're consolidating requests on similar features and topics. Therefore, I'm going to close this Discussion, and add your comments to this canonical one: Thanks for understanding and being a valuable member of the Kilo Code Community! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem Statement
When configuring MCP servers in Kilo Code, there's currently no way to provide metadata or guidance on how specific tools should be used by the AI. This limits the ability to customize tool behavior and provide usage preferences without modifying the MCP server implementation itself.
Use Case
As a developer who creates and configures MCP servers, I want to provide metadata and usage guidance for specific tools so that:
For example, when using the Jira and Confluence tools, I might want to:
Benefits
Implementing this feature would:
Potential Implementation Approaches
While I'm focused on the use case rather than implementation details, here are some approaches that could work:
Extended Configuration Schema: Add a
toolMetadatasection to the MCP server configuration that allows specifying metadata for each tool.Tool Response Enhancement: Extend the MCP protocol to allow servers to include metadata in their tool descriptions when tools are discovered.
Environment Variable Convention: Establish a convention for environment variables that influence tool behavior (e.g.,
TOOL_NAME_DEFAULT_PARAM).Example Usage
Here's how this feature might be used in practice:
{ "mcpServers": { "jira-server": { "command": "...", "args": ["..."], "env": { "..." }, "toolMetadata": { "jira_search": { "defaultParameters": { "fields": "summary,status,assignee,priority", "limit": 15 }, "usageGuidance": "Always include a project filter when possible to improve performance", "examples": [ { "description": "Search for high priority bugs", "jql": "project = PROJ AND issuetype = Bug AND priority = High" } ] }, "confluence_get_page": { "defaultParameters": { "convert_to_markdown": true, "include_metadata": true }, "usageGuidance": "Prefer using page_id over title/space_key when possible" } } } } }Conclusion
Adding support for tool-specific metadata in MCP server configurations would significantly enhance the flexibility and usability of MCP tools. It would allow for better guidance to the AI without requiring code changes to the MCP server implementation, resulting in more effective and customized tool usage.
Beta Was this translation helpful? Give feedback.
All reactions