Skip to main content
Glama

metoro-mcp-server

Official
by metoro-io
create_ai_issue.go1.27 kB
package tools import ( "bytes" "context" "encoding/json" "fmt" mcpgolang "github.com/metoro-io/mcp-golang" "github.com/metoro-io/metoro-mcp-server/model" "github.com/metoro-io/metoro-mcp-server/utils" ) type CreateAIIssueHandlerArgs struct { Title string `json:"title" jsonschema:"required,description=Title of the AI issue"` Description string `json:"description" jsonschema:"required,description=Detailed description of the AI issue"` Summary string `json:"summary" jsonschema:"required,description=One sentence summary of the AI issue"` } func CreateAIIssueHandler(ctx context.Context, arguments CreateAIIssueHandlerArgs) (*mcpgolang.ToolResponse, error) { request := model.CreateAIIssueRequest{ Title: arguments.Title, Description: arguments.Description, Summary: arguments.Summary, } requestBody, err := json.Marshal(request) if err != nil { return nil, fmt.Errorf("failed to marshal request: %w", err) } responseBody, err := utils.MakeMetoroAPIRequest("POST", "aiIssue", bytes.NewBuffer(requestBody), utils.GetAPIRequirementsFromRequest(ctx)) if err != nil { return nil, fmt.Errorf("failed to create AI issue: %w", err) } return mcpgolang.NewToolResponse(mcpgolang.NewTextContent(string(responseBody))), nil }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/metoro-io/metoro-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server