Skip to main content

水工告警MCP服务,提供船舶围栏检测、船舶查询、许可船判断等功能

Project description

water-alarm-mcp

水工告警MCP服务,提供船舶围栏检测、船舶查询、许可船判断等功能。

功能

  • is_point_in_polygon: 判断船舶是否在电子围栏内部
  • get_fence_list: 返回电子围栏列表
  • search_vessels_by_name: 根据船舶名称模糊查询船舶列表
  • search_vessel_by_mmsi: 根据MMSI精确查询船舶信息
  • is_permitted_vessel: 根据MMSI查询船舶是否是许可船

安装

pip install water-alarm-mcp

使用

在 AI 客户端中使用

Claude Desktop / Cursor:

在你的 mcp.json 文件中添加以下配置:

{
  "mcpServers": {
    "water-alarm-mcp": {
      "command": "uvx",
      "args": ["water-alarm-mcp"]
    }
  }
}

命令行运行

water-alarm-mcp

工具

is_point_in_polygon

判断船舶是否在电子围栏内部。

参数:

  • lng: 船舶经度
  • lat: 船舶纬度
  • polygon_wkt: 电子围栏的多边形区域(WKT格式),可选,默认为TJ03标段桥梁警戒区

返回:

  • 是否在围栏内(boolean)

get_fence_list

返回电子围栏列表。

参数: 无

返回:

  • 电子围栏列表

search_vessels_by_name

根据船舶名称模糊查询船舶列表。

参数:

  • vessel_name: 船舶名称(模糊匹配)

返回:

  • 船舶列表,包含mmsi、current_time、speed、lng、lat、vessel_name、project_id

search_vessel_by_mmsi

根据MMSI精确查询船舶信息。

参数:

  • mmsi: 船舶MMSI编码

返回:

  • 船舶信息或None

is_permitted_vessel

根据MMSI查询船舶是否是许可船。

参数:

  • mmsi: 船舶MMSI编码

返回:

  • 是否是许可船(boolean)

许可证

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

water_alarm_mcp-1.0.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

water_alarm_mcp-1.0.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file water_alarm_mcp-1.0.2.tar.gz.

File metadata

  • Download URL: water_alarm_mcp-1.0.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for water_alarm_mcp-1.0.2.tar.gz
Algorithm Hash digest
SHA256 260ae1ad25cd078ca25855caa706341018ba21bcd3e8b28e282b13e7c0b6d557
MD5 9f8b0d7298de1576ff3fd6256ff61a3c
BLAKE2b-256 e5ee56963308d29116ffdfec5f84794ecd99ab83d89b9f80699cfb82803974d9

See more details on using hashes here.

File details

Details for the file water_alarm_mcp-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for water_alarm_mcp-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 47eeba9d3bb0840f5deea34df16c0220a14acf4fe6a882cad170aec611d84ed6
MD5 6f6c99365e9829af3cbeaef4e061ee55
BLAKE2b-256 cc5ff5844540a4519be9587a63501b3ed260fb562986cb8177d232e303475465

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page