Skip to content

Commit e7d6ea3

Browse files
Fix type error in buildManifest return type
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 <noreply@anthropic.com>
1 parent 7f40d5b commit e7d6ea3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cli/init.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { existsSync, readFileSync, writeFileSync } from "fs";
33
import { basename, join, resolve } from "path";
44

55
import { DEFAULT_MANIFEST_VERSION } from "../shared/constants.js";
6-
import type { McpbManifest } from "../types.js";
6+
import type { McpbManifestSchema as McpbManifestSchemaV0_2 } from "../schemas/0.2.js";
7+
import type * as z from "zod";
78

89
interface PackageJson {
910
name?: string;
@@ -878,7 +879,7 @@ export function buildManifest(
878879
resources: string;
879880
default_locale: string;
880881
},
881-
): McpbManifest {
882+
): z.infer<typeof McpbManifestSchemaV0_2> {
882883
const { name, displayName, version, description, authorName } = basicInfo;
883884
const { authorEmail, authorUrl } = authorInfo;
884885
const { serverType, entryPoint, mcp_config } = serverConfig;

0 commit comments

Comments
 (0)