feat: chat with mcp tools

This commit is contained in:
lilong.129
2025-05-16 16:18:56 +08:00
parent a58ccffb28
commit a4cff1c98a
13 changed files with 544 additions and 124 deletions

View File

@@ -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)