@postmcp/types 0.1.7 → 0.1.8

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.mts CHANGED
@@ -41,6 +41,7 @@ interface NormalizedOperation {
41
41
  security?: Array<Record<string, string[]>>;
42
42
  isDeprecated?: boolean;
43
43
  contentType?: string;
44
+ extensions?: Record<string, any>;
44
45
  }
45
46
  interface SecurityScheme {
46
47
  type: 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';
@@ -188,13 +189,15 @@ interface SerializedRequestParameters {
188
189
  interface ToolRegistryOptions {
189
190
  forceJIT?: boolean;
190
191
  maxMountedTools?: number;
192
+ hotToolKeywords?: string[];
191
193
  }
192
194
  interface PostMcpServerOptions {
193
195
  spec: NormalizedSpec;
194
196
  baseUrl?: string;
195
197
  auth?: AuthConfig;
196
198
  tokenDiet?: TokenDietOptions;
197
- jit?: boolean;
199
+ jit?: boolean | ToolRegistryOptions;
200
+ hotToolKeywords?: string[];
198
201
  dryRun?: boolean;
199
202
  serverName?: string;
200
203
  serverVersion?: string;
@@ -271,7 +274,12 @@ interface PostMcpCliConfig {
271
274
  spec?: string;
272
275
  baseUrl?: string;
273
276
  auth?: AuthConfig;
274
- jit?: boolean;
277
+ jit?: boolean | {
278
+ enabled?: boolean;
279
+ maxMountedTools?: number;
280
+ hotToolKeywords?: string[];
281
+ };
282
+ hotToolKeywords?: string[];
275
283
  dryRun?: boolean;
276
284
  transport?: 'stdio' | 'http';
277
285
  port?: number;
@@ -296,6 +304,7 @@ interface RunCommandOptions {
296
304
  bearer?: string;
297
305
  apiKey?: string;
298
306
  jit?: boolean;
307
+ hotToolKeywords?: string;
299
308
  dryRun?: boolean;
300
309
  tokenDiet?: boolean;
301
310
  maxTokens?: string;
package/dist/index.d.ts CHANGED
@@ -41,6 +41,7 @@ interface NormalizedOperation {
41
41
  security?: Array<Record<string, string[]>>;
42
42
  isDeprecated?: boolean;
43
43
  contentType?: string;
44
+ extensions?: Record<string, any>;
44
45
  }
45
46
  interface SecurityScheme {
46
47
  type: 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';
@@ -188,13 +189,15 @@ interface SerializedRequestParameters {
188
189
  interface ToolRegistryOptions {
189
190
  forceJIT?: boolean;
190
191
  maxMountedTools?: number;
192
+ hotToolKeywords?: string[];
191
193
  }
192
194
  interface PostMcpServerOptions {
193
195
  spec: NormalizedSpec;
194
196
  baseUrl?: string;
195
197
  auth?: AuthConfig;
196
198
  tokenDiet?: TokenDietOptions;
197
- jit?: boolean;
199
+ jit?: boolean | ToolRegistryOptions;
200
+ hotToolKeywords?: string[];
198
201
  dryRun?: boolean;
199
202
  serverName?: string;
200
203
  serverVersion?: string;
@@ -271,7 +274,12 @@ interface PostMcpCliConfig {
271
274
  spec?: string;
272
275
  baseUrl?: string;
273
276
  auth?: AuthConfig;
274
- jit?: boolean;
277
+ jit?: boolean | {
278
+ enabled?: boolean;
279
+ maxMountedTools?: number;
280
+ hotToolKeywords?: string[];
281
+ };
282
+ hotToolKeywords?: string[];
275
283
  dryRun?: boolean;
276
284
  transport?: 'stdio' | 'http';
277
285
  port?: number;
@@ -296,6 +304,7 @@ interface RunCommandOptions {
296
304
  bearer?: string;
297
305
  apiKey?: string;
298
306
  jit?: boolean;
307
+ hotToolKeywords?: string;
299
308
  dryRun?: boolean;
300
309
  tokenDiet?: boolean;
301
310
  maxTokens?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postmcp/types",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Unified TypeScript types and interfaces for the PostMCP ecosystem",
5
5
  "publishConfig": {
6
6
  "access": "public"