Skip to main content
Glama

mcp-officecli-bridge

Streamable HTTP bridge for OfficeCLI official MCP (officecli mcp stdio) — Gemini Spark Custom App で使用でき、Coolify (Tencent Cloud) でホストできるようにするためのものです。

OfficeCLI のツールを再実装しません。すべてのツール(create, view, get, query, add, set, remove, move, swap, batch, dump, merge, validate, …)はアップストリームから自動的に公開されます。

Gemini Spark --POST /mcp (Streamable HTTP)-->  Express (src/server.ts)  --stdio-->  officecli mcp

Coolify へのデプロイ(2分)

  1. Coolify → + New Service → Application → リポジトリ mcp_office_cli を選択

  2. ビルドパック: Dockerfile — ポート: 3000

  3. (オプション)ドメインを設定: mcp.yourdomain.com

  4. デプロイ → https://mcp.yourdomain.com/health を確認 → {"status":"ok"}

  5. Gemini Spark → カスタムアプリ → MCP URL = https://mcp.yourdomain.com/mcp

Related MCP server: AgentCore MCP Server

ローカルテスト

npm install
npm run build
# butuh officecli terinstall (winget/brew/npm) untuk test lokal, atau pakai Docker
npm start
# test
curl http://localhost:3000/health
curl -X POST http://localhost:3000/mcp -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'

インスペクタ

npx @modelcontextprotocol/inspector
# URL: http://localhost:3000/mcp  (Streamable HTTP)

環境変数

変数

デフォルト

説明

PORT

3000

HTTPポート

OFFICECLI_BIN

officecli

officecli バイナリのパス

REQUEST_TIMEOUT_MS

25000

アップストリームへのプロキシタイムアウト

MCP_AUTH_TOKEN

-

設定されている場合、Authorization: Bearer <token> が必要です(TODO: 配線)

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    F
    maintenance
    Exposes Gemini CLI's built-in tools and external MCP proxies through a unified MCP endpoint while providing an OpenAI-compatible API for Gemini models. It features configurable security modes to safely manage file system operations, web searches, and shell command execution.
    36 npm
    138
    Apache 2.0
  • F
    license
    Not graded
    quality
    D
    maintenance
    MCP server for driving Office add-ins (Excel, Word, Outlook, PowerPoint, OneNote) through high-level workflow tools and queries, enabling LLM agents to automate document tasks across Microsoft Office applications via a single Go binary.
    3
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    Suite of MCP servers for local-first, governed automation of Microsoft Office files (Excel, PowerPoint, Word) via structured tool calls.
    80 PyPI
    8
    MIT