Gmail操作管理服务器

Ops MCP Server是一个基于WebSocket的服务器,用于连接Agent Builder并提供获取操作报告和管理任务的工具。

  • by johnohhh1
  • JavaScript
  • 本地部署
  • 更新于
在 GitHub 查看 johnohhh1/ops-mcp-server

使用说明

Ops MCP Server

Real MCP (Model Context Protocol) WebSocket server for Gmail operations management. This connects to Agent Builder and provides tools for fetching ops reports and managing tasks.

Quick Start

1. Setup

# Install dependencies
npm install

# Copy and configure environment
cp .env.example .env
# Edit .env and add your AI_SECRET_TOKEN

2. Run locally

npm start
# Server runs on ws://localhost:3334

3. Deploy to Railway

  1. Push to GitHub:
git init
git add .
git commit -m "Initial MCP server"
git remote add origin https://github.com/johnohhh1/ops-mcp-server.git
git push -u origin main
  1. Connect Railway to your GitHub repo
  2. Add environment variable: AI_SECRET_TOKEN
  3. Deploy! You'll get a URL like wss://ops-mcp-server.up.railway.app

4. Connect to Agent Builder

In OpenAI Agent Builder:

  • Tools → Add → MCP
  • URL: wss://your-railway-app.up.railway.app
  • Tools auto-discover: fetch_ops_report and mark_task_done

Architecture

Agent Builder
     ↓ (MCP WebSocket)
This MCP Server
     ↓ (HTTPS + Bearer)
Your Vercel API (my-ops-runner)
     ↓
Gmail (future)

Available Tools

  • fetch_ops_report - Gets HotSchedules 911 items and Brinker deadlines
  • mark_task_done - Marks a task complete by ID

Environment Variables

  • AI_SECRET_TOKEN - Your secret token (must match Vercel)
  • PORT - WebSocket port (default 3334)