Skip to content

Commit c4d0ae4

Browse files
committed
🐛 Disabel required fields in mcp
1 parent faefd73 commit c4d0ae4

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

cmd/activity/list.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ type listIn struct {
3939

4040
var listInSchema = &jsonschema.Schema{
4141
Type: "object",
42-
Required: []string{
43-
"channelId", "home", "maxResults", "mine", "publishedAfter",
44-
"publishedBefore", "regionCode", "parts", "output", "jsonpath",
45-
},
42+
// Required: []string{
43+
// "channelId", "home", "maxResults", "mine", "publishedAfter",
44+
// "publishedBefore", "regionCode", "parts", "output", "jsonpath",
45+
// },
4646
Properties: map[string]*jsonschema.Schema{
4747
"channelId": {
4848
Type: "string", Description: ciUsage, Default: json.RawMessage(`""`),

cmd/mcp.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
package cmd
55

66
import (
7-
"context"
87
"fmt"
98
"log/slog"
109
"net/http"
@@ -43,7 +42,7 @@ var mcpCmd = &cobra.Command{
4342
Long: mcpLong,
4443
Run: func(cmd *cobra.Command, args []string) {
4544
var err error
46-
ctx := context.Background()
45+
ctx := cmd.Context()
4746
addr := fmt.Sprintf(":%d", port)
4847
slog.InfoContext(
4948
ctx, "starting MCP server",

0 commit comments

Comments
 (0)