mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-13 17:44:35 +08:00
refactor: move mcphost package to top level
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/httprunner/httprunner/v5/pkg/mcphost"
|
||||
"github.com/httprunner/httprunner/v5/mcphost"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
v5.0.0-beta-2505171137
|
||||
v5.0.0-beta-2505171155
|
||||
|
||||
5
mcphost/README.md
Normal file
5
mcphost/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# mcphost
|
||||
|
||||
This package is a fork of [mark3labs/mcphost], it helps HttpRunner to interact with external tools through the Model Context Protocol (MCP).
|
||||
|
||||
[mark3labs/mcphost]: https://github.com/mark3labs/mcphost
|
||||
@@ -25,6 +25,6 @@ func TestLoadSettings(t *testing.T) {
|
||||
|
||||
weatherConfig := settings.MCPServers["weather"].Config.(STDIOServerConfig)
|
||||
assert.Equal(t, "uv", weatherConfig.Command)
|
||||
assert.Equal(t, []string{"--directory", "/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/pkg/mcphost/testdata", "run", "demo_weather.py"}, weatherConfig.Args)
|
||||
assert.Equal(t, []string{"--directory", "/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/mcphost/testdata", "run", "demo_weather.py"}, weatherConfig.Args)
|
||||
assert.Equal(t, map[string]string{"ABC": "123"}, weatherConfig.Env)
|
||||
}
|
||||
@@ -11,7 +11,7 @@
|
||||
"weather": {
|
||||
"args": [
|
||||
"--directory",
|
||||
"/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/pkg/mcphost/testdata",
|
||||
"/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/mcphost/testdata",
|
||||
"run",
|
||||
"demo_weather.py"
|
||||
],
|
||||
@@ -19,7 +19,7 @@ import (
|
||||
"github.com/httprunner/funplugin/fungo"
|
||||
"github.com/httprunner/httprunner/v5/code"
|
||||
"github.com/httprunner/httprunner/v5/internal/builtin"
|
||||
"github.com/httprunner/httprunner/v5/pkg/mcphost"
|
||||
"github.com/httprunner/httprunner/v5/mcphost"
|
||||
mcp2 "github.com/mark3labs/mcp-go/mcp"
|
||||
)
|
||||
|
||||
|
||||
@@ -459,7 +459,7 @@ func TestCallMCPTool(t *testing.T) {
|
||||
// Create a new case runner for testing
|
||||
caseRunner, err := NewCaseRunner(TestCase{
|
||||
Config: &TConfig{
|
||||
MCPConfigPath: "pkg/mcphost/testdata/test.mcp.json",
|
||||
MCPConfigPath: "mcphost/testdata/test.mcp.json",
|
||||
},
|
||||
}, nil)
|
||||
require.Nil(t, err)
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
# mcphost
|
||||
|
||||
This package is a fork of [mark3labs/mcphost], and it helps HttpRunner to interact with external tools through the Model Context Protocol (MCP).
|
||||
|
||||
[mark3labs/mcphost]: https://github.com/mark3labs/mcphost
|
||||
@@ -28,7 +28,7 @@ import (
|
||||
"github.com/httprunner/httprunner/v5/internal/builtin"
|
||||
"github.com/httprunner/httprunner/v5/internal/sdk"
|
||||
"github.com/httprunner/httprunner/v5/internal/version"
|
||||
"github.com/httprunner/httprunner/v5/pkg/mcphost"
|
||||
"github.com/httprunner/httprunner/v5/mcphost"
|
||||
"github.com/httprunner/httprunner/v5/uixt"
|
||||
"github.com/httprunner/httprunner/v5/uixt/option"
|
||||
)
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/httprunner/httprunner/v5/pkg/mcphost"
|
||||
"github.com/httprunner/httprunner/v5/mcphost"
|
||||
"github.com/httprunner/httprunner/v5/uixt"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
Reference in New Issue
Block a user