Logo van Cameo MCP Bridge

Cameo MCP Bridge

Community
ajhcs

MCP server bridging AI assistants to CATIA Magic / Cameo Systems Modeler for SysML/UML model creation, querying, and manipulation

Uitgeverajhcs
Repositorycameo-mcp-bridge
TaalPython
Forks
20
Sterren
50
Beschikbare tools
0
Transporttypestdio
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    Cameo MCP Bridge biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • Beschikbare tools: 0

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Belangstelling voor het opensourceproject

    Statistieken van de gekoppelde repository (sterren: 50, forks: 20).

Cameo MCP Bridge

An MCP (Model Context Protocol) server that connects AI coding assistants to CATIA Magic / Cameo Systems Modeler -- the industry-standard MBSE tool for SysML and UML modeling.

This lets Claude Code (or any MCP-compatible client) query, create, modify, inspect, validate, and visualize SysML/UML models inside a running Cameo instance through 162 tools covering capability negotiation, methodology-aware OOSEM workflows, semantic validation, state-machine semantics, elements, relationships, native matrices and tables, Relation Maps, reports, requirements import/export, validation suites, Teamwork/DataHub probes, diagrams, reusable verification, specifications, and guarded macro execution.

Claude Code  <--stdio/MCP-->  Python MCP Server  <--HTTP/REST-->  Java Plugin (Cameo JVM)

Why This Exists

MBSE tools like Cameo are powerful but manual. With this bridge, an AI assistant can:

  • Build models from requirements -- "Create a state machine for ATM operations with idle, active, and maintenance states"
  • Query and navigate models -- "Show me all blocks with the <<requirement>> stereotype"
  • Generate diagrams -- Create sequence diagrams, BDDs, IBDs, state machines, and populate them with elements
  • Export diagram images -- Get PNG snapshots of any diagram as base64
  • Run Groovy scripts -- Escape hatch for anything the structured tools don't cover
  • Inspect and modify specifications -- Read/write any UML property, tagged value, or constraint

How Is This Different?

ProjectApproachStatus
This projectTalks directly to Cameo's Java API via an embedded pluginProduction-tested
SysML v2 API MCP ServerConnects to SysML v2 REST API (tool-agnostic)Early stage, C++
EA MCP ServerEnterprise Architect integrationClosed-source, Windows-only
Dassault's prototypeSysML v2 + MCP demoPromotional, not shipped

This is the only open-source MCP server that integrates directly with a running Cameo instance, giving full access to SysML v1 models and the complete Cameo API surface.

Architecture

+-------------------+         +---------------------+         +---------------------------+
|                   |  stdio  |                     |  HTTP   |                           |
|  Claude Code /    |-------->|  Python MCP Server  |-------->|  Java Plugin              |
|  Any MCP Client   |<--------|  (cameo_mcp)        |<--------|  (CameoMCPBridgePlugin)   |
|                   |   MCP   |                     | JSON    |                           |
+-------------------+         +---------------------+         +---------------------------+
                                                               |                         |
                                                               |  127.0.0.1:18740        |
                                                               |                         |
                                                               |  Handler families:      |
                                                               |  - Project/elements     |
                                                               |  - Relationships        |
                                                               |  - Matrices/tables      |
                                                               |  - Diagrams/RelationMap |
                                                               |  - UI/snapshots/probes  |
                                                               |  - Validation/reports   |
                                                               |  - Import/export        |
                                                               |  - Optional integrations|
                                                               +---------------------------+
                                                                         |
                                                               +---------v---------+
                                                               | CATIA Magic /     |
                                                               | Cameo JVM         |
                                                               | (OpenAPI, EMF,    |
                                                               |  SessionManager)  |
                                                               +-------------------+

Data flow for a write operation:

  1. MCP client calls a tool (e.g., cameo_create_element)
  2. Python server translates to HTTP POST to the Java plugin
  3. Java handler dispatches to Swing EDT via EdtDispatcher
  4. On EDT: opens a SessionManager session, executes the operation, closes the session
  5. JSON response flows back through the layers

All write operations are session-wrapped for undo/redo support. Read operations run on the HTTP thread pool (Cameo model reads are thread-safe).

Prerequisites

  • CATIA Magic / Cameo Systems Modeler 2024x or newer (any bundle: Systems of Systems Architect, Cyber Systems Engineer, etc.)
  • Java 17 JDK available to Gradle
  • Python 3.10+ with pip
  • Gradle 8.x (wrapper included)

Installation

Quick Install

bash
git clone https://github.com/ajhcs/cameo-mcp-bridge.git
cd cameo-mcp-bridge

# Set your Cameo install path (default: D:/DevTools/CatiaMagic)
export CAMEO_HOME="/path/to/your/CatiaMagic"

# Optional: point the installer/Gradle at a Java 17 JDK explicitly
export JDK17_HOME="/path/to/jdk-17"

./install.sh

The install script:

  1. Builds the Java plugin with Gradle and passes CAMEO_HOME through automatically
  2. Deploys it to $CAMEO_HOME/plugins/com.claude.cameo.bridge/
  3. Creates or reuses mcp-server/.venv/ when not already inside a virtualenv
  4. Installs the Python MCP server into that environment
  5. Registers the MCP server with Claude Code when the claude CLI is available

Manual Install

1. Build the Java plugin:

bash
cd plugin
./gradlew assemblePlugin -PcameoHome="/path/to/CatiaMagic" -Pjdk17Home="/path/to/jdk-17"

Gradle must run on a Java 17 JDK. You can also set JDK17_HOME or JAVA17_HOME instead of passing -Pjdk17Home=....

2. Deploy to Cameo:

Copy the contents of plugin/build/plugin-dist/com.claude.cameo.bridge/ to:

<CAMEO_HOME>/plugins/com.claude.cameo.bridge/

3. Install the Python server:

bash
cd mcp-server
python3 -m venv .venv
. .venv/bin/activate
python -m pip install -e .

On Windows shells, use .venv\\Scripts\\activate instead.

4. Register with your MCP client:

For Claude Code:

bash
claude mcp add cameo-bridge --scope user -- /absolute/path/to/mcp-server/.venv/bin/python -m cameo_mcp.server

On Windows, the interpreter path is typically .venv\\Scripts\\python.exe.

For other MCP clients, configure stdio transport with the venv interpreter and command -m cameo_mcp.server.

5. Restart CATIA Magic, open a project, and verify:

> Check cameo status

If a newly added MCP tool returns HTTP 404 after an update, the Python server and Java plugin are out of sync. Rebuild/redeploy the plugin, then restart CATIA Magic so the new HTTP handlers are loaded.

The Python side now performs a capability handshake against the plugin before non-status operations. If cameo_status or cameo_get_capabilities reports compatibility.clientCompatible = false, stop and redeploy the matching plugin before proceeding.

The Python MCP layer also ships a Phase 2 methodology surface for bounded OOSEM workflows. These tools build named artifact recipes, workflow guidance, conformance checks, semantic validation, and compact review packets on top of the low-level bridge.

What's New In 2.3.5

  • Native Relation Map tools for create/configure, criteria templates, presentation inspection, graph readback, render/verify, snapshot diffing, and explicit refresh.
  • Live UI introspection tools for active diagram, browser selection, selected symbols, and raw diagram/presentation property dumps.
  • Probe-first route families for native validation, Report Wizard, requirements import/export, simulation, Teamwork, DataHub, variants, profiles, typed diagrams, and safety/cyber extensions.
  • JSON/CSV requirements import/export with dry-run defaults, explicit write gates, scoped export, and tests.
  • Native Report Wizard generation with template discovery and output-file receipts.
  • Safer long-running CATIA operations: request timeouts on the Python side and serialized write sessions on the Java side.

Configuration

Environment VariableDefaultDescription
CAMEO_BRIDGE_PORT18740HTTP port for the bridge (must match both sides)
JDK17_HOMEunsetOptional Java 17 home used by install.sh and Gradle
JAVA17_HOMEunsetAlternate Java 17 home override
CAMEO_MCP_STRUCTURED_RESPONSESdeprecatedStructured MCP object responses are now always used; this flag is kept only for backward compatibility with older docs

The Java plugin reads the port from system property cameo.mcp.port (default 18740). To change it, add to your Cameo *.vmoptions file:

-Dcameo.mcp.port=18741

And set CAMEO_BRIDGE_PORT=18741 in your environment before launching Claude Code.

For local health checks, the plugin now responds on both /api/v1/status and the legacy /status alias. The same applies to /api/v1/capabilities and /capabilities.

Tool Reference

Project, Session & UI (9 tools)

ToolDescription
cameo_statusCheck plugin health and report client/plugin compatibility
cameo_get_capabilitiesGet machine-readable endpoint/capability metadata
cameo_probe_bridgeProbe /status and /api/v1/status style endpoints and report the preferred local health paths
cameo_get_ui_stateInspect active project, active diagram, browser selection, and selected presentation elements
cameo_get_active_diagramGet the currently active CATIA Magic diagram
cameo_get_ui_selectionGet selected browser elements and selected diagram presentation IDs
cameo_get_projectGet project name, file path, and root model ID
cameo_save_projectSave the project to disk
cameo_reset_sessionForce-close a stuck editing session (recovery tool)

Methodology Packs (6 tools)

ToolDescription
cameo_list_methodology_packsList built-in methodology packs such as oosem
cameo_get_methodology_packGet one pack's phases, recipes, naming rules, and evidence structure
cameo_get_methodology_guidanceExplain which artifact is missing next and why
cameo_execute_methodology_recipeExecute a bounded recipe and return receipts, conformance, and review packet output
cameo_validate_methodology_recipeValidate normalized artifact snapshots against recipe expectations
cameo_generate_review_packetGenerate a compact evidence bundle and Markdown review packet without mutating the model

Elements (8 tools)

ToolDescription
cameo_query_elementsSearch by type, name, package, stereotype, with paging and compact/full views
cameo_get_elementGet full details of a single element
cameo_create_elementCreate a new model element
cameo_modify_elementChange name or documentation
cameo_delete_elementRemove an element and its children
cameo_get_containment_treeBrowse the project hierarchy
cameo_list_containment_childrenPage/filter immediate children for large models with compact/full views
cameo_apply_profileApply a profile to a model/package so custom stereotypes become usable

Supported element types: Package, Profile, Stereotype, Class, Block, Property, FlowProperty, Port, Interface, Activity, UseCase, Actor, StateMachine, State, Pseudostate, InitialState, Requirement, InterfaceBlock, ConstraintBlock, ValueType, DataType, Signal, Enumeration, Component, Comment, Constraint, CallBehaviorAction, OpaqueAction, ActivityPartition, InitialNode, ActivityFinalNode, FlowFinalNode, DecisionNode, MergeNode, ForkNode, JoinNode, InputPin, OutputPin, Operation

SysML aliases such as Block, Requirement, ConstraintBlock, InterfaceBlock, ValueType, and FlowProperty rely on the SysML profile being available. The bridge now treats missing required stereotypes as an error instead of silently producing plain UML elements. Pseudostate currently maps to an initial pseudostate in the MVP.

For large projects, prefer cameo_list_containment_children over cameo_get_containment_tree. The recursive tree endpoint is still available for compatibility, but it can produce very large responses on real models.

Stereotypes & Tagged Values (3 tools)

ToolDescription
cameo_apply_stereotypeApply a stereotype (e.g., <<block>>, <<requirement>>)
cameo_set_tagged_valuesSet tagged values on a stereotyped element
cameo_set_stereotype_metaclassesBind a stereotype to UML metaclasses using Cameo's supported API

If you create a custom profile through MCP, the typical sequence is:

  1. Create the Profile
  2. Create Stereotype elements inside it, optionally with metaclasses=[...]
  3. Call cameo_apply_profile on the target model/package
  4. Apply the new stereotypes to model elements

Relationships (2 tools)

ToolDescription
cameo_create_relationshipCreate a relationship between two elements
cameo_get_relationshipsQuery relationships for an element

Supported relationship types: Association, DirectedAssociation, Composition, Generalization, Dependency, ControlFlow, ObjectFlow, Transition, Connector, InformationFlow, ItemFlow, Allocate, Satisfy, Derive, Refine, Trace, Verify, Include, Extend

Connector supports nested-port partWithPort ownership. InformationFlow and ItemFlow support structured realizingConnector, conveyed, and SysML itemProperty payload data for IBD item-flow workflows. When you pass an IBD context element as ownerId, the bridge resolves the actual InformationFlow/ItemFlow containment to the nearest package because Cameo does not allow those relationships to be owned directly by a block.

Matrices & Generic Tables (8 tools)

ToolDescription
cameo_list_matrix_kindsList validated native matrix kinds, aliases, and example type domains
cameo_list_matricesList supported native matrix artifacts in the project
cameo_get_matrixRead one supported native matrix with rows, columns, and populated cells
cameo_create_matrixCreate a supported native matrix artifact
cameo_list_generic_tablesList native Generic Table artifacts
cameo_get_generic_tableRead one Generic Table with row, column, and cell data
cameo_list_generic_table_columnsDiscover possible Generic Table columns for an element or type
cameo_create_generic_tableCreate and configure a native Generic Table artifact

Supported matrix kinds: refine, derive, satisfy, allocation, dependency

These tools target Cameo's native matrix artifacts:

  • refine -> Refine Requirement Matrix
  • derive -> Derive Requirement Matrix
  • satisfy -> Satisfy Requirement Matrix
  • allocation -> SysML Allocation Matrix
  • dependency -> Dependency Matrix

This matrix family is separate from the diagram shape/path API. It manages native matrix artifacts and returns row/column/cell data directly.

cameo_create_matrix also accepts optional row_types and column_types lists so native matrix artifacts can be constrained to specific domains when the underlying matrix kind supports it. Use cameo_list_matrix_kinds to see the validated kind aliases and live-proven example type domains.

Relation Maps, Snapshots & Probes (22 tools)

ToolDescription
cameo_list_relation_mapsList native Relation Map artifacts in the project
cameo_get_relation_mapRead one Relation Map with persisted graph settings
cameo_create_relation_mapCreate and configure a native Relation Map artifact
cameo_configure_relation_mapUpdate native graph settings for an existing Relation Map
cameo_refresh_relation_mapExplicitly request CATIA native Relation Map refresh with timeout evidence
cameo_dump_relation_map_raw_settingsDump raw GraphSettings getter evidence
cameo_list_relation_map_presentationsInspect Relation Map presentation elements and counts
cameo_list_relation_map_criteria_templatesList bridge-known criteria templates captured from live UI evidence
cameo_set_relation_map_criteriaApply Relation Map dependency criteria with receipts
cameo_expand_relation_mapRequest native expansion and report reflected support/evidence
cameo_collapse_relation_mapRequest native collapse and report reflected support/evidence
cameo_render_relation_mapRender/export Relation Map evidence without implicit refresh by default
cameo_verify_relation_mapVerify graph and presentation evidence against caller-provided thresholds
cameo_compare_relation_mapsDiff two Relation Maps structurally
cameo_get_traceability_graphBuild a traceability graph from a Relation Map or model scope
cameo_create_snapshotCapture an in-memory evidence snapshot
cameo_list_snapshotsList captured snapshots
cameo_get_snapshotRead a captured snapshot
cameo_delete_snapshotDelete a captured snapshot
cameo_diff_snapshotsDiff two snapshots with bounded details
cameo_list_probe_templatesList built-in read-only probe templates
cameo_execute_probeExecute a controlled probe or restricted Java-reflection readback

Relation Map native refresh can block CATIA's EDT on large maps. The bridge keeps refresh opt-in for create/configure/render/criteria/expand/collapse paths; call cameo_refresh_relation_map deliberately when you need native UI refresh behavior.

Advanced Native Surfaces (42 tools)

FamilyToolsRelease status
Native validationcameo_get_validation_capabilities, cameo_list_validation_suites, cameo_run_native_validation, cameo_get_validation_result, cameo_run_validationRead-only/live-verified
Report Wizardcameo_get_report_capabilities, cameo_list_report_templates, cameo_generate_report_preview, cameo_generate_report, cameo_get_report_jobGeneration requires preview, allow_write=true, and explicit output options
Import/export and requirementscameo_get_import_export_capabilities, cameo_export_requirements, cameo_preview_requirements_import, cameo_apply_requirements_import, cameo_get_requirements_capabilities, cameo_export_requirements_preview, cameo_import_requirements_previewJSON/CSV live-verified; native ReqIF apply remains gated
Simulationcameo_get_simulation_capabilities, cameo_list_simulation_configurations, cameo_run_simulation_preview, cameo_run_simulation, cameo_get_simulation_result, cameo_terminate_simulationProbe/preview-first; execution requires explicit allow flags
Teamworkcameo_get_teamwork_capabilities, cameo_get_teamwork_project, cameo_preview_teamwork_commit, cameo_preview_teamwork_update, cameo_list_teamwork_descriptors, cameo_list_teamwork_branches, cameo_get_teamwork_history, cameo_get_teamwork_locksRead-only/probe-first
DataHubcameo_get_datahub_capabilities, cameo_list_datahub_sources, cameo_preview_datahub_syncPreview-only; does not emit credentials
Criteria/profile/variants/extensions/typed diagramsCriteria builders, profile summaries/previews, variant previews, extension scans/refusals, typed-diagram inspection/previewsProbe-first with guarded writes

These route families intentionally fail closed when optional CATIA plugins, licenses, or live proof are missing. Preview/refusal payloads are part of the public contract, not placeholder errors.

Diagrams (24 tools)

ToolDescription
cameo_list_diagram_typesList validated diagram request tokens, aliases, and native Cameo types
cameo_list_diagramsList all diagrams in the project
cameo_create_diagramCreate a new diagram (18 types supported)
cameo_add_to_diagramPlace a model element on a diagram canvas and return its presentationId
cameo_get_diagram_imageExport a diagram image with optional metadata-only, resize, and transcode controls
cameo_auto_layoutApply Cameo's built-in auto-layout
cameo_list_diagram_shapesList diagram shapes with paging, filtering, summary counts, and presentation IDs
cameo_get_shape_propertiesRead the current display properties of one diagram shape
cameo_move_shapesReposition/resize shapes on a diagram with per-item results
cameo_delete_shapesRemove shapes from a diagram (model elements preserved)
cameo_add_diagram_pathsDraw relationship paths between shapes on a diagram
cameo_set_shape_propertiesSet display properties (colors, compartment visibility, etc.) with receipts
cameo_set_shape_compartmentsApply normalized compartment visibility controls to one shape
cameo_set_transition_label_presentationApply a high-level state-transition label preset instead of guessing raw Cameo property names
cameo_set_item_flow_label_presentationApply a high-level item-flow/information-flow label preset for IBD cleanup
cameo_set_allocation_compartment_presentationApply a high-level allocation/full-port presentation preset for SysML BDD cleanup
cameo_repair_hidden_labelsAuto-show hidden labels using diagram-type-aware native repair defaults
cameo_repair_label_positionsReset likely-overlapping path labels with dry-run receipts
cameo_repair_conveyed_item_labelsForce conveyed-item/item-flow labels on eligible paths
cameo_normalize_compartment_presetsNormalize compartment/full-port visibility by diagram type
cameo_prune_diagram_presentationsRemove unwanted auto-displayed symbols while preserving requested presentations
cameo_prune_path_decorationsRemove child path decorations such as association end labels
cameo_reparent_shapesMove existing presentation elements under new container shapes
cameo_route_pathsUpdate path breakpoints, endpoints, and label reset behavior

Validated diagram request tokens: Class, Package, UseCase, Activity, Sequence, StateMachine, Component, Deployment, CompositeStructure, Object, Communication, InteractionOverview, Timing, Profile, BDD, IBD, Requirement Diagram, Parametric Diagram, RelationMap, Content Diagram

Use cameo_list_diagram_types if you want the accepted aliases too. Common forms such as InternalBlockDiagram, SysML IBD, ClassDiagram, and StateMachineDiagram are normalized to the validated token set automatically.

Verification (2 tools)

ToolDescription
cameo_verify_matrix_consistencyCheck matrix row/column membership, populated-cell count, dependency names, and density
cameo_verify_diagram_visualCheck rendered PNG validity, diagram/path presence, content coverage, and coarse overlap risk

These verification tools are Python-side wrappers over the bridge's native diagram and matrix readback. They are intended for repeatable regression checks, visual sanity validation, and lightweight quantitative validation without dropping to raw macros.

Semantic Validation (4 tools)

ToolDescription
cameo_verify_activity_flow_semanticsCheck connected behavior flow, initial/final reachability, and swimlane sanity on an activity diagram
cameo_verify_port_boundary_consistencyCheck interface-block flow-property ownership, duplicate vocabulary, and direction conflicts
cameo_verify_requirement_qualityCheck requirement IDs, non-blank text, and basic measurability/readiness
cameo_verify_cross_diagram_traceabilityCompare activity, interface, IBD, and requirements-to-architecture vocabulary/trace coverage

These tools are the semantics-first layer for MBSE review. They use bridge readback plus lightweight Python heuristics to catch the common failure mode where a diagram looks plausible but does not hold together as a reviewable model.

Auto Remediation (2 tools)

ToolDescription
cameo_detect_cross_diagram_inconsistenciesRun semantic checks and return previewable remediation receipts plus a patchPlan
cameo_build_cross_diagram_remediation_planTurn existing validation payloads into a non-mutating remediation plan

These tools do not mutate the model. They exist to bridge the gap between validation and safe repair by returning structured preview steps that later apply flows can consume.

Proofing (2 tools)

ToolDescription
cameo_proof_model_textCollect and proof requirements, comments, state/transition names, and diagram labels, with optional safe auto-apply
cameo_apply_proofing_patch_planApply a previously generated proofing patch plan to the live model

Proofing is intentionally scoped to high-confidence name/text fixes. The proof report includes findings, metrics, sections, and a preview patch plan even when auto_apply is off.

Methodology Workflows (4 tools)

ToolDescription
cameo_compare_expected_artifact_listDiff current artifacts against an expected methodology artifact list and return preview actions
cameo_validate_methodology_packageValidate a pack/recipe/package scope against the methodology definition
cameo_export_required_diagramsPlan or execute export of the methodology-required diagram set
cameo_assemble_ppt_pdfPlan or assemble PPT/PDF review packages from the exported diagram set

For PPTX assembly, install the Python dependencies from mcp-server/pyproject.toml so python-pptx is available in the MCP runtime environment.

State Machine Semantics (4 tools)

ToolDescription
cameo_get_transition_triggersRead explicit trigger semantics for one transition
cameo_set_transition_triggerCreate or replace one change-event or signal-event trigger
cameo_get_state_behaviorsRead entry, do, and exit state behaviors
cameo_set_state_behaviorsCreate or replace structured entry, do, and exit behavior payloads

These tools give the MCP layer first-class state semantics instead of forcing agents to approximate them through generic specification writes or raw macro fallback.

Specification (3 tools)

ToolDescription
cameo_get_specificationRead all UML properties, tagged values, and constraints
cameo_set_specificationWrite properties, tagged values, or constraint fields
cameo_set_usecase_subjectSet or clear the UML subject classifier for a use case

Macros (1 tool)

ToolDescription
cameo_execute_macroExecute arbitrary Groovy scripts inside the Cameo JVM

The macro tool is an escape hatch for operations not covered by the structured tools. Scripts have full access to the Cameo OpenAPI, with project, application, primaryModel, and ef (ElementsFactory) pre-injected into the script context.

Important: Scripts that modify the model must manage their own sessions:

groovy
import com.nomagic.magicdraw.openapi.uml.SessionManager

SessionManager.getInstance().createSession(project, "My operation")
try {
    // ... modify model ...
    SessionManager.getInstance().closeSession(project)
} catch (Exception e) {
    SessionManager.getInstance().cancelSession(project)
    throw e
}

If a macro fails mid-session, use cameo_reset_session to recover.

Usage Examples

Create a SysML Block

Create a block called "Sensor" in the root model package

The AI will:

  1. Call cameo_get_project to find the root model ID
  2. Call cameo_create_element with type "Block", name "Sensor", and the root model ID as parent

Build A State Machine

Create a state machine for an ATM with states OFF, IDLE, ACTIVE, and MAINTENANCE.
Add an initial pseudostate and transitions: initial -> OFF, OFF -> IDLE on startup,
IDLE -> ACTIVE on card insert, ACTIVE -> IDLE on transaction complete, and any state
-> MAINTENANCE on service request.

Query and Modify

Find all requirements in the project and show me their IDs and text

Export Diagrams

Export the "System Overview" diagram as a PNG and save it to my desktop

Run a Groovy Script

Run a macro that lists all profiles loaded in the current project

Known Limitations

Diagram Layout (Primary Pain Point)

The bridge builds models correctly -- elements, relationships, directionality, stereotypes, and structure all come out right. The main gap is diagram presentation: layout, spacing, and visual properties of complex diagrams often need manual adjustment in Cameo's GUI.

cameo_list_diagram_shapes now discovers nested presentation elements recursively, but complex nested editing is still incomplete. Sequence diagrams, composite states, and other deeply nested presentations can still require manual cleanup or Groovy fallbacks. This means:

What Doesn't WorkWhy
Spacing messages vertically in sequence diagramsMessage arrows aren't top-level shapes; no Y-position control during creation
Moving messages relative to combined fragments (ref boxes)Same -- messages and fragments are nested presentation elements
Self-messages (lifeline to itself)PresentationElementsManager.createPathElement() fails when source == target
Showing region names in composite statesRegion labels are nested inside the state shape; can't be found or configured
Resizing nested states to show full entry/exit behaviorsSub-states in regions aren't accessible through the flat shape listing
Controlling transition label text displayTransition paths inside composite states are nested

Workarounds:

  • Use cameo_execute_macro with Groovy scripts that access nested presentation elements directly
  • Use cameo_auto_layout (works well for simple diagrams, less so for complex state machines)
  • For sequence diagrams: the model is correct, so manual drag-and-drop in Cameo takes 5-10 minutes
  • For state machines: widen shapes and toggle region name visibility manually

Current direction: Keep expanding structured editing for nested presentation elements so fewer workflows require macros.

Not Yet Implemented

  • Native ReqIF apply -- bridge-owned JSON/CSV requirements import/export is live-verified; native ReqIF apply remains preview/refusal-only until a disposable ReqIF roundtrip is captured
  • Optional-product writes -- Teamwork, DataHub, simulation, variants, and safety/cyber extension families expose capability probes and safe previews first; writes require separate live proof
  • Remove stereotype -- can apply but not remove
  • Delete/rename diagrams -- diagrams can be created and populated but not deleted or renamed through the bridge
  • Element reparenting -- cannot move elements between packages
  • Undo/redo -- sessions support undo in Cameo's UI, but no MCP tool to trigger it
  • Bulk operations -- creating N elements requires N sequential API calls
  • Model change notifications -- purely request/response; no event subscription
  • File-based diagram export -- cameo_get_diagram_image returns base64 over the wire; no option to save directly to a file path (use cameo_execute_macro with ImageExporter.export(dpe, ImageExporter.PNG, file) as a workaround)

API Gaps

  • DurationConstraint / TimeConstraint creation through macros is unreliable due to complex ownership chains in the Cameo API (DurationInterval.setMin/setMax requires Duration instances with specific ownership that the API rejects); add these manually in Cameo's UI
  • Large diagram images can still exceed MCP client token limits at full resolution; prefer cameo_get_diagram_image(include_image=false) for metadata-only reads or use max_width / max_height with format="jpeg" before dropping to a macro-based file export
  • Direct file export is still not first-class; if you need the bridge to save a diagram straight to disk, use cameo_execute_macro with ImageExporter.export(...)
  • Session recovery edge case -- if a macro crashes mid-transaction, cameo_reset_session may itself throw TransactionAlreadyCommitedException; in this case, saving and reopening the project is the most reliable recovery

Compatibility

  • Tested with CATIA Magic Systems of Systems Architect 2024x
  • Should work with any Cameo Systems Modeler 2024x bundle (2024x+)
  • Requires Groovy script engine (bundled with Cameo) for macro execution
  • The Gradle build requires access to Cameo's lib/ directory for compile-time dependencies

Security Considerations

This bridge is designed for local development use only.

  • The HTTP server binds to 127.0.0.1 (localhost only) -- not accessible from the network
  • There is no authentication on the HTTP endpoints
  • The cameo_execute_macro tool executes arbitrary Groovy code inside the Cameo JVM with full access to the filesystem, network, and classloader
  • CORS headers are set to * (wildcard) -- any webpage in a local browser could theoretically make requests to the bridge

Do not expose the bridge port to the network, run it on shared/multi-user machines without additional access controls, or use it in production environments without adding authentication.

Project Structure

cameo-mcp-bridge/
  mcp-server/                          # Python MCP server
    cameo_mcp/
      __init__.py
      client.py                        # HTTP client for the Java plugin
      server.py                        # MCP tool definitions (162 tools)
      verification.py                  # reusable diagram/matrix verification helpers
      methodology/                     # Phase 2 pack registry + recipe runtime
        registry.py
        runtime.py
        service.py
    pyproject.toml
  plugin/                              # Java Cameo plugin
    src/com/claude/cameo/bridge/
      CameoMCPBridgePlugin.java        # Plugin entry point
      HttpBridgeServer.java            # Embedded HTTP server + routing
      handlers/
        ProjectHandler.java            # Project info, save
        ElementQueryHandler.java       # Element search, get, relationships
        ElementMutationHandler.java    # Create, modify, delete elements
        RelationshipHandler.java       # Create relationships
        MatrixHandler.java             # Native matrix artifacts
        GenericTableHandler.java       # Native Generic Tables
        DiagramHandler.java            # Full diagram lifecycle
        RelationMapHandler.java        # Relation Map graph/settings/rendering
        UiStateHandler.java            # Active diagram and selection state
        SnapshotHandler.java           # In-memory evidence snapshots
        ValidationHandler.java         # Native validation suites
        ReportWizardHandler.java       # Report Wizard templates/generation
        ImportExportHandler.java       # Requirements import/export
        CriteriaHandler.java           # Criteria expression helpers
        TeamworkHandler.java           # Teamwork read-only probes
        DataHubHandler.java            # DataHub capability/source probes
        SimulationHandler.java         # Simulation preview/run facade
        ExtensionProbeHandler.java     # Safety/cyber extension probes
        ContainmentTreeHandler.java    # Containment tree browsing
        SpecificationHandler.java      # Specification read/write
        MacroHandler.java              # Groovy script execution
      util/
        EdtDispatcher.java             # EDT dispatch with session management
        ElementSerializer.java         # Element to JSON serialization
        JsonHelper.java                # JSON parsing utilities
    plugin.xml                         # Cameo plugin descriptor
    build.gradle                       # Gradle build config
  install.sh                           # One-step installer
  LICENSE
  README.md

Development

Building the Plugin

bash
cd plugin
./gradlew assemblePlugin -PcameoHome="/path/to/CatiaMagic"

The output goes to plugin/build/plugin-dist/com.claude.cameo.bridge/.

Running the MCP Server Standalone

bash
python -m cameo_mcp.server

This starts the MCP server on stdio. It will fail to connect to the Java plugin unless Cameo is running with the plugin loaded.

Adding a New Tool

  1. Add the HTTP handler method in the appropriate Java handler class
  2. Register the route in HttpBridgeServer.registerHandlers()
  3. Add the async client function in client.py
  4. Add the MCP tool function with docstring in server.py

The MCP tool docstrings are critical -- they are the AI's instruction manual. Include valid values, examples, common mistakes, and cross-references to related tools.

Contributing

Issues and pull requests welcome. If you're building something similar for other MBSE tools, let's talk.

Areas where contributions would be especially valuable:

  • Additional element and relationship type support
  • Bulk operation endpoints
  • Test coverage
  • Support for Cameo Teamwork Cloud projects
  • SysML v2 profile support

License

MIT

Related: MBSE Agents

Use with mbse-agents for standards-aware modeling across aerospace, defense, automotive, and medical device domains. The agents provide practitioner-level domain knowledge (ARP4754A, DoDAF, ISO 26262, IEC 62304). This bridge provides direct tool access. Together: an AI that knows the standards at the clause level AND can modify your Cameo model.

Gebruik Cameo MCP Bridge MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra Cameo MCP Bridge is verbonden, kun je de verbinding dus met verschillende AI-modellen in TypingMind gebruiken, zonder die voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg Cameo MCP Bridge toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus op ‘Gereed’ staat.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van Cameo MCP Bridge.
  4. Sla de serverlijst op.
  5. Vernieuw de pagina als je wilt controleren of de connectorstatus nog op ‘Gereed’ staat.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "cameo-mcp-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van Cameo MCP Bridge in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van Cameo MCP Bridge in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je Cameo MCP Bridge gebruiken om me hiermee te helpen?
Cameo MCP Bridge
Zeker. Ik heb het gelezen.
Dit vond ik met Cameo MCP Bridge.

Veelgestelde vragen

Waarvoor wordt de MCP-server Cameo MCP Bridge gebruikt?

Cameo MCP Bridge is een MCP-server waarmee compatibele AI-clients toegang krijgen tot externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik Cameo MCP Bridge MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je Cameo MCP Bridge gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom Cameo MCP Bridge MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als Cameo MCP Bridge verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik Cameo MCP Bridge MCP met TypingMind?

Cameo MCP Bridge werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt Cameo MCP Bridge MCP in TypingMind?

Cameo MCP Bridge biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om Cameo MCP Bridge MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als Cameo MCP Bridge authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇