MCPcopy Index your code
hub / github.com/codeaashu/claude-code / parseAndValidateManifestFromText

Function parseAndValidateManifestFromText

src/utils/dxt/helpers.ts:39–51  ·  view source on GitHub ↗
(
  manifestText: string,
)

Source from the content-addressed store, hash-verified

37 * Parses and validates a DXT manifest from raw text data.
38 */
39export async function parseAndValidateManifestFromText(
40 manifestText: string,
41): Promise<McpbManifest> {
42 let manifestJson: unknown
43
44 try {
45 manifestJson = jsonParse(manifestText)
46 } catch (error) {
47 throw new Error(`Invalid JSON in manifest.json: ${errorMessage(error)}`)
48 }
49
50 return validateManifest(manifestJson)
51}
52
53/**
54 * Parses and validates a DXT manifest from raw binary data.

Callers 1

Calls 3

jsonParseFunction · 0.85
validateManifestFunction · 0.70
errorMessageFunction · 0.50

Tested by

no test coverage detected