What's Changed
Refactoring & Improvements
-
Improved MCP Schema Naming and Validation: Refactored MCP schema naming for better clarity and implemented proper validation
- Renamed schema types for better semantic meaning
- Implemented proper validation in
RulesyncMcp.validate()to validate JSON structure against schema - Added modularMcp-specific validation requiring descriptions for all servers
- Implemented validation in
ModularMcp.validate()with schema-based validation
-
Simplified MCP Configuration Handling: Streamlined MCP configuration API
- Simplified
validate()method using zod's safeParse - Removed unnecessary parameter passing and redundant type checks
- Improved getter method naming for clarity (
getExposedMcpServers,getModularizedMcpServers) - Return raw JSON from
getJson()for consistency
- Simplified
-
Refactored MCP Configuration Classes: Improved code organization
- Moved MCP schema definitions to
src/types/mcp.tsfor better organization - Removed
validateparameter fromAiFileconstructor for more flexible usage - Fixed modular MCP filtering logic in exposed/hidden server methods
- Ensured proper behavior for both standard and modular MCP modes
- Moved MCP schema definitions to
-
Updated CLI Commands: Improved compatibility
- Replaced
pnpxwithnpx -yfor better compatibility and consistency
- Replaced