Add listPeople tool

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-11-20 18:37:28 +01:00
parent 0b5d4f1cd3
commit c2f9311a37
5 changed files with 291 additions and 4 deletions

View File

@@ -12,6 +12,7 @@ import (
type ResolverInterface interface {
ListOrganizationsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListOrganizationsInput) (*mcp.CallToolResult, types.ListOrganizationsOutput, error)
ListVendorsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListVendorsInput) (*mcp.CallToolResult, types.ListVendorsOutput, error)
ListPeopleTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListPeopleInput) (*mcp.CallToolResult, types.ListPeopleOutput, error)
AddVendorTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddVendorInput) (*mcp.CallToolResult, types.AddVendorOutput, error)
UpdateVendorTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateVendorInput) (*mcp.CallToolResult, types.UpdateVendorOutput, error)
}
@@ -53,6 +54,16 @@ func registerToolHandlers(server *mcp.Server, resolver ResolverInterface) {
},
resolver.ListVendorsTool,
)
mcp.AddTool(
server,
&mcp.Tool{
Name: "listPeople",
Description: "List all people for the organization",
InputSchema: types.ListPeopleToolInputSchema,
OutputSchema: types.ListPeopleToolOutputSchema,
},
resolver.ListPeopleTool,
)
mcp.AddTool(
server,
&mcp.Tool{