mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-21 16:22:17 +08:00
feat: chat with mcp tools
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package hrp
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
@@ -465,7 +466,7 @@ func TestCallMCPTool(t *testing.T) {
|
||||
|
||||
parser := caseRunner.GetParser()
|
||||
|
||||
resp, err := parser.CallMCPTool("filesystem", "read_file",
|
||||
resp, err := parser.CallMCPTool(context.Background(), "filesystem", "read_file",
|
||||
map[string]interface{}{"path": "internal/version/VERSION"})
|
||||
assert.Nil(t, err)
|
||||
t.Logf("resp: %v", resp)
|
||||
|
||||
Reference in New Issue
Block a user