Tidy3D MCP
tidy3d-mcp is the independently installable and released implementation of the Tidy3D MCP
runtime. It exposes the remote FlexAgent tools and, when an authenticated compatible editor bridge
is already active, Tidy3D local/editor tools over stdio.
The distribution and command are both named tidy3d-mcp. A separate tidy3d mcp command in the
Tidy3D client may delegate to this package, but this package does not depend on that facade.
Run
uvx --from tidy3d-mcp==0.16.6 tidy3d-mcp
The server resolves the FlexAgent API key in this order:
--api-keySIMCLOUD_APIKEYTIDY3D_BASE_DIRconfig locations~/.config/tidy3d/config.tomlunder[web].apikey~/.tidy3d/config
REMOTE_MCP_URL can replace the default https://flexagent.simulation.cloud/ endpoint. The URL is
forwarded exactly, including a custom path.
The established marketplace compatibility modes remain supported:
- Flex RF launches the default command and supplies
package="flex-rf"to the remote documentation tools. - PhotonForge launches
tidy3d-mcp --product photonforge, which retains its branded remote documentation and feedback tools and never advertises Tidy3D editor tools.
Local editor tools
The server never installs, registers, recommends, bootstraps, or launches an editor extension. It starts normally when no bridge is present and exposes only the remote FlexAgent surface.
An editor publishes a private per-window discovery record with schemaVersion: 1,
protocolVersion: 1, a loopback URL, a session token, workspace roots, and capabilities. The server
authenticates POST /viewer/ping and advertises only tools whose complete capability requirements
are present. Unknown capabilities are ignored. An unsupported protocol, malformed manifest, failed
authentication, or unavailable bridge exposes no local tools.
The extension removes its registration during normal shutdown. If authenticated discovery instead proves that an unchanged private registration points to a refused or incompatible endpoint, the MCP consumer removes that exact stale record. It preserves timed-out, replaced, malformed, untrusted, and symlinked records.
The #19281 base bridge advertises viewer.open and viewer.control; the #19517 adapter adds
python.detect, viewer.simulations, viewer.validate, and the receipt-backed
viewer.file.open identity route. The package withholds open_simulation, rotate_viewer,
capture_viewer, and set_structure_visibility unless the complete identity and operation
requirements are present, rather than guessing an opaque viewer ID.
The provider-backed local surface is:
detect_python list_simulations validate_simulation
open_simulation rotate_viewer capture_viewer
set_structure_visibility render_report open_report
get_report set_report_step
Generic viewer controls, results inspection, and annotation tools land with the extension routes that provide their complete bounded contracts. They are not advertised or defined speculatively in this package.
Source operations accept saved local .py or .ipynb paths only. They do not forward inline or
base64 source. Validation may return session-scoped artifact receipts; open_simulation opens HDF5
only through an artifact ID or the exact registered artifact path/URI. Report operations accept a
saved workspace .qmd and preserve the renderer command, working directory, environment, and
bounded stdout/stderr in their structured result.
Explicit bridge override
Discovery is the normal path. Tests and controlled integrations may select one bridge explicitly, but URL and token must be supplied together:
tidy3d-mcp \
--viewer-bridge http://127.0.0.1:5123 \
--viewer-bridge-token "$TIDY3D_VIEWER_BRIDGE_TOKEN"
TIDY3D_VIEWER_BRIDGE_URL and TIDY3D_VIEWER_BRIDGE_TOKEN provide the same authenticated override.
The legacy unauthenticated URL variable is ignored unless a token is also present.
Develop and release
uv sync --locked
uv run ruff format --check src tests
uv run ruff check src tests
uv run pyrefly check
uv run pytest
uv build
uv run tidy3d-mcp --version
The machine-readable local tools/list acceptance matrix lives at
tests/fixtures/tools_list_matrix.json. Publishing is owned by
.github/workflows/frontend_tidy3d-mcp.yaml, whose trusted publisher targets this directory.
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 tidy3d_mcp-0.16.6.tar.gz.
File metadata
- Download URL: tidy3d_mcp-0.16.6.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ffedd0729d2ae2e84aa442a46a2b05580ca4cda3a89f12f404b63789f686f24
|
|
| MD5 |
2526ee66803752722f57cc2792fe7bcd
|
|
| BLAKE2b-256 |
03a05aa75075b0bcdf946e4abfe53aedb77aabdefab9d91060fe67dd8b6ab33a
|
File details
Details for the file tidy3d_mcp-0.16.6-py3-none-any.whl.
File metadata
- Download URL: tidy3d_mcp-0.16.6-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b193cc38736d36243eb7ae3fcff59d8b887470352dde274964cf8f8456a1a98
|
|
| MD5 |
1b6dd4a433744b55a9f41a4b80957708
|
|
| BLAKE2b-256 |
017b563e460f139a978f4ef48f6c5c1c50e8f3e5c978031454564f831f398891
|