This commit is contained in:
Joan Xie 2025-08-21 15:28:01 -07:00
commit 0b2658f5b0
No known key found for this signature in database
7 changed files with 14 additions and 8 deletions

View file

@ -153,7 +153,7 @@ program
key: string;
intermediate?: string[];
selfSigned?: boolean;
}
},
) => {
void (async () => {
try {
@ -219,7 +219,7 @@ program
process.exit(1);
}
})();
}
},
);
// Verify command

View file

@ -1,7 +1,7 @@
import type {
Logger,
McpbManifest,
McpbUserConfigValues,
Logger,
McpServerConfig,
} from "../types.js";

View file

@ -20,7 +20,9 @@ export type McpServerConfig = z.infer<typeof McpServerConfigSchema>;
export type McpbManifestAuthor = z.infer<typeof McpbManifestAuthorSchema>;
export type McpbManifestRepository = z.infer<typeof McpbManifestRepositorySchema>;
export type McpbManifestRepository = z.infer<
typeof McpbManifestRepositorySchema
>;
export type McpbManifestPlatformOverride = z.infer<
typeof McpbManifestPlatformOverrideSchema

View file

@ -41,7 +41,7 @@ describe("DXT CLI", () => {
// Commander outputs help to stderr when no command is provided
const execError = error as ExecSyncError;
expect(execError.stderr.toString()).toContain(
"Usage: dxt [options] [command]",
"Usage: mcpb [options] [command]",
);
}
});

View file

@ -3,7 +3,7 @@ import {
hasRequiredConfigMissing,
replaceVariables,
} from "../src/shared/config";
import type { McpbManifest, Logger } from "../src/types";
import type { Logger, McpbManifest } from "../src/types";
describe("replaceVariables", () => {
it("should replace variables in strings", () => {

View file

@ -27,7 +27,7 @@ describe("McpbManifestSchema", () => {
expect(result.success).toBe(false);
if (!result.success) {
const errors = result.error.issues.map((issue: any) => issue.path.join("."));
const errors = result.error.issues.map((issue) => issue.path.join("."));
expect(errors).toContain("author.name");
expect(errors).toContain("author.email");
expect(errors).toContain("server.type");

View file

@ -13,7 +13,11 @@ import * as fs from "fs";
import forge from "node-forge";
import * as path from "path";
import { signMcpbFile, unsignMcpbFile, verifyMcpbFile } from "../src/node/sign.js";
import {
signMcpbFile,
unsignMcpbFile,
verifyMcpbFile,
} from "../src/node/sign.js";
// Test directory
const TEST_DIR = path.join(__dirname, "test-output");