replicant-mcp 1.4.3 → 1.4.4

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.
Files changed (2) hide show
  1. package/dist/server.js +11 -0
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -107,6 +107,17 @@ Use \`rtfm\` for detailed documentation on any tool.`,
107
107
  default:
108
108
  throw new Error(`Unknown tool: ${name}`);
109
109
  }
110
+ // Return images as native MCP image content blocks for efficiency
111
+ // (avoids Claude tokenizing base64 as text)
112
+ if (result && typeof result === "object" && "base64" in result && "mimeType" in result) {
113
+ const { base64, mimeType, ...metadata } = result;
114
+ return {
115
+ content: [
116
+ { type: "image", data: base64, mimeType },
117
+ { type: "text", text: JSON.stringify(metadata, null, 2) },
118
+ ],
119
+ };
120
+ }
110
121
  return {
111
122
  content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
112
123
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicant-mcp",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Android MCP server for AI-assisted Android development",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",