Keep generated MCP schemas strict-client compatible by avoiding nullable enum signatures.
61
52%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./.squad/skills/mcp-schema-enum-regression/SKILL.mdUse this when an MCP client rejects tool schemas because enum arrays include invalid sentinel members (often surfaced as null or empty strings).
ListToolsAsync() and recurse every schema node that contains an enum array.action parameter as a required enum when you want discoverable action lists.[FromString] enum paths, keep the string transport shape and let the existing service-side parser do the enum conversion.src/ExcelMcp.Generators.Mcp/McpToolGenerator.cs: required action enum, optional enum-like inputs as strings, local parse for direct enum parameters.tests/ExcelMcp.McpServer.Tests/Integration/Tools/GeneratedToolSchemaEnumRegressionTests.cs: recursive schema regression plus focused optional-parameter check..g.cs output by hand.action; scan every enum-bearing property across the tool catalog.468809e
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.