AI助手连接服务器

一个连接AI助手(如Claude)与Opendock Neutron API的MCP服务器。

  • by Pollamin
  • TypeScript
  • 本地部署
  • 2 星标
  • 更新于
在 GitHub 查看 pollamin/opendock-mcp

使用说明

Opendock MCP服务器

一 主控程序 连接人工智能助手(克劳德等)和传奇人物的服务器 露天码头 中子 API

安装

无需克隆或构建,只需使用 npx:

npx -y opendock-mcp

或全局安装:

npm install -g opendock-mcp

工具

69工具 涵盖11个类别:

类别 工具
将军 get_version, get_profile
仓库 list_warehouses, get_warehouse, get_warehouse_hours, create_warehouse, update_warehouse, delete_warehouse
码头 list_docks, get_dock, create_dock, update_dock, delete_dock, sort_docks, get_dock_availability
荷载类型 list_load_types, get_load_type, get_load_type_availability, create_load_type, update_load_type, delete_load_type
预约 list_appointments, search_appointments, get_appointment, create_appointment, update_appointment, delete_appointment, get_public_appointment, undo_appointment_status, create_recurring_appointments, delete_recurring_appointments, add_appointment_tag, remove_appointment_tag
承运人 list_carriers, get_carrier, create_carrier, update_carrier, get_booked_carriers
公司 list_companies, get_company, create_company
组织 get_org, update_org, update_favorite_carriers
审计日志 get_audit_log
设置元数据 get_settings_metadata, get_setting_metadata, validate_settings_metadata
指标 get_appointment_volume_by_date, get_appointment_volume_by_carrier, get_appointment_volume_by_load_type, get_appointment_volume_by_time_of_day, get_appointment_volume_by_day_of_week, get_appointment_avg_duration_by_load_type, get_appointment_avg_duration_by_status, get_appointment_avg_duration_by_dock_and_status, get_appointment_count_for_carrier, get_appointment_count_by_status_for_carrier, get_appointment_count_for_docks, get_reserve_count_for_user, get_dock_dwell_time, get_carrier_status_percentages, list_appointment_metrics, export_appointment_metrics_excel, get_appointment_status_times, get_first_available_appointment, get_warehouse_insights, get_warehouse_capacity_usage, export_yard_data_excel

先决条件

  • Node.js 18+
  • 具有API访问权限的Opendock帐户

认证

服务器支持两种身份验证方法:

选项1:用户名/密码 (推荐)--服务器自动处理登录和令牌刷新。

OPENDOCK_USERNAME=user@example.com
OPENDOCK_PASSWORD=your-password

选项2:预先存在的JWT代币

OPENDOCK_TOKEN=your-jwt-token

可选择设置API URL:

OPENDOCK_API_URL=https://neutron.opendock.com           # production (default)
OPENDOCK_API_URL=https://neutron.staging.opendock.com    # staging

使用Claude Desktop

添加到您的 claude_desktop_config.json:

{
  "mcpServers": {
    "opendock": {
      "command": "npx",
      "args": ["-y", "opendock-mcp"],
      "env": {
        "OPENDOCK_USERNAME": "user@example.com",
        "OPENDOCK_PASSWORD": "your-password"
      }
    }
  }
}

使用Claude代码

claude mcp add opendock -- npx -y opendock-mcp

在启动Claude Code之前设置所需的环境变量,或在MCP配置中传递它们。

测试

使用 MCP检查员 交互式测试:

OPENDOCK_USERNAME=user@example.com OPENDOCK_PASSWORD=your-password \
  npx @modelcontextprotocol/inspector npx -y opendock-mcp

发展

git clone https://github.com/Pollamin/opendock-mcp.git
cd opendock-mcp
npm install
npm run build

许可证

麻省理工学院