fix(typecheck): add MCP component view types - #1564
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
📜 Recent review details⏰ Context from checks skipped due to timeout of 900000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🧰 Additional context used📓 Path-based instructions (3)**/*.{ts,tsx,js,jsx,py}📄 CodeRabbit inference engine (CONTRIBUTING.md)
Files:
**/*⚙️ CodeRabbit configuration file
Files:
**⚙️ CodeRabbit configuration file
Files:
🔇 Additional comments (15)
📝 WalkthroughWalkthroughThis PR adds comprehensive TypeScript typing to MCP components. A new types.ts module introduces ChangesMCP Component Typing
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 5 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
jatmn
left a comment
There was a problem hiding this comment.
Thanks for the contribution. I do not see any actionable issues from my review.
@kevincodex1 LGTM
Refs #1486
Summary
unknown/never[]OptionWithDescriptiontypeWhy
The
/mcpUI imports./types.js, but the source file was missing. That creates directTS2307failures and masks follow-onnever[]andunknowninference errors in the MCP list, server menus, and tool views.Duplicate check
I checked open PR file lists before opening this. The only overlap is broad feature PR #1257, which also adds an MCP types file while changing many unrelated areas. This PR is the focused #1486 cleanup: it adds the shared MCP component types and fixes the local menu/view-state inference errors without the unrelated feature changes.
Validation
bun run typecheckstill reports unrelated pre-existing diagnostics, but this branch reduces diagnostic lines from 1043 to 1012.ElicitationDialoghook arity errors.Summary by CodeRabbit