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

Function createTestManifest

test/icon-validation.test.ts:133–157  ·  view source on GitHub ↗
(filename: string, iconConfig: { icon?: string })

Source from the content-addressed store, hash-verified

131 });
132
133 function createTestManifest(filename: string, iconConfig: { icon?: string }) {
134 const manifest = {
135 manifest_version: "0.3",
136 name: "test-extension",
137 version: "1.0.0",
138 description: "Test extension for icon validation",
139 author: {
140 name: "Test Author",
141 },
142 server: {
143 type: "node",
144 entry_point: "server/index.js",
145 mcp_config: {
146 command: "node",
147 args: ["${__dirname}/server/index.js"],
148 },
149 },
150 ...iconConfig,
151 };
152
153 fs.writeFileSync(
154 join(testFixturesDir, filename),
155 JSON.stringify(manifest, null, 2),
156 );
157 }
158
159 describe("Valid icon configurations", () => {
160 it("should pass validation with a valid local PNG icon", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…