Skip to main content

WebSocket bridge for YADE MCP server - runs inside YADE Python environment

Project description

yade-mcp-bridge

PyPI

WebSocket bridge that runs inside a YADE process and enables execution tools for yade-mcp.

Quick Start

pip install yade-mcp-bridge

Then in a YADE Python console:

import yade_mcp_bridge
yade_mcp_bridge.start()

The bridge auto-detects the runtime: Qt timer in GUI mode, blocking poll in console mode.

Expected output:

============================================================
YADE MCP Bridge Server
============================================================
  URL:         ws://localhost:9002
  Log:         /your-working-dir/.yade-mcp/bridge.log
  PyRunner:    installed (period=1)
============================================================

Options

yade_mcp_bridge.start(
    host="localhost",           # Server host
    port=9002,                  # Server port
    mode="auto",                # "auto", "gui", or "console"
    interrupt_check_period=1,   # PyRunner checks every N iterations
)

Requirements

  • Python >= 3.8
  • YADE with Python bindings
  • websockets >= 9.1, < 13

Troubleshooting

Symptom Fix
Port in use yade_mcp_bridge.start(port=9003), then set YADE_MCP_BRIDGE_URL=ws://localhost:9003
Connection failed Check bridge is running, see .yade-mcp/bridge.log
PyRunner not available YADE installation may lack PyRunner; interrupt checking during O.run() will be disabled

Development

Run the bridge from source inside YADE:

import sys
sys.path.insert(0, '/path/to/yade-mcp/yade-mcp-bridge/src')
import yade_mcp_bridge
yade_mcp_bridge.start()

For full MCP client setup, see yade-mcp.

License: MIT (LICENSE).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yade_mcp_bridge-0.2.4.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yade_mcp_bridge-0.2.4-py3-none-any.whl (36.5 kB view details)

Uploaded Python 3

File details

Details for the file yade_mcp_bridge-0.2.4.tar.gz.

File metadata

  • Download URL: yade_mcp_bridge-0.2.4.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yade_mcp_bridge-0.2.4.tar.gz
Algorithm Hash digest
SHA256 ca64f1a9732f42aa3e2e6a8e57491dd6600f76819b60143974a160e2ba95ac65
MD5 b6115d69c7c0579cc17d691a1e309c26
BLAKE2b-256 19d897752d891d27aa3324b46b71fb97d943931637f97fd39da3be0f8b6c11dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for yade_mcp_bridge-0.2.4.tar.gz:

Publisher: release-bridge.yml on yusong652/yade-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yade_mcp_bridge-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: yade_mcp_bridge-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 36.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yade_mcp_bridge-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cfd11ccc7184fbc4485846eacf38b4981fa23691b551cbe9c82c69f4a3b00441
MD5 7f30a29de8872e2713bb8a80038d951b
BLAKE2b-256 4a0c2cae6f4a7d7d7a345633f7f75f80a565d7cdd5bd69cb5cd65dfdb2037dcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for yade_mcp_bridge-0.2.4-py3-none-any.whl:

Publisher: release-bridge.yml on yusong652/yade-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page