Skip to content

Commit 543732d

Browse files
authored
Merge pull request #70 from djoreilly/fix-accept-header
Fix bad accept header by bumping mcp-go to v0.34.0
2 parents 8e0468f + 0cad8e1 commit 543732d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

cmd/mcptools/commands/shell_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func TestShellCallCommand(t *testing.T) {
187187
name: "tool_name without params",
188188
input: "test-tool\n/q\n",
189189
expectedOutputs: []string{"Tool executed successfully"},
190-
expectedParams: map[string]any{"name": "test-tool"},
190+
expectedParams: map[string]any{"name": "test-tool", "arguments": map[string]any{}},
191191
mockResponses: map[string]map[string]any{
192192
"tools/call": {
193193
"content": []any{map[string]any{"type": "text", "text": "Tool executed successfully"}},
@@ -198,7 +198,7 @@ func TestShellCallCommand(t *testing.T) {
198198
name: "call tool without params",
199199
input: "call test-tool\n/q\n",
200200
expectedOutputs: []string{"Tool executed successfully"},
201-
expectedParams: map[string]any{"name": "test-tool"},
201+
expectedParams: map[string]any{"name": "test-tool", "arguments": map[string]any{}},
202202
mockResponses: map[string]map[string]any{
203203
"tools/call": {
204204
"content": []any{map[string]any{"type": "text", "text": "Tool executed successfully"}},

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/f/mcptools
33
go 1.24.1
44

55
require (
6-
github.com/mark3labs/mcp-go v0.24.1
6+
github.com/mark3labs/mcp-go v0.34.0
77
github.com/peterh/liner v1.2.2
88
github.com/spf13/cobra v1.9.1
99
github.com/spf13/viper v1.20.1

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
2020
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
2121
github.com/mark3labs/mcp-go v0.24.1 h1:YV+5X/+W4oBdERLWgiA1uR7AIvenlKJaa5V4hqufI7E=
2222
github.com/mark3labs/mcp-go v0.24.1/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4=
23+
github.com/mark3labs/mcp-go v0.34.0 h1:eWy7WBGvhk6EyAAyVzivTCprE52iXJwNtvHV6Cv3bR0=
24+
github.com/mark3labs/mcp-go v0.34.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4=
2325
github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
2426
github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=
2527
github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=

0 commit comments

Comments
 (0)