feat: add MCP prompt serving for Claude Code slash commands#44
Open
AchintyaAshok wants to merge 2 commits into
Open
feat: add MCP prompt serving for Claude Code slash commands#44AchintyaAshok wants to merge 2 commits into
AchintyaAshok wants to merge 2 commits into
Conversation
Implement MCP prompt capability to expose slash commands that Claude Code can automatically render and use. This allows any Claude Code session connected to hypertool-mcp to receive guided workflows as slash commands. Changes: - Add PromptRegistry to manage server prompts - Implement ListPromptsRequest and GetPromptRequest handlers - Add prompts capability to server configuration - Create comprehensive 'new-toolset' prompt with guided workflow The new-toolset prompt provides: - Step-by-step toolset creation workflow - Tool availability checking and validation - Existing toolset analysis to avoid duplicates - Best practices and warnings (e.g., 15-tool limit) - Common patterns and templates for different use cases This approach is superior to static .md files because: - Prompts are served dynamically by the MCP server - Available automatically when connected to hypertool-mcp - Can be context-aware and include dynamic data - Follow MCP protocol standards for prompt serving 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Changeset StatusIs this the right version bump?
How to add a changeset:
Skip release entirely:Add This comment will update automatically when you push changes. |
…lity Extract the new-toolset prompt content from inline string to separate markdown file for easier editing and maintenance. Changes: - Create new-toolset.md with comprehensive workflow content - Update new-toolset.ts to load content dynamically from file - Add caching to avoid repeated file reads - Update build script to copy markdown files to dist directory Benefits: - Better separation of concerns (code vs content) - Easier to edit prompt content without touching TypeScript - Content can be edited by non-developers - Improved readability and maintainability 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
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.
Implement MCP prompt capability to expose slash commands that Claude Code can automatically render and use. This allows any Claude Code session connected to hypertool-mcp to receive guided workflows as slash commands.
Changes:
The new-toolset prompt provides:
This approach is superior to static .md files because:
🤖 Generated with Claude Code
Description
Please provide a brief description of your changes.
Type of Change
Please check the relevant option(s):
Changes Made
New Features
Bug Fixes
Other Enhancements
Breaking Changes
Testing
Checklist
npm run lintandnpm run formatnpm testScreenshots
Related Issues
Additional Notes