Skip to content

Need to add parameters to Tool generation for arguments #3

@erikist

Description

@erikist

Currently, tool generation is not adding in the parameters for a given request in the following generation function:

func generateMCPTool(g *protogen.GeneratedFile, method *protogen.Method, mcpServerName string)

currently this function is outputting things like:

func (s *vibeServiceMCPServer) SetVibeTool() mcp.Tool {
	tool := mcp.NewTool("SetVibe", mcp.WithDescription("Set the Vibe"))
	return tool
}

This should handle the parameters of the input to the RCP, in this case, something like this should be output:

func (s *vibeServiceMCPServer) SetVibeTool() mcp.Tool {
	tool := mcp.NewTool(
		"SetVibe", mcp.WithDescription("Set the Vibe"),
		mcp.WithString(
			"vibe",
			mcp.Required(),
			mcp.Description("The vibe to set on the server"),
		),
	)
	return tool
}

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions