myip
举个例子 hyper-mcp 使用Cloudflare告诉您IP地址的插件。
这是一个如何使用HTTP的示例 hyper-mcp.
要使用此功能,您需要像这样更新配置。注意 allowed_host 在 runtime_config 因为我们使用Cloudflare来实现这一点。
{
"plugins": [
{
"name": "time",
"path": "/home/anh/Code/hyper-mcp/wasm/time.wasm"
},
{
"name": "qr_code",
"path": "oci://ghcr.io/hyper-mcp-rs/qrcode-plugin:latest"
},
{
"name": "hash",
"path": "oci://ghcr.io/hyper-mcp-rs/hash-plugin:latest"
},
{
"name": "myip",
"path": "oci://ghcr.io/hyper-mcp-rs/myip-plugin:latest",
"runtime_config": {
"allowed_hosts": ["1.1.1.1"]
}
}
]
}