Skip to content

A example `hyper-mcp` plugin that tell you your IP address, using Cloudflare.

License

Notifications You must be signed in to change notification settings

hyper-mcp-rs/myip-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myip

A example hyper-mcp plugin that tell you your IP address, using Cloudflare.

This is an example of how to use HTTP with hyper-mcp.

To use this, you will need to update your config like this. Note the allowed_host in runtime_config because we're using Cloudflare for this.

{
  "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"]
      }
    }
  ]
}

About

A example `hyper-mcp` plugin that tell you your IP address, using Cloudflare.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages