Skip to main content

unserializable-type-handling

Stars9
Forks1
UpdatedMay 19, 2026 at 16:19

Handle PowerShell commands whose parameter types cannot be JSON-serialized by applying three-tier graceful fallback: skip optional parameters, skip unviable parameter sets, or skip entire commands — preserving server startup. WHEN: adding MCP tool schema generation, encountering PSObject/ScriptBlock/Stream parameters, debugging server startup failures due to unserializable types, or extending IsUnserializableType checks.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly