933 B
933 B
status, priority, issue_id, tags, dependencies
| status | priority | issue_id | tags | dependencies | |||
|---|---|---|---|---|---|---|---|
| pending | p2 | 001 |
|
Extract GeminiMcpServer as named type
Problem Statement
The GeminiBundle inlines the MCP server type definition, and the converter uses NonNullable<GeminiBundle["mcpServers"]>[string] which is hard to read. Other targets (Cursor) define a named type.
Findings
src/types/gemini.tslines 20-26: inline type in GeminiBundlesrc/converters/claude-to-gemini.tsline 117:NonNullable<GeminiBundle["mcpServers"]>[string]
Proposed Solution
Extract a named GeminiMcpServer type in src/types/gemini.ts and use it in both the bundle type and converter.
Acceptance Criteria
GeminiMcpServertype exists insrc/types/gemini.tsGeminiBundle.mcpServersusesRecord<string, GeminiMcpServer>- Converter uses
GeminiMcpServerinstead of indexed access type - Tests still pass