feat: hrp mcphost

This commit is contained in:
lilong.129
2025-05-16 12:18:57 +08:00
parent ce38ef3be0
commit f8b7a42560
36 changed files with 564 additions and 55 deletions

View File

@@ -51,13 +51,14 @@ Copyright © 2017-present debugtalk. Apache-2.0 License.
### SEE ALSO
* [hrp adb](hrp_adb.md) - simple utils for android device management
* [hrp build](hrp_build.md) - build plugin for testing
* [hrp convert](hrp_convert.md) - convert multiple source format to HttpRunner JSON/YAML/gotest/pytest cases
* [hrp build](hrp_build.md) - Build plugin for testing
* [hrp convert](hrp_convert.md) - Convert multiple source format to HttpRunner JSON/YAML/gotest/pytest cases
* [hrp ios](hrp_ios.md) - simple utils for ios device management
* [hrp pytest](hrp_pytest.md) - run API test with pytest
* [hrp run](hrp_run.md) - run API test with go engine
* [hrp server](hrp_server.md) - start hrp server
* [hrp startproject](hrp_startproject.md) - create a scaffold project
* [hrp mcphost](hrp_mcphost.md) - Export MCP server tools to JSON description
* [hrp pytest](hrp_pytest.md) - Run API test with pytest
* [hrp run](hrp_run.md) - Run API test with go engine
* [hrp server](hrp_server.md) - Start hrp server
* [hrp startproject](hrp_startproject.md) - Create a scaffold project
* [hrp wiki](hrp_wiki.md) - visit https://httprunner.com
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -23,4 +23,4 @@ simple utils for android device management
* [hrp adb install](hrp_adb_install.md) - push package to the device and install them automatically
* [hrp adb screencap](hrp_adb_screencap.md) - Start android screen capture
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -24,4 +24,4 @@ hrp adb devices [flags]
* [hrp adb](hrp_adb.md) - simple utils for android device management
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -28,4 +28,4 @@ hrp adb install [flags] PACKAGE
* [hrp adb](hrp_adb.md) - simple utils for android device management
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -25,4 +25,4 @@ hrp adb screencap [flags]
* [hrp adb](hrp_adb.md) - simple utils for android device management
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -1,10 +1,10 @@
## hrp build
build plugin for testing
Build plugin for testing
### Synopsis
build python/go plugin for testing
Build python/go plugin for testing
```
hrp build $path ... [flags]
@@ -36,4 +36,4 @@ hrp build $path ... [flags]
* [hrp](hrp.md) - All-in-One Testing Framework for API, UI and Performance
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -1,6 +1,6 @@
## hrp convert
convert multiple source format to HttpRunner JSON/YAML/gotest/pytest cases
Convert multiple source format to HttpRunner JSON/YAML/gotest/pytest cases
```
hrp convert $path... [flags]
@@ -34,4 +34,4 @@ hrp convert $path... [flags]
* [hrp](hrp.md) - All-in-One Testing Framework for API, UI and Performance
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -29,4 +29,4 @@ simple utils for ios device management
* [hrp ios uninstall](hrp_ios_uninstall.md) - uninstall package automatically
* [hrp ios xctest](hrp_ios_xctest.md) - run xctest
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -26,4 +26,4 @@ hrp ios apps [flags]
* [hrp ios](hrp_ios.md) - simple utils for ios device management
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -24,4 +24,4 @@ hrp ios devices [flags]
* [hrp ios](hrp_ios.md) - simple utils for ios device management
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -25,4 +25,4 @@ hrp ios install [flags] PACKAGE
* [hrp ios](hrp_ios.md) - simple utils for ios device management
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -28,4 +28,4 @@ hrp ios mount [flags]
* [hrp ios](hrp_ios.md) - simple utils for ios device management
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -26,4 +26,4 @@ hrp ios ps [flags]
* [hrp ios](hrp_ios.md) - simple utils for ios device management
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -25,4 +25,4 @@ hrp ios reboot [flags]
* [hrp ios](hrp_ios.md) - simple utils for ios device management
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -24,4 +24,4 @@ hrp ios tunnel [flags]
* [hrp ios](hrp_ios.md) - simple utils for ios device management
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -26,4 +26,4 @@ hrp ios uninstall [flags] PACKAGE
* [hrp ios](hrp_ios.md) - simple utils for ios device management
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -28,4 +28,4 @@ hrp ios xctest [flags]
* [hrp ios](hrp_ios.md) - simple utils for ios device management
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

34
docs/cmd/hrp_mcphost.md Normal file
View File

@@ -0,0 +1,34 @@
## hrp mcphost
Export MCP server tools to JSON description
### Synopsis
Export all tools from MCP servers to JSON description.
The tools will be exported with their descriptions, parameters, and return values.
```
hrp mcphost [flags]
```
### Options
```
--dump string path to save the exported tools JSON file (default "tools_records.json")
-h, --help help for mcphost
-c, --mcp-config string path to the MCP config file (default "$HOME/.hrp/mcp.json")
```
### Options inherited from parent commands
```
--log-json set log to json format (default colorized console)
-l, --log-level string set log level (default "INFO")
--venv string specify python3 venv path
```
### SEE ALSO
* [hrp](hrp.md) - All-in-One Testing Framework for API, UI and Performance
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -1,6 +1,6 @@
## hrp pytest
run API test with pytest
Run API test with pytest
```
hrp pytest $path ... [flags]
@@ -24,4 +24,4 @@ hrp pytest $path ... [flags]
* [hrp](hrp.md) - All-in-One Testing Framework for API, UI and Performance
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -1,10 +1,10 @@
## hrp run
run API test with go engine
Run API test with go engine
### Synopsis
run yaml/json testcase files for API test
Run yaml/json testcase files for API test
```
hrp run $path... [flags]
@@ -44,4 +44,4 @@ hrp run $path... [flags]
* [hrp](hrp.md) - All-in-One Testing Framework for API, UI and Performance
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -1,10 +1,10 @@
## hrp server
start hrp server
Start hrp server
### Synopsis
start hrp server, call httprunner by HTTP
Start hrp server, call httprunner by HTTP
```
hrp server start [flags]
@@ -30,4 +30,4 @@ hrp server start [flags]
* [hrp](hrp.md) - All-in-One Testing Framework for API, UI and Performance
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -1,6 +1,6 @@
## hrp startproject
create a scaffold project
Create a scaffold project
```
hrp startproject $project_name [flags]
@@ -29,4 +29,4 @@ hrp startproject $project_name [flags]
* [hrp](hrp.md) - All-in-One Testing Framework for API, UI and Performance
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025

View File

@@ -24,4 +24,4 @@ hrp wiki [flags]
* [hrp](hrp.md) - All-in-One Testing Framework for API, UI and Performance
###### Auto generated by spf13/cobra on 24-Apr-2025
###### Auto generated by spf13/cobra on 16-May-2025