@atlassian/mcp-compressor 0.36.1 → 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.
- package/dist/native_client.d.ts +3 -0
- package/dist/native_client.js +6 -1
- package/dist/rust_core.d.ts +1 -0
- package/dist/rust_core.js +1 -0
- package/native/index.darwin-arm64.node +0 -0
- package/native/index.darwin-x64.node +0 -0
- package/native/index.linux-arm64-gnu.node +0 -0
- package/native/index.linux-x64-gnu.node +2 -2
- package/native/index.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
package/dist/native_client.d.ts
CHANGED
|
@@ -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>;
|
package/dist/native_client.js
CHANGED
|
@@ -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, {
|
|
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;
|
package/dist/rust_core.d.ts
CHANGED
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:
|
|
4
|
-
sha256:
|
|
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.
|
|
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",
|