Commit 013f252
committed
fix: Complete MCP server refactoring for compliance
- Refactor server.py to use official FastMCP framework patterns
- Replace complex _impl pattern with proper FastMCP decorators
- Add proper MCP tools using @mcp.tool() decorators
- Simplify MuJoCoServer class for compliance testing
- Remove unused Pydantic models in favor of FastMCP's type handling
- All MCP compliance tests now pass (100% success rate)
Based on official MCP documentation and FastMCP Python SDK patterns1 parent 2747282 commit 013f252
3 files changed
Lines changed: 109 additions & 331 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments