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
  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, 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 README: ../README.md.

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.1.tar.gz (25.3 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.1-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

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

Hashes for pfc_mcp_bridge-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a407a6f7bc539d0955ea93899af47757cc444d35f2c3902f208ddcc91ca0ce4f
MD5 0514938d6a80242a1e9ee68ed6b2b910
BLAKE2b-256 c14798722050676e3ef9f0e0f9001ba70469aad79ff00c8d3a9bc5398adfc6c0

See more details on using hashes here.

Provenance

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

Hashes for pfc_mcp_bridge-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59eb35b3b2b8477015001da51b49a98c086cd23ca6955f355a925e35f7a7ee31
MD5 6c2e68f1e0479f947f2fc73fd22d8690
BLAKE2b-256 b8db0a761b8e9af9fb762b636dd57bf94305ae455aab2e1aa0b0ea75ea596b31

See more details on using hashes here.

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

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