Skip to content

Add MCP tools for creating/updating signals, blocks, and interfaces#6

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/add-signal-block-interface-tools
Draft

Add MCP tools for creating/updating signals, blocks, and interfaces#6
Copilot wants to merge 2 commits into
mainfrom
copilot/add-signal-block-interface-tools

Conversation

Copy link
Copy Markdown

Copilot AI commented May 20, 2026

Summary

This PR adds dedicated MCP tools for creating and modifying signals, blocks (part definitions and parts), and interfaces.

Changes

  • Added new creation tools in ModelCreationTool.cs:
    • CreateSignalDefinition (mapped to ItemDefinition)
    • CreateSignal (mapped to ItemUsage)
    • CreateBlockDefinition (mapped to PartDefinition)
    • CreatePart (mapped to PartUsage)
    • CreateInterfaceDefinition
    • CreateInterface
  • Added new modification tools in ModelCreationTool.cs:
    • UpdateSignalDefinition
    • UpdateSignal
    • UpdateBlockDefinition
    • UpdatePart
    • UpdateInterfaceDefinition
    • UpdateInterface
  • Added helper reuse for named element creation through the existing generic element creation tool path.
  • Updated README.md tool inventory to include all new tools.
  • Added ModelCreationToolsSurfaceTests.cs to validate:
    • Tool method presence and return types
    • MCP tool attribute exposure and descriptions
    • Availability of mapped metamodel types (ItemDefinition, ItemUsage, PartDefinition, PartUsage, InterfaceDefinition, InterfaceUsage)

Validation

  • dotnet build csharp-mcp-example.sln
  • dotnet test csharp-mcp-example-test/csharp-mcp-example-test.csproj --filter "Category!=Integration" ✅ (50 passed)
  • Full test run includes 2 integration failures requiring localhost SysML API server (localhost:9000) (pre-existing environment dependency).
  • Parallel validation completed:
    • Code review ✅
    • CodeQL ✅ (0 alerts)

Copilot AI and others added 2 commits May 20, 2026 12:33
Agent-Logs-Url: https://github.com/hni-ase/SysMLV2-mcp/sessions/9478cd3e-df3e-496d-b9c8-eab7a8a6572a

Co-authored-by: mahmood1994ha <13472694+mahmood1994ha@users.noreply.github.com>
Agent-Logs-Url: https://github.com/hni-ase/SysMLV2-mcp/sessions/9478cd3e-df3e-496d-b9c8-eab7a8a6572a

Co-authored-by: mahmood1994ha <13472694+mahmood1994ha@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants