Skip to content

Commit

Permalink
More zod schema updates
Browse files Browse the repository at this point in the history
  • Loading branch information
andylouisqin committed Dec 22, 2024
1 parent c3c3245 commit 6cd4679
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/commands/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ const MCPServer = z.object({
isOfficial: z.boolean().default(false),
sourceUrl: z.string().url(),
distribution: z.object({
type: z.enum(['npm', 'pip']),
package: z.string(),
}).optional(),
type: z.enum(['npm', 'pip', 'source']),
package: z.string().optional(),
}),
license: z.string().optional(),
runtime: z.enum(['node', 'python', 'other']),
runtime: z.enum(['node', 'python', 'go', 'other']),
config: MCPConfig,
})

// Infer types from schemas
type MCPServerType = z.infer<typeof MCPServer>
export type MCPServerType = z.infer<typeof MCPServer>

export default class Install extends Command {
// Mock function to simulate registry API
Expand Down

0 comments on commit 6cd4679

Please sign in to comment.