feat(agentic): add MCP message tool aliases

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Virgil 2026-04-01 23:18:13 +00:00
parent 85ef4a6dd4
commit d496057aeb
2 changed files with 15 additions and 0 deletions

View file

@ -127,16 +127,28 @@ func (s *PrepSubsystem) registerMessageTools(server *mcp.Server) {
Name: "agentic_message_send",
Description: "Send a direct message between two agents within a workspace.",
}, s.messageSend)
mcp.AddTool(server, &mcp.Tool{
Name: "agent_send",
Description: "Send a direct message between two agents within a workspace.",
}, s.messageSend)
mcp.AddTool(server, &mcp.Tool{
Name: "agentic_message_inbox",
Description: "List messages delivered to an agent within a workspace.",
}, s.messageInbox)
mcp.AddTool(server, &mcp.Tool{
Name: "agent_inbox",
Description: "List messages delivered to an agent within a workspace.",
}, s.messageInbox)
mcp.AddTool(server, &mcp.Tool{
Name: "agentic_message_conversation",
Description: "List the chronological conversation between two agents within a workspace.",
}, s.messageConversation)
mcp.AddTool(server, &mcp.Tool{
Name: "agent_conversation",
Description: "List the chronological conversation between two agents within a workspace.",
}, s.messageConversation)
}
func (s *PrepSubsystem) messageSend(_ context.Context, _ *mcp.CallToolRequest, input MessageSendInput) (*mcp.CallToolResult, MessageSendOutput, error) {

View file

@ -659,8 +659,11 @@ func TestPrep_RegisterTools_Good_RegistersCompletionTool(t *testing.T) {
assert.Contains(t, toolNames, "agentic_prompt_version")
assert.Contains(t, toolNames, "session_complete")
assert.Contains(t, toolNames, "agentic_message_send")
assert.Contains(t, toolNames, "agent_send")
assert.Contains(t, toolNames, "agentic_message_inbox")
assert.Contains(t, toolNames, "agent_inbox")
assert.Contains(t, toolNames, "agentic_message_conversation")
assert.Contains(t, toolNames, "agent_conversation")
}
func TestPrep_OnStartup_Good_RegistersGenerateCommand(t *testing.T) {