@mcpspec/shared 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -149,6 +149,7 @@ interface TestDefinition {
149
149
  expect?: SimpleExpectation[];
150
150
  expectError?: boolean;
151
151
  extract?: ExtractionDefinition[];
152
+ rawResponse?: boolean;
152
153
  }
153
154
  type SimpleExpectation = {
154
155
  exists: string;
@@ -226,6 +227,8 @@ interface SecurityScanConfig {
226
227
  acknowledgeRisk?: boolean;
227
228
  timeout?: number;
228
229
  maxProbesPerTool?: number;
230
+ excludeTools?: string[];
231
+ dryRun?: boolean;
229
232
  }
230
233
  interface SecurityScanResult {
231
234
  id: string;
@@ -282,7 +285,7 @@ interface MCPScore {
282
285
  documentation: number;
283
286
  errorHandling: number;
284
287
  schemaQuality: number;
285
- performance: number;
288
+ responsiveness: number;
286
289
  security: number;
287
290
  };
288
291
  }
@@ -442,6 +445,7 @@ declare const auditStartSchema: z.ZodObject<{
442
445
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
443
446
  mode: z.ZodDefault<z.ZodEnum<["passive", "active", "aggressive"]>>;
444
447
  rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
448
+ excludeTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
445
449
  }, "strip", z.ZodTypeAny, {
446
450
  transport: "stdio" | "sse" | "streamable-http";
447
451
  mode: "passive" | "active" | "aggressive";
@@ -450,6 +454,7 @@ declare const auditStartSchema: z.ZodObject<{
450
454
  url?: string | undefined;
451
455
  env?: Record<string, string> | undefined;
452
456
  rules?: string[] | undefined;
457
+ excludeTools?: string[] | undefined;
453
458
  }, {
454
459
  transport: "stdio" | "sse" | "streamable-http";
455
460
  command?: string | undefined;
@@ -458,6 +463,35 @@ declare const auditStartSchema: z.ZodObject<{
458
463
  env?: Record<string, string> | undefined;
459
464
  mode?: "passive" | "active" | "aggressive" | undefined;
460
465
  rules?: string[] | undefined;
466
+ excludeTools?: string[] | undefined;
467
+ }>;
468
+ declare const auditDryRunSchema: z.ZodObject<{
469
+ transport: z.ZodEnum<["stdio", "sse", "streamable-http"]>;
470
+ command: z.ZodOptional<z.ZodString>;
471
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
472
+ url: z.ZodOptional<z.ZodString>;
473
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
474
+ mode: z.ZodDefault<z.ZodEnum<["passive", "active", "aggressive"]>>;
475
+ rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
476
+ excludeTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
477
+ }, "strip", z.ZodTypeAny, {
478
+ transport: "stdio" | "sse" | "streamable-http";
479
+ mode: "passive" | "active" | "aggressive";
480
+ command?: string | undefined;
481
+ args?: string[] | undefined;
482
+ url?: string | undefined;
483
+ env?: Record<string, string> | undefined;
484
+ rules?: string[] | undefined;
485
+ excludeTools?: string[] | undefined;
486
+ }, {
487
+ transport: "stdio" | "sse" | "streamable-http";
488
+ command?: string | undefined;
489
+ args?: string[] | undefined;
490
+ url?: string | undefined;
491
+ env?: Record<string, string> | undefined;
492
+ mode?: "passive" | "active" | "aggressive" | undefined;
493
+ rules?: string[] | undefined;
494
+ excludeTools?: string[] | undefined;
461
495
  }>;
462
496
  declare const benchmarkStartSchema: z.ZodObject<{
463
497
  transport: z.ZodEnum<["stdio", "sse", "streamable-http"]>;
@@ -1059,4 +1093,4 @@ declare const rateLimitConfigSchema: z.ZodObject<{
1059
1093
  maxConcurrent?: number | undefined;
1060
1094
  }>;
1061
1095
 
1062
- export { type ApiError, type ApiListResponse, type ApiResponse, type AssertionDefinition, type AssertionResult, type AssertionType, type BenchmarkConfig, type BenchmarkResult, type BenchmarkStats, type CollectionDefinition, type ConnectionConfig, type ConnectionState, DEFAULT_RATE_LIMIT, DEFAULT_TIMEOUTS, EXIT_CODES, type EnvironmentDefinition, type ErrorTemplate, type ExitCode, type ExtractionDefinition, type MCPScore, type ManagedProcess, type MessageDirection, type ProcessConfig, type ProfileEntry, type ProtocolLogEntry, type RateLimitConfig, type ReporterType, type SavedCollection, type SavedServerConnection, type SecurityFinding, type SecurityScanConfig, type SecurityScanMode, type SecurityScanResult, type SecurityScanSummary, type ServerConfig, type SeverityLevel, type SimpleExpectation, type TestDefinition, type TestResult, type TestRunRecord, type TestRunResult, type TestSummary, type TimeoutConfig, type TransportType, type WSClientMessage, type WSServerMessage, type WaterfallEntry, assertionDefinitionSchema, auditStartSchema, benchmarkStartSchema, collectionSchema, createCollectionSchema, createServerSchema, docsGenerateSchema, environmentSchema, extractionSchema, inspectCallSchema, inspectConnectSchema, rateLimitConfigSchema, scoreCalculateSchema, serverConfigSchema, simpleExpectationSchema, testDefinitionSchema, timeoutConfigSchema, triggerRunSchema, updateCollectionSchema, updateServerSchema };
1096
+ export { type ApiError, type ApiListResponse, type ApiResponse, type AssertionDefinition, type AssertionResult, type AssertionType, type BenchmarkConfig, type BenchmarkResult, type BenchmarkStats, type CollectionDefinition, type ConnectionConfig, type ConnectionState, DEFAULT_RATE_LIMIT, DEFAULT_TIMEOUTS, EXIT_CODES, type EnvironmentDefinition, type ErrorTemplate, type ExitCode, type ExtractionDefinition, type MCPScore, type ManagedProcess, type MessageDirection, type ProcessConfig, type ProfileEntry, type ProtocolLogEntry, type RateLimitConfig, type ReporterType, type SavedCollection, type SavedServerConnection, type SecurityFinding, type SecurityScanConfig, type SecurityScanMode, type SecurityScanResult, type SecurityScanSummary, type ServerConfig, type SeverityLevel, type SimpleExpectation, type TestDefinition, type TestResult, type TestRunRecord, type TestRunResult, type TestSummary, type TimeoutConfig, type TransportType, type WSClientMessage, type WSServerMessage, type WaterfallEntry, assertionDefinitionSchema, auditDryRunSchema, auditStartSchema, benchmarkStartSchema, collectionSchema, createCollectionSchema, createServerSchema, docsGenerateSchema, environmentSchema, extractionSchema, inspectCallSchema, inspectConnectSchema, rateLimitConfigSchema, scoreCalculateSchema, serverConfigSchema, simpleExpectationSchema, testDefinitionSchema, timeoutConfigSchema, triggerRunSchema, updateCollectionSchema, updateServerSchema };
package/dist/index.js CHANGED
@@ -75,7 +75,18 @@ var auditStartSchema = z.object({
75
75
  url: z.string().optional(),
76
76
  env: z.record(z.string()).optional(),
77
77
  mode: z.enum(["passive", "active", "aggressive"]).default("passive"),
78
- rules: z.array(z.string()).optional()
78
+ rules: z.array(z.string()).optional(),
79
+ excludeTools: z.array(z.string()).optional()
80
+ });
81
+ var auditDryRunSchema = z.object({
82
+ transport: z.enum(["stdio", "sse", "streamable-http"]),
83
+ command: z.string().optional(),
84
+ args: z.array(z.string()).optional(),
85
+ url: z.string().optional(),
86
+ env: z.record(z.string()).optional(),
87
+ mode: z.enum(["passive", "active", "aggressive"]).default("passive"),
88
+ rules: z.array(z.string()).optional(),
89
+ excludeTools: z.array(z.string()).optional()
79
90
  });
80
91
  var benchmarkStartSchema = z.object({
81
92
  transport: z.enum(["stdio", "sse", "streamable-http"]),
@@ -201,6 +212,7 @@ export {
201
212
  DEFAULT_TIMEOUTS,
202
213
  EXIT_CODES,
203
214
  assertionDefinitionSchema,
215
+ auditDryRunSchema,
204
216
  auditStartSchema,
205
217
  benchmarkStartSchema,
206
218
  collectionSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpspec/shared",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",