Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/mcptools/commands/shell_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func TestShellCallCommand(t *testing.T) {
name: "tool_name without params",
input: "test-tool\n/q\n",
expectedOutputs: []string{"Tool executed successfully"},
expectedParams: map[string]any{"name": "test-tool"},
expectedParams: map[string]any{"name": "test-tool", "arguments": map[string]any{}},
mockResponses: map[string]map[string]any{
"tools/call": {
"content": []any{map[string]any{"type": "text", "text": "Tool executed successfully"}},
Expand All @@ -198,7 +198,7 @@ func TestShellCallCommand(t *testing.T) {
name: "call tool without params",
input: "call test-tool\n/q\n",
expectedOutputs: []string{"Tool executed successfully"},
expectedParams: map[string]any{"name": "test-tool"},
expectedParams: map[string]any{"name": "test-tool", "arguments": map[string]any{}},
mockResponses: map[string]map[string]any{
"tools/call": {
"content": []any{map[string]any{"type": "text", "text": "Tool executed successfully"}},
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/f/mcptools
go 1.24.1

require (
github.com/mark3labs/mcp-go v0.24.1
github.com/mark3labs/mcp-go v0.34.0
github.com/peterh/liner v1.2.2
github.com/spf13/cobra v1.9.1
github.com/spf13/viper v1.20.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/mark3labs/mcp-go v0.24.1 h1:YV+5X/+W4oBdERLWgiA1uR7AIvenlKJaa5V4hqufI7E=
github.com/mark3labs/mcp-go v0.24.1/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4=
github.com/mark3labs/mcp-go v0.34.0 h1:eWy7WBGvhk6EyAAyVzivTCprE52iXJwNtvHV6Cv3bR0=
github.com/mark3labs/mcp-go v0.34.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4=
github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=
github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
Expand Down