feat(agentic): add prompt_version MCP alias
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
d09958cd75
commit
bc21029ac5
2 changed files with 6 additions and 0 deletions
|
|
@ -655,6 +655,7 @@ func TestPrep_RegisterTools_Good_RegistersCompletionTool(t *testing.T) {
|
|||
}
|
||||
|
||||
assert.Contains(t, toolNames, "agentic_complete")
|
||||
assert.Contains(t, toolNames, "prompt_version")
|
||||
assert.Contains(t, toolNames, "agentic_prompt_version")
|
||||
assert.Contains(t, toolNames, "session_complete")
|
||||
assert.Contains(t, toolNames, "agentic_message_send")
|
||||
|
|
|
|||
|
|
@ -54,6 +54,11 @@ func (s *PrepSubsystem) promptVersion(_ context.Context, _ *mcp.CallToolRequest,
|
|||
}
|
||||
|
||||
func (s *PrepSubsystem) registerPromptTools(server *mcp.Server) {
|
||||
mcp.AddTool(server, &mcp.Tool{
|
||||
Name: "prompt_version",
|
||||
Description: "Read the current prompt snapshot for a workspace.",
|
||||
}, s.promptVersionTool)
|
||||
|
||||
mcp.AddTool(server, &mcp.Tool{
|
||||
Name: "agentic_prompt_version",
|
||||
Description: "Read the current prompt snapshot for a workspace.",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue