Skip to content

Add load_rotor_from_file MCP tool#1261

Merged
raphaeltimbo merged 1 commit intopetrobras:mainfrom
raphaeltimbo:add-mcp-load-rotor-tool
Feb 14, 2026
Merged

Add load_rotor_from_file MCP tool#1261
raphaeltimbo merged 1 commit intopetrobras:mainfrom
raphaeltimbo:add-mcp-load-rotor-tool

Conversation

@raphaeltimbo
Copy link
Collaborator

@raphaeltimbo raphaeltimbo commented Feb 14, 2026

Summary

  • Add load_rotor_from_file MCP tool that loads a rotor from a .json or .toml file into server state, enabling AI-assisted analysis of user-saved rotor models
  • Include a compressor example JSON file in ross/tests/data/ for testing and demonstration

Test plan

  • Verify the MCP tool loads .json rotor files correctly
  • Verify the MCP tool loads .toml rotor files correctly
  • Verify appropriate error messages for missing files and unsupported formats
  • Verify the loaded rotor can be used with other MCP tools (modal analysis, Campbell diagram, etc.)

Add a new MCP tool that loads a rotor from a .json or .toml file
into server state, enabling AI-assisted analysis of user-saved
rotor models. Also include a compressor example JSON file for
testing and demonstration.
@codecov-commenter
Copy link

codecov-commenter commented Feb 14, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.54%. Comparing base (a71eded) to head (22e3667).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
ross/mcp/server.py 0.00% 14 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1261      +/-   ##
==========================================
- Coverage   77.57%   77.54%   -0.03%     
==========================================
  Files          48       48              
  Lines       13310    13361      +51     
==========================================
+ Hits        10325    10361      +36     
- Misses       2985     3000      +15     
Files with missing lines Coverage Δ
ross/mcp/server.py 0.00% <0.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d4aa6fc...22e3667. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@raphaeltimbo raphaeltimbo merged commit 7648887 into petrobras:main Feb 14, 2026
9 checks passed
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