From e7d6ea3e6819ed32caeeefccd83f1ed69439f4f7 Mon Sep 17 00:00:00 2001 From: Joan Xie Date: Sat, 1 Nov 2025 20:37:15 -0700 Subject: [PATCH] Fix type error in buildManifest return type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed return type to use the specific v0.2 manifest schema type since the function returns a manifest with DEFAULT_MANIFEST_VERSION (0.2). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/cli/init.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cli/init.ts b/src/cli/init.ts index 7682e0f..b462ced 100644 --- a/src/cli/init.ts +++ b/src/cli/init.ts @@ -3,7 +3,8 @@ import { existsSync, readFileSync, writeFileSync } from "fs"; import { basename, join, resolve } from "path"; import { DEFAULT_MANIFEST_VERSION } from "../shared/constants.js"; -import type { McpbManifest } from "../types.js"; +import type { McpbManifestSchema as McpbManifestSchemaV0_2 } from "../schemas/0.2.js"; +import type * as z from "zod"; interface PackageJson { name?: string; @@ -878,7 +879,7 @@ export function buildManifest( resources: string; default_locale: string; }, -): McpbManifest { +): z.infer { const { name, displayName, version, description, authorName } = basicInfo; const { authorEmail, authorUrl } = authorInfo; const { serverType, entryPoint, mcp_config } = serverConfig;