Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e149c8e

Browse files
authored
renamed mcp.DefaultBoolean to mcp.DefaultBool to make compiling work again (#4)
1 parent 782fdc3 commit e149c8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func registerTools(s *server.MCPServer) {
236236
mcp.WithString("customer", mcp.Required(), mcp.Description("The customer email or ID for the ticket.")),
237237
mcp.WithString("body", mcp.Required(), mcp.Description("The initial message/content of the ticket.")),
238238
mcp.WithString("type", mcp.Description("The article type (e.g., 'note', 'email'). Default: 'note'."), mcp.DefaultString("note")),
239-
mcp.WithBoolean("internal", mcp.Description("Whether the article is internal. Default: false."), mcp.DefaultBoolean(false)),
239+
mcp.WithBoolean("internal", mcp.Description("Whether the article is internal. Default: false."), mcp.DefaultBool(false)),
240240
)
241241
s.AddTool(createTicketTool, handleCreateTicket)
242242

@@ -251,7 +251,7 @@ func registerTools(s *server.MCPServer) {
251251
mcp.WithDescription("Adds a note/comment to an existing Zammad ticket."),
252252
mcp.WithNumber("ticket_id", mcp.Required(), mcp.Description("The ID of the ticket to add a note to.")),
253253
mcp.WithString("body", mcp.Required(), mcp.Description("The content of the note to add.")),
254-
mcp.WithBoolean("internal", mcp.Description("Whether the note is internal. Default: true."), mcp.DefaultBoolean(true)),
254+
mcp.WithBoolean("internal", mcp.Description("Whether the note is internal. Default: true."), mcp.DefaultBool(true)),
255255
)
256256
s.AddTool(addNoteTool, handleAddNoteToTicket)
257257

0 commit comments

Comments
 (0)