Skip to content

Conversation

@nader-ziada
Copy link
Collaborator

Fixes: #556

Enable toolset implementers to define MCP prompts programmatically as part of their toolset definition.

  • Add GetPrompts() method to Toolset interface
  • Collect prompts from all enabled toolsets
  • Merge config and toolset prompts (config takes precedence)
  • Add disable_toolset_prompts configuration option
  • Update all existing toolsets to implement GetPrompts()

docs/PROMPTS.md Outdated
Comment on lines 111 to 112
```toml
disable_toolset_prompts = true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nader-ziada will this be a global option, or a per-toolset option?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

global option currently

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe I included this in #556

Disabling Toolset Prompts

Administrators can disable all toolset-defined prompts via configuration, using only config-defined prompts:

based on what Nader initially implemented in #510

IMO maybe we SHOULD NOT provide this option at all (prompts don't have any involuntary impact on the LLM behavior or consume context-window tokens)

OR if you consider this of value, provide a consistent implementation with what we have for tools (EnabledTools / DisabledTools).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the sake of simplicity, will remove the flag completely

Enable toolset implementers to define MCP prompts programmatically
as part of their toolset definition.

- Add GetPrompts() method to Toolset interface
- Collect prompts from all enabled toolsets
- Merge config and toolset prompts (config takes precedence)
- Add disable_toolset_prompts configuration option
- Update all existing toolsets to implement GetPrompts()

Signed-off-by: Nader Ziada <[email protected]>
@manusa manusa changed the title add toolset prompts infrastructure feat(api): add toolset prompts infrastructure Dec 12, 2025
@manusa manusa changed the title feat(api): add toolset prompts infrastructure feat(api)!: add toolset prompts infrastructure Dec 12, 2025
@manusa manusa added this to the 0.1.0 milestone Dec 12, 2025
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.

[API] Toolset-defined prompt templates

3 participants