MCPcopy Create free account
hub / github.com/modelcontextprotocol/mcpb / PackageJson

Interface PackageJson

src/cli/init.ts:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9import { DEFAULT_MANIFEST_VERSION } from "../shared/constants.js";
10
11interface PackageJson {
12 name?: string;
13 version?: string;
14 description?: string;
15 main?: string;
16 author?: string | { name?: string; email?: string; url?: string };
17 repository?: string | { type?: string; url?: string };
18 license?: string;
19}
20
21export function readPackageJson(dirPath: string): PackageJson {
22 const packageJsonPath = join(dirPath, "package.json");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…