Skip to main content
Glama
FayezBast

mcptestingwm

by FayezBast

mcptestingwm

用于验证 MCP 与 World Monitor MCP 连接性的测试仓库。

它包含一个最小化的 MCP 服务器设置,用于将自定义工具连接到 WorldMonitor Connect MCP 面板。

仓库布局

  • my-mcp-server/: 实际基于 Node 的 MCP 服务器

该服务器公开的内容

  • POST /mcp

  • GET /health

  • MCP 方法:

    • initialize

    • notifications/initialized

    • tools/list

    • tools/call

可用工具

  • latest_events

  • active_alerts

  • country_risk

  • top_incidents

这些工具在 MCP 文本内容块中返回 JSON,以便 WorldMonitor 可以在面板中呈现结果。

本地运行

export MCP_TOKEN=change-me
npm start

您也可以从 my-mcp-server/ 内部运行服务器,但现在仓库根目录可以直接作为 Railway 入口点。

在 Railway 上部署

  1. 将此仓库推送到 GitHub。

  2. 从 GitHub 仓库创建一个 Railway 项目。

  3. 在 Railway 中添加 MCP_TOKEN 环境变量。

  4. 部署服务。

  5. 复制公共 Railway 域名。

此仓库现在可以在 Railway 上进行根目录部署,因此您无需设置 Root Directory 覆盖。

您在 WorldMonitor 中的 MCP URL 将是:

https://your-railway-domain/mcp

在 WorldMonitor 中连接

  1. 打开 WorldMonitor Pro 面板。

  2. 选择 Connect MCP

  3. 粘贴您的公共 /mcp URL。

  4. 粘贴您的 bearer token。

  5. 点击 Connect & List Tools

  6. 为任何列出的工具添加一个面板。

更多详情

请参阅 my-mcp-server/README.md 以获取请求示例和工具负载。

F
license - not found
-
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FayezBast/mcptestingwm'

If you have feedback or need assistance with the MCP directory API, please join our Discord server