Skip to content

Commit 373afaa

Browse files
committed
♿ Mcp bool input default to empty
issue #64
1 parent a074d55 commit 373afaa

File tree

13 files changed

+32
-32
lines changed

13 files changed

+32
-32
lines changed

cmd/activity/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var listTool = mcp.NewTool(
6868
),
6969
mcp.WithString(
7070
"mine", mcp.Enum("true", "false", ""),
71-
mcp.DefaultString("true"), mcp.Description(mineUsage), mcp.Required(),
71+
mcp.DefaultString(""), mcp.Description(mineUsage), mcp.Required(),
7272
),
7373
mcp.WithString(
7474
"publishedAfter", mcp.DefaultString(""),

cmd/caption/insert.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,23 +81,23 @@ var insertTool = mcp.NewTool(
8181
),
8282
mcp.WithString(
8383
"isAutoSynced", mcp.Enum("true", "false", ""),
84-
mcp.DefaultString("true"), mcp.Description(iasUsage), mcp.Required(),
84+
mcp.DefaultString(""), mcp.Description(iasUsage), mcp.Required(),
8585
),
8686
mcp.WithString(
8787
"isCC", mcp.Enum("true", "false", ""),
88-
mcp.DefaultString("false"), mcp.Description(iscUsage), mcp.Required(),
88+
mcp.DefaultString(""), mcp.Description(iscUsage), mcp.Required(),
8989
),
9090
mcp.WithString(
9191
"isDraft", mcp.Enum("true", "false", ""),
92-
mcp.DefaultString("false"), mcp.Description(isdUsage), mcp.Required(),
92+
mcp.DefaultString(""), mcp.Description(isdUsage), mcp.Required(),
9393
),
9494
mcp.WithString(
9595
"isEasyReader", mcp.Enum("true", "false", ""),
96-
mcp.DefaultString("false"), mcp.Description(iserUsage), mcp.Required(),
96+
mcp.DefaultString(""), mcp.Description(iserUsage), mcp.Required(),
9797
),
9898
mcp.WithString(
9999
"isLarge", mcp.Enum("true", "false", ""),
100-
mcp.DefaultString("false"), mcp.Description(islUsage), mcp.Required(),
100+
mcp.DefaultString(""), mcp.Description(islUsage), mcp.Required(),
101101
),
102102
mcp.WithString(
103103
"language", mcp.DefaultString(""),

cmd/caption/update.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,23 +79,23 @@ var updateTool = mcp.NewTool(
7979
),
8080
mcp.WithString(
8181
"isAutoSynced", mcp.Enum("true", "false", ""),
82-
mcp.DefaultString("true"), mcp.Description(iasUsage), mcp.Required(),
82+
mcp.DefaultString(""), mcp.Description(iasUsage), mcp.Required(),
8383
),
8484
mcp.WithString(
8585
"isCC", mcp.Enum("true", "false", ""),
86-
mcp.DefaultString("false"), mcp.Description(iscUsage), mcp.Required(),
86+
mcp.DefaultString(""), mcp.Description(iscUsage), mcp.Required(),
8787
),
8888
mcp.WithString(
8989
"isDraft", mcp.Enum("true", "false", ""),
90-
mcp.DefaultString("false"), mcp.Description(isdUsage), mcp.Required(),
90+
mcp.DefaultString(""), mcp.Description(isdUsage), mcp.Required(),
9191
),
9292
mcp.WithString(
9393
"isEasyReader", mcp.Enum("true", "false", ""),
94-
mcp.DefaultString("false"), mcp.Description(iserUsage), mcp.Required(),
94+
mcp.DefaultString(""), mcp.Description(iserUsage), mcp.Required(),
9595
),
9696
mcp.WithString(
9797
"isLarge", mcp.Enum("true", "false", ""),
98-
mcp.DefaultString("false"), mcp.Description(islUsage), mcp.Required(),
98+
mcp.DefaultString(""), mcp.Description(islUsage), mcp.Required(),
9999
),
100100
mcp.WithString(
101101
"language", mcp.DefaultString(""),

cmd/channel/list.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,19 @@ var listTool = mcp.NewTool(
9595
),
9696
mcp.WithString(
9797
"managedByMe", mcp.Enum("true", "false", ""),
98-
mcp.DefaultString("false"), mcp.Description(mbmUsage), mcp.Required(),
98+
mcp.DefaultString(""), mcp.Description(mbmUsage), mcp.Required(),
9999
),
100100
mcp.WithNumber(
101101
"maxResults", mcp.DefaultNumber(5),
102102
mcp.Description(cmd.MRUsage), mcp.Required(),
103103
),
104104
mcp.WithString(
105105
"mine", mcp.Enum("true", "false", ""),
106-
mcp.DefaultString("true"), mcp.Description(mineUsage), mcp.Required(),
106+
mcp.DefaultString(""), mcp.Description(mineUsage), mcp.Required(),
107107
),
108108
mcp.WithString(
109109
"mySubscribers", mcp.Enum("true", "false", ""),
110-
mcp.DefaultString("false"), mcp.Description(msUsage), mcp.Required(),
110+
mcp.DefaultString(""), mcp.Description(msUsage), mcp.Required(),
111111
),
112112
mcp.WithString(
113113
"onBehalfOfContentOwner", mcp.DefaultString(""),

cmd/channelSection/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var listTool = mcp.NewTool(
7070
),
7171
mcp.WithString(
7272
"mine", mcp.Enum("true", "false", ""),
73-
mcp.DefaultString("false"), mcp.Description(mineUsage), mcp.Required(),
73+
mcp.DefaultString(""), mcp.Description(mineUsage), mcp.Required(),
7474
),
7575
mcp.WithString(
7676
"onBehalfOfContentOwner", mcp.DefaultString(""),

cmd/comment/insert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var insertTool = mcp.NewTool(
7575
),
7676
mcp.WithString(
7777
"canRate", mcp.Enum("true", "false", ""),
78-
mcp.DefaultString("false"), mcp.Description(crUsage), mcp.Required(),
78+
mcp.DefaultString(""), mcp.Description(crUsage), mcp.Required(),
7979
),
8080
mcp.WithString(
8181
"parentId", mcp.DefaultString(""),

cmd/comment/setModerationStatus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var setModerationStatusTool = mcp.NewTool(
7171
),
7272
mcp.WithString(
7373
"banAuthor", mcp.Enum("true", "false", ""),
74-
mcp.DefaultString("false"), mcp.Description(baUsage), mcp.Required(),
74+
mcp.DefaultString(""), mcp.Description(baUsage), mcp.Required(),
7575
),
7676
mcp.WithString(
7777
"output", mcp.Enum("json", "yaml", "silent", ""),

cmd/comment/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ var updateTool = mcp.NewTool(
6262
),
6363
mcp.WithString(
6464
"canRate", mcp.Enum("true", "false", ""),
65-
mcp.DefaultString("false"), mcp.Description(crUsage), mcp.Required(),
65+
mcp.DefaultString(""), mcp.Description(crUsage), mcp.Required(),
6666
),
6767
mcp.WithString(
6868
"textOriginal", mcp.DefaultString(""),

cmd/playlist/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ var listTool = mcp.NewTool(
7979
),
8080
mcp.WithString(
8181
"mine", mcp.Enum("true", "false", ""),
82-
mcp.DefaultString("true"), mcp.Description(mineUsage), mcp.Required(),
82+
mcp.DefaultString(""), mcp.Description(mineUsage), mcp.Required(),
8383
),
8484
mcp.WithString(
8585
"onBehalfOfContentOwner", mcp.DefaultString(""),

cmd/search/list.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ var listTool = mcp.NewTool(
9595
),
9696
mcp.WithString(
9797
"forContentOwner", mcp.Enum("true", "false", ""),
98-
mcp.DefaultString("false"), mcp.Description(fcoUsage), mcp.Required(),
98+
mcp.DefaultString(""), mcp.Description(fcoUsage), mcp.Required(),
9999
),
100100
mcp.WithString(
101101
"forDeveloper", mcp.Enum("true", "false", ""),
102-
mcp.DefaultString("false"), mcp.Description(fdUsage), mcp.Required(),
102+
mcp.DefaultString(""), mcp.Description(fdUsage), mcp.Required(),
103103
),
104104
mcp.WithString(
105105
"forMine", mcp.Enum("true", "false", ""),
106-
mcp.DefaultString("false"), mcp.Description(fmUsage), mcp.Required(),
106+
mcp.DefaultString(""), mcp.Description(fmUsage), mcp.Required(),
107107
),
108108
mcp.WithString(
109109
"location", mcp.DefaultString(""),

0 commit comments

Comments
 (0)