Commit a9502fe
refactor: Simplify code for clarity and maintainability
- Simplified simulation.py helper methods
- Unified error handling with _require_sim() helper
- Simplified conditional logic in get_* methods
- Improved consistency in type annotations
- Refactored viewer_client.py error handling
- Extracted _try_connect() and _cleanup_socket() helper methods
- Removed nested function in send_command()
- Simplified ping() retry logic
- Improved code readability with constants
- Cleaned up MCP server helper functions
- Removed duplicate tool definitions (lines 210-320)
- Simplified _redact_arguments() with dictionary comprehension
- Improved formatting consistency in helper functions
- Fixed type annotations
- Changed 'any' to 'Any' in menagerie_loader.py
- Added proper Optional types across files
All functionality preserved - only structural improvements made.
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 5217b2d commit a9502fe
File tree
64 files changed
+951
-1552
lines changed- .serena
- configs
- demos
- docs
- reports
- scripts
- src/mujoco_mcp
- tests
- integration
- mcp
- performance
- rl
- tools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
64 files changed
+951
-1552
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
This file was deleted.
0 commit comments