apinoa-mcp 0.2.0 → 0.2.1

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.
@@ -1922,8 +1922,8 @@ const snapshot = [
1922
1922
  "limit": {
1923
1923
  "type": "integer",
1924
1924
  "minimum": 1,
1925
- "maximum": 50,
1926
- "description": "Items per page, 1–50."
1925
+ "maximum": 30,
1926
+ "description": "Items per page, 1–30."
1927
1927
  },
1928
1928
  "cursor": {
1929
1929
  "type": "string",
@@ -1991,8 +1991,8 @@ const snapshot = [
1991
1991
  "limit": {
1992
1992
  "type": "integer",
1993
1993
  "minimum": 1,
1994
- "maximum": 50,
1995
- "description": "Items per page, 1–50."
1994
+ "maximum": 30,
1995
+ "description": "Items per page, 1–30."
1996
1996
  },
1997
1997
  "cursor": {
1998
1998
  "type": "string",
@@ -2071,8 +2071,8 @@ const snapshot = [
2071
2071
  "limit": {
2072
2072
  "type": "integer",
2073
2073
  "minimum": 1,
2074
- "maximum": 50,
2075
- "description": "Items per page, 1–50."
2074
+ "maximum": 30,
2075
+ "description": "Items per page, 1–30."
2076
2076
  },
2077
2077
  "cursor": {
2078
2078
  "type": "string",
package/dist/legacy.js CHANGED
@@ -167,7 +167,7 @@ export function registerLegacyTools(server, api, catalog, maxChars) {
167
167
  const field = z.string().min(1).describe(spec.primary.description);
168
168
  shape[spec.primary.name] = spec.primary.required ? field : field.optional();
169
169
  }
170
- shape.params = z.record(z.unknown()).optional().describe("The platform's other parameters, by the names listed above.");
170
+ shape.params = z.record(z.string(), z.unknown()).optional().describe("The platform's other parameters, by the names listed above.");
171
171
  server.registerTool(spec.name, { title: spec.title, description, inputSchema: shape, annotations: { title: spec.title, ...readOnly }, _meta }, async (args) => {
172
172
  try {
173
173
  const params = { ...(args.params ?? {}) };
@@ -189,7 +189,7 @@ export function registerLegacyTools(server, api, catalog, maxChars) {
189
189
  inputSchema: {
190
190
  platform: z.enum(imagePlatforms).describe("Which marketplace to search."),
191
191
  image_url: z.string().url().describe("An http(s) URL of a JPEG or PNG photo."),
192
- params: z.record(z.unknown()).optional().describe("Other parameters of the platform's image-search (region, filters)."),
192
+ params: z.record(z.string(), z.unknown()).optional().describe("Other parameters of the platform's image-search (region, filters)."),
193
193
  },
194
194
  annotations: { title: "Search products by image", ...readOnly },
195
195
  _meta,
@@ -213,7 +213,7 @@ export function registerLegacyTools(server, api, catalog, maxChars) {
213
213
  inputSchema: {
214
214
  platform: z.string().describe("Platform id, e.g. amazon, reddit."),
215
215
  operation: z.string().describe("Operation as written in the list, e.g. search, image-search, groups."),
216
- params: z.record(z.unknown()).optional().describe("The operation's parameters."),
216
+ params: z.record(z.string(), z.unknown()).optional().describe("The operation's parameters."),
217
217
  },
218
218
  annotations: { title: "Call any apinoa operation", ...readOnly },
219
219
  _meta,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apinoa-mcp",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "MCP server for apinoa: marketplace and social data for Claude, Cursor and any MCP client. Code mode: the model writes TypeScript against a typed client, run in a sandbox.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://apinoa.com/docs",
@@ -49,7 +49,7 @@
49
49
  "dependencies": {
50
50
  "@modelcontextprotocol/sdk": "^1.32.2",
51
51
  "deno": "^2.9.6",
52
- "zod": "^3.25.76"
52
+ "zod": "^4.6.7"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/node": "^20.17.0",