@atlassian/mcp-compressor 0.36.0 → 0.37.0

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.
@@ -19,6 +19,8 @@ export interface CompressorClientOptions {
19
19
  includeTools?: string[];
20
20
  excludeTools?: string[];
21
21
  toonify?: boolean;
22
+ /** Response budget in any mode; filesystem modes save originals, MCP mode supports full recall. */
23
+ shrinkfit?: number;
22
24
  }
23
25
  export interface ProxyTool {
24
26
  name: string;
@@ -84,6 +86,7 @@ export declare class CompressorProxy {
84
86
  }): Record<string, unknown>;
85
87
  invoke(tool: string, toolInput?: Record<string, unknown>, options?: {
86
88
  server?: string;
89
+ full?: boolean;
87
90
  }): Promise<string>;
88
91
  close(): Promise<void>;
89
92
  toExecutableTools(): Record<string, ExecutableTool>;
@@ -252,7 +252,11 @@ export class CompressorProxy {
252
252
  async invoke(tool, toolInput = {}, options = {}) {
253
253
  const server = options.server ?? this.defaultServer;
254
254
  const wrapper = `${server ? `${server}_` : ""}invoke_tool`;
255
- return (await this.invokeWrapper(wrapper, { tool_name: tool, tool_input: toolInput })).text;
255
+ return (await this.invokeWrapper(wrapper, {
256
+ tool_name: tool,
257
+ tool_input: toolInput,
258
+ full: options.full ?? false,
259
+ })).text;
256
260
  }
257
261
  close() {
258
262
  if (this.closing) {
@@ -349,6 +353,7 @@ export class CompressorClient {
349
353
  includeTools: this.options.includeTools ?? [],
350
354
  excludeTools: this.options.excludeTools ?? [],
351
355
  toonify: this.options.toonify ?? false,
356
+ shrinkfit: this.options.shrinkfit,
352
357
  transformMode: transformMode(this.mode),
353
358
  };
354
359
  this.authProviders = typeof normalized === "string" ? [] : normalized.providers;
@@ -41,6 +41,7 @@ export interface CompressedSessionConfig {
41
41
  includeTools?: string[];
42
42
  excludeTools?: string[];
43
43
  toonify?: boolean;
44
+ shrinkfit?: number;
44
45
  transformMode?: string | null;
45
46
  }
46
47
  export interface JustBashCommandSpec {
package/dist/rust_core.js CHANGED
@@ -80,6 +80,7 @@ function toNativeSessionConfig(config) {
80
80
  include_tools: config.includeTools ?? [],
81
81
  exclude_tools: config.excludeTools ?? [],
82
82
  toonify: config.toonify ?? false,
83
+ shrinkfit: config.shrinkfit ?? null,
83
84
  transform_mode: config.transformMode ?? null,
84
85
  };
85
86
  }
Binary file
Binary file
Binary file
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/native/index.linux-x64-gnu.node
3
- size: 33688920 bytes
4
- sha256: fc47c46280a83ad4838ee3c9cf5a5816964342843af7aa7149e8bb03052cc23f
3
+ size: 34486552 bytes
4
+ sha256: fb95dc982dbf4787bf810b312d1c0a8b70e996260fc10cae09a06cbe6f5aad1a
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlassian/mcp-compressor",
3
- "version": "0.36.0",
3
+ "version": "0.37.0",
4
4
  "description": "TypeScript MCP server wrapper for reducing tokens consumed by MCP tools.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/atlassian-labs/mcp-compressor",