Skip to main content

WebSocket bridge for ITASCA PFC - runs inside PFC GUI to enable remote simulation control

Project description

pfc-mcp-bridge

pfc-mcp-bridge is the runtime bridge that runs inside PFC GUI and enables execution tools used by pfc-mcp.

Use this package when you want MCP clients to run scripts and diagnostics in a live PFC session.

Quick Start

Run in the PFC GUI Python console:

import subprocess
subprocess.run(["pip", "install", "pfc-mcp-bridge"])

import pfc_mcp_bridge
pfc_mcp_bridge.start()

Expected startup output:

============================================================
PFC Bridge Server
============================================================
  URL:         ws://localhost:9001
  Log:         /your-working-dir/.pfc-bridge/bridge.log
  Callbacks:   Interrupt, Diagnostic (registered)
============================================================

Task loop running via Qt timer (interval=20ms, max_tasks_per_tick=1)
Bridge started in non-blocking mode (GUI remains responsive).

No Enter confirmation is required.

Requirements

  • Python >= 3.6 (PFC embedded Python)
  • ITASCA PFC 7.0+ with Python support
  • websockets==9.1

Troubleshooting

  • Server won't start: in PFC Python, run pip install websockets==9.1
  • Connection failed: check the bridge is running and port 9001 is available
  • No task execution: keep pfc_mcp_bridge.start() running in the PFC process

For full MCP client setup, see the main package page: pfc-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

pfc_mcp_bridge-0.1.2.tar.gz (26.2 kB view details)

Uploaded Source

Built Distribution

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

pfc_mcp_bridge-0.1.2-py3-none-any.whl (36.9 kB view details)

Uploaded Python 3

File details

Details for the file pfc_mcp_bridge-0.1.2.tar.gz.

File metadata

  • Download URL: pfc_mcp_bridge-0.1.2.tar.gz
  • Upload date:
  • Size: 26.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pfc_mcp_bridge-0.1.2.tar.gz
Algorithm Hash digest
SHA256 19be7650d7daa98672439503199b5bd5fc778c3fc593c2ed2c03c5148848abd9
MD5 00bfa3e1b62546a4dc4295e5dba4b9df
BLAKE2b-256 d0e8c9f5daf2a1408f5ed2fe2fa22758feda5f4fdef3cb7f8fb6946ea5b8147e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pfc_mcp_bridge-0.1.2.tar.gz:

Publisher: publish-bridge.yml on yusong652/pfc-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 pfc_mcp_bridge-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pfc_mcp_bridge-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 36.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pfc_mcp_bridge-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2042cf79855727a4b20ba144701bd4207b0bc1358b1967112e02caf723684159
MD5 d3ac5bb9aa9f8f87a5cc99376de1f0df
BLAKE2b-256 cef6a4b699add28239c8eda8840d206caeb38d8a1dbe032d1e2e35600ca01d18

See more details on using hashes here.

Provenance

The following attestation bundles were made for pfc_mcp_bridge-0.1.2-py3-none-any.whl:

Publisher: publish-bridge.yml on yusong652/pfc-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