refactor(cli): replace Zod with ArkType everywhere - #2729
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary (AI generated)
cli/src/schemas/to ArkType, matching the backend validation stack@modelcontextprotocol/sdkv1 to@modelcontextprotocol/serverv2 beta so tools can register ArkType/Standard SchemainputSchemadirectlyzoddependencies from root and CLIpackage.json(Zod may still appear transitively via MCP/knip)Motivation (AI generated)
Backend validation already standardized on ArkType + Standard Schema. Keeping Zod only in the CLI duplicated dependencies and patterns. MCP SDK v2 accepts ArkType natively, so we can drop Zod from our direct dependency tree.
Business Impact (AI generated)
Smaller/simpler CLI dependency surface and one validation library across Capgo backend + CLI. MCP tool schemas stay LLM-friendly via ArkType
.describe()metadata. Note: MCP server package is currently on a beta release.Test Plan (AI generated)
bun run cli:lintbun run cli:typecheckbun run cli:buildtest-upload-validation,test-mcp-live-update-onboarding,test-mcp-onboarding,test-mcp-build-tools,test-mcp-credentials-manage,test-mcp-oauth-reopen,test:mcp)Generated with AI
Made with Cursor
Summary by CodeRabbit