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
Running: True
Features: PFC, Interrupt, Diagnostic
============================================================
Task loop running (Ctrl+C to stop)...
After startup banner, press Enter in the PFC Python console to start the task loop.
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, runpip install websockets==9.1Connection failed: check the bridge is running and port9001is availableNo task execution: keeppfc_mcp_bridge.start()running in the PFC process
For full MCP client setup, see the main README: ../README.md.
License: MIT (../LICENSE).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pfc_mcp_bridge-0.1.1.tar.gz.
File metadata
- Download URL: pfc_mcp_bridge-0.1.1.tar.gz
- Upload date:
- Size: 25.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a407a6f7bc539d0955ea93899af47757cc444d35f2c3902f208ddcc91ca0ce4f
|
|
| MD5 |
0514938d6a80242a1e9ee68ed6b2b910
|
|
| BLAKE2b-256 |
c14798722050676e3ef9f0e0f9001ba70469aad79ff00c8d3a9bc5398adfc6c0
|
Provenance
The following attestation bundles were made for pfc_mcp_bridge-0.1.1.tar.gz:
Publisher:
publish-bridge.yml on yusong652/pfc-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pfc_mcp_bridge-0.1.1.tar.gz -
Subject digest:
a407a6f7bc539d0955ea93899af47757cc444d35f2c3902f208ddcc91ca0ce4f - Sigstore transparency entry: 947022967
- Sigstore integration time:
-
Permalink:
yusong652/pfc-mcp@74fb2259d7ca382b70e6e0a3dacad65f60a765eb -
Branch / Tag:
refs/tags/bridge-v0.1.1 - Owner: https://github.com/yusong652
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-bridge.yml@74fb2259d7ca382b70e6e0a3dacad65f60a765eb -
Trigger Event:
push
-
Statement type:
File details
Details for the file pfc_mcp_bridge-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pfc_mcp_bridge-0.1.1-py3-none-any.whl
- Upload date:
- Size: 35.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59eb35b3b2b8477015001da51b49a98c086cd23ca6955f355a925e35f7a7ee31
|
|
| MD5 |
6c2e68f1e0479f947f2fc73fd22d8690
|
|
| BLAKE2b-256 |
b8db0a761b8e9af9fb762b636dd57bf94305ae455aab2e1aa0b0ea75ea596b31
|
Provenance
The following attestation bundles were made for pfc_mcp_bridge-0.1.1-py3-none-any.whl:
Publisher:
publish-bridge.yml on yusong652/pfc-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pfc_mcp_bridge-0.1.1-py3-none-any.whl -
Subject digest:
59eb35b3b2b8477015001da51b49a98c086cd23ca6955f355a925e35f7a7ee31 - Sigstore transparency entry: 947022976
- Sigstore integration time:
-
Permalink:
yusong652/pfc-mcp@74fb2259d7ca382b70e6e0a3dacad65f60a765eb -
Branch / Tag:
refs/tags/bridge-v0.1.1 - Owner: https://github.com/yusong652
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-bridge.yml@74fb2259d7ca382b70e6e0a3dacad65f60a765eb -
Trigger Event:
push
-
Statement type: