Skip to content

About

Connect OpenMausBot to ChatGPT and MCP clients with a Python FastMCP bridge. Private tunnel setup, read-only defaults, opt-in actions and Windows tests.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

OpenMausBot Python MCP Bridge — Connect OpenMausBot to ChatGPT

Connect a local OpenMausBot installation to MCP clients using Python and FastMCP. For ChatGPT, use a private OpenAI Secure MCP Tunnel. The bridge opens no HTTP listener and enables read tools by default.

Documentation website · Windows installation · ChatGPT integration guide · FAQ

What is this OpenMausBot ChatGPT integration?

This open-source Python Model Context Protocol (MCP) bridge connects the installed OpenMausBot vendor MCP server to ChatGPT through a private OpenAI Secure MCP Tunnel, or directly to a local MCP client over stdio. Use it to check server health, list bots and channels, and inspect tasks or messages. Twelve action tools are available only with explicit opt-in. The bridge itself needs no OpenAI API key and exposes no HTTP port.

This repository contains the bridge, not the OpenMausBot application or tunnel client.

ChatGPT → Secure MCP Tunnel → Python FastMCP bridge → vendor mcp-server.js → OpenMausBot
Local MCP client ───────────→ Python FastMCP bridge

This is an independent integration, not an official OpenMausBot or OpenAI product. It uses the installed vendor MCP implementation; it does not bundle the app, its JavaScript source, credentials, or the tunnel-client executable.

Requirements

  • Windows with Python 3.10+ and Node.js on PATH.
  • OpenMausBot installed and running.
  • For ChatGPT: access to custom MCP plugins and an authorized OpenAI Secure MCP Tunnel.

Tested locally on Windows with CPython 3.14.7, FastMCP 2.14.7 and MCP SDK 1.30.0, against the packaged OpenMausBot server version 0.1.118. Other combinations are not verified. The lock file records the exact dependencies used for verification.

Quick start

git clone https://github.com/n1s1th/openmausbot-python-bridge.git
cd openmausbot-python-bridge
.\setup.ps1
.\verify.ps1
.\verify.ps1 -Live

The default checks run without OpenMausBot. -Live additionally initializes the real stdio bridge, checks tool schemas, calls health and lists bots. It never messages or modifies a live bot. Keep OpenMausBot running for this check.

To start the server:

.\start.ps1

It waits for an MCP client on stdin/stdout. An idle console is normal; Ctrl+C stops it. Usually your MCP client launches it directly using the configuration below.

If PowerShell blocks scripts, use Python directly without changing machine policy:

python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements-lock.txt
.\.venv\Scripts\python.exe -m pytest -q -m "not live"
.\.venv\Scripts\python.exe bridge.py

Connect a local MCP client

Copy examples/mcp-client.json into your client's MCP configuration and replace both C:/path/to/... values with your actual absolute paths. Do not put API keys or paired tokens in a committed client configuration.

Ask your client:

Call get_system_health, then list_bots. Show the actual tool results.

A successful health call reports status: connected and app: openmausbot. Seeing your real bot list verifies the client-to-app path. A natural-language claim without an actual tool invocation is not proof of connection.

Connect ChatGPT

Follow the private tunnel guide. Keep OpenMausBot and the tunnel client running. After adding and enabling the plugin, run the same health and bot-list prompts in ChatGPT. The bridge itself needs no OpenAI API key; the tunnel client needs its own restricted runtime credential.

Available tools

Default read tools Explicitly enabled action tools
get_system_health send_bot_message
list_bots send_channel_message
list_channels create_bot
list_available_models update_bot_profile
get_bot_messages create_channel
get_channel_messages update_channel
search_messages create_task
wait_for_conversation switch_task
rename_task
set_bot_model
edit_bot_message
interrupt_conversation

To enable actions, start with start.ps1 -AllowWrites or add --allow-writes after bridge.py in the client's command. Restart the client connection and refresh tool discovery afterward. Action permission is not a replacement for OpenMausBot pairing. Sending instructions may cause agents to use external tools. Require confirmation in your client and inspect the intended bot and task first. Unknown tools are blocked, including future upstream additions. Approval grants, deletion and computer lifecycle tools are never allowlisted.

Configuration

Environment variable Default / purpose
OPENMAUSBOT_MCP_SCRIPT %LOCALAPPDATA%/Programs/openmausbot/resources/server/mcp-server.js
OPENMAUSBOT_URL http://127.0.0.1:8799; explicit loopback HTTP origin only
OPENMAUSBOT_TOKEN Optional paired session token required by the upstream for some actions

For a nonstandard installation, set these in the launching process before starting the client. The bridge does not automatically load .env files or discover ports. Treat the configured Node script and loopback server as trusted code/services.

Troubleshooting

  • App unreachable: open OpenMausBot; check its actual port and OPENMAUSBOT_URL.
  • Script missing: set OPENMAUSBOT_MCP_SCRIPT to the installed vendor script.
  • Node not found: install Node.js and reopen your terminal/client.
  • 403 on an action: use OpenMausBot's supported pairing flow and pass its token in the launch environment. Do not extract app credential files.
  • Tool disabled: actions need --allow-writes; reconnect and refresh discovery.
  • Local checks pass, ChatGPT fails: run tunnel doctor and verify the organization, workspace association, permissions and running tunnel client.
  • Live schema test fails after an app update: review the upstream tool changes; do not blindly expand the allowlist.

Read SECURITY.md before connecting transcript data. Dependency deprecation warnings can occur with the pinned FastMCP/Authlib versions. No public HTTPS/OAuth deployment is included.

Development and license

.\.venv\Scripts\python.exe -m pytest -q -m "not live"
.\.venv\Scripts\python.exe -m pytest -q

The second command includes the live integration test. GitHub Actions runs only the portable unit tests. See verification notes. MIT licensed; third-party applications and dependencies retain their own licenses.

Documentation website and project discovery

The public OpenMausBot MCP documentation contains installation, ChatGPT setup, troubleshooting, security and FAQ pages. Source is in website/build_site.py, with the static output in website/dist/.

Rebuild locally with python website/build_site.py website/dist, then preview with python -m http.server 8000 --directory website/dist. Publishing the GitHub files does not automatically deploy the separately hosted documentation site.

See discovery and indexing maintenance for repository metadata, Search Console setup and sitemap submission. Search rankings, indexing and AI recommendations are determined by the relevant services and are not guaranteed.

About

Connect OpenMausBot to ChatGPT and MCP clients with a Python FastMCP bridge. Private tunnel setup, read-only defaults, opt-in actions and Windows tests.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages