雷克雅未克MCP服务器
基于TypeScript和Node.js构建的最小MCP服务器 标准.
- 服务器名称:
reykjavik
工具
- 姓名:
select_timezone
- 说明: 请用户先选择时区。
- 输入(
arguments):
- 交互行为:在支持客户端(如VS Code)时,此工具会提示选择时区。 - timezone (非启发式客户端的回退):其中之一 pst, est, utc, european, australian, other - custom_timezone (回退;仅在以下情况下需要 timezone=other):IANA时区字符串(例如。 Europe/Berlin)
- 输出(
structuredContent):
- timezone (string):所选时区选项 - custom_timezone (字符串,可选):在以下情况下提供 timezone=other - resolved_timezone (string):已解析IANA时区
- 姓名:
get_time
- 说明: 返回由提供的时区的当前时间
select_timezone.
- 输入(
arguments):
- timezone (必填):其中之一 pst, est, utc, european, australian, other - custom_timezone (仅在以下情况下需要 timezone=other):IANA时区字符串
- 输出(
structuredContent):
- timezone_choice (string):请求的时区选项 - timezone (string):已解析IANA时区 - local_time (string):格式化所选时区的当前时间 - utc_iso (string):ISO 8601格式的当前UTC时间 - epoch_ms (number):Unix纪元时间(毫秒)
- MCP应用程序UI资源:
ui://reykjavik/time-view.html(通过链接get_time元数据)
预设映射:
pst->America/Los_Angelesest->America/New_Yorkutc->UTCeuropean->Europe/Londonaustralian->Australia/Sydney
跑
npm install
npm run build
npm startMCP客户端命令
使用内置的服务器入口点:
node /absolute/path/to/mcp-apps/dist/index.js