feat: Add get_tool_info function for better tool discoverability#28
Merged
mrsimpson merged 3 commits intoJul 11, 2025
Merged
Conversation
Implements comprehensive tool information handler following existing patterns: - Extends BaseToolHandler with proper error handling and logging - Provides detailed information about all available tools and workflows - Includes core concepts, usage guidelines, and current workflow state - Follows same pattern as list-workflows.ts for consistency - Returns structured JSON response for easy parsing by AI assistants Addresses Issue codemcp#24 requirements for better tool discoverability.
- Import GetToolInfoHandler - Register 'get_tool_info' in createToolRegistry function - Export handler class and types for external use - Follows same pattern as other handlers for consistency
- Register get_tool_info tool in registerMcpTools function - Provide comprehensive description for tool discoverability - Set appropriate annotations (readOnly, idempotent) - Follow same pattern as other tool registrations - No input schema required (no parameters) Addresses Issue codemcp#24 requirement for better tool discoverability.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Issue #24 - Add
get_tool_infofunction for better tool discoverability and improved user experience.What's Changed
New Handler Implementation
GetToolInfoHandlerinsrc/server/tool-handlers/get-tool-info.tsIntegration Updates
Updated tool registry in
src/server/tool-handlers/index.tsAdded MCP tool registration in
src/server/server-config.tsFeatures
The new
get_tool_info()function provides:API Response Format
{ "tool_name": "Responsible Vibe MCP - Development Workflow Management", "version": "1.0.0", "purpose": "Structured development workflows with guided phase transitions", "available_tools": [...], "available_workflows": [...], "core_concepts": {...}, "usage_guidelines": {...}, "workflow_states": {...} }Benefits
Implementation Quality
Testing
The implementation has been tested for:
Ready for integration and further testing with MCP clients.
Related
Fixes #24