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.3.tar.gz (28.8 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.3-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pfc_mcp_bridge-0.1.3.tar.gz
  • Upload date:
  • Size: 28.8 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.3.tar.gz
Algorithm Hash digest
SHA256 919fd334b0999414924ee0c006d7b2986c4f0d91648354dd602ba28bb0ebff77
MD5 647303a4a9b2c73ec1e6990eb67d7d3c
BLAKE2b-256 3fa85e825c3490ba3fe2b2ad386a49eda571bd9fec99b4844723745d31e23b0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pfc_mcp_bridge-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: pfc_mcp_bridge-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 39.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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c200115d71077246129815aa992566f58298accb9ee6cb1d079ad29a8c6b9c0e
MD5 c42cafd4078495c63f516cd866f2a961
BLAKE2b-256 6081646c61efe7159a33cf47c127422e02a312d43182e74a64f0c993e53ae6ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for pfc_mcp_bridge-0.1.3-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