Skip to content

Add MCP prompt template support#22

Merged
rockfordlhotka merged 2 commits into
mainfrom
feature/mcp-prompts-support
Mar 11, 2026
Merged

Add MCP prompt template support#22
rockfordlhotka merged 2 commits into
mainfrom
feature/mcp-prompts-support

Conversation

@rockfordlhotka

Copy link
Copy Markdown
Member

Summary

  • get_service_details now returns both tools and prompt templates in a single call — no extra round trip needed for consuming LLMs to see a server's full capability set
  • New get_prompt tool renders a prompt template from a downstream server with optional arguments
  • Prompt metadata is cached with the same TTL and invalidation logic as tools
  • AI summary generator now includes prompt templates in its input and instructs the model to frame summaries for AI agent consumption rather than humans
  • Updated README and skill guide to document the new workflow

Test plan

  • Register a downstream server that exposes prompts; verify get_service_details returns both tools and prompts arrays
  • Register a downstream server with no prompt support; verify get_service_details still succeeds and returns an empty prompts array
  • Call get_prompt with valid server/prompt name and arguments; verify rendered messages are returned
  • With AI summary enabled, register a server that has prompts; verify the generated summary reflects prompt capabilities
  • Verify regenerate_summary (MCP tool and REST endpoint) also picks up prompt data

🤖 Generated with Claude Code

rockfordlhotka and others added 2 commits March 11, 2026 15:59
Proxies prompt metadata from downstream MCP servers and exposes it to
consuming LLMs via get_service_details (now returns tools + prompts
together) and a new get_prompt tool for rendering prompt templates with
arguments. Prompt data is cached with the same TTL as tools and
invalidated on registry changes.

Also feeds prompt metadata into the AI summary generator so summaries
reflect a server's full capability set. Updated the summary system
prompt to frame output for AI agent consumption rather than humans.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Allows a consumer to immediately reload metadata from a downstream
server after it has been updated, without waiting for the cache TTL.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@rockfordlhotka
rockfordlhotka merged commit 5437dd3 into main Mar 11, 2026
1 check passed
@rockfordlhotka
rockfordlhotka deleted the feature/mcp-prompts-support branch March 11, 2026 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant