@xiedada/nodemw-mcp-server 0.0.9 → 0.0.11

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/index.js +19 -19
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -37,7 +37,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
37
37
  // package.json
38
38
  var package_default = {
39
39
  name: "@xiedada/nodemw-mcp-server",
40
- version: "0.0.9",
40
+ version: "0.0.11",
41
41
  description: "MCP server for nodemw - MediaWiki API client",
42
42
  type: "module",
43
43
  main: "dist/index.js",
@@ -930,9 +930,9 @@ function whoamiTool(server) {
930
930
  rights: z15.array(z15.string()),
931
931
  ratelimits: z15.union([z15.record(z15.unknown()), z15.array(z15.unknown())]),
932
932
  editcount: z15.number(),
933
- realname: z15.string(),
934
- email: z15.string(),
935
- emailauthenticated: z15.string()
933
+ realname: z15.string().optional(),
934
+ email: z15.string().optional(),
935
+ emailauthenticated: z15.string().optional()
936
936
  }) } });
937
937
  return tool;
938
938
  }
@@ -969,12 +969,12 @@ function whoisTool(server) {
969
969
  userid: z16.number(),
970
970
  name: z16.string(),
971
971
  groups: z16.array(z16.string()),
972
- implicitgroups: z16.array(z16.string()),
972
+ implicitgroups: z16.array(z16.string()).optional(),
973
973
  rights: z16.array(z16.string()),
974
974
  editcount: z16.number(),
975
- registration: z16.string(),
976
- emailable: z16.string(),
977
- gender: z16.string(),
975
+ registration: z16.string().optional(),
976
+ emailable: z16.string().optional(),
977
+ gender: z16.string().optional(),
978
978
  blockinfo: z16.record(z16.unknown()).optional()
979
979
  }) } });
980
980
  return tool;
@@ -1016,12 +1016,12 @@ function whoareTool(server) {
1016
1016
  userid: z17.number(),
1017
1017
  name: z17.string(),
1018
1018
  groups: z17.array(z17.string()),
1019
- implicitgroups: z17.array(z17.string()),
1019
+ implicitgroups: z17.array(z17.string()).optional(),
1020
1020
  rights: z17.array(z17.string()),
1021
1021
  editcount: z17.number(),
1022
- registration: z17.string(),
1023
- emailable: z17.string(),
1024
- gender: z17.string(),
1022
+ registration: z17.string().optional(),
1023
+ emailable: z17.string().optional(),
1024
+ gender: z17.string().optional(),
1025
1025
  blockinfo: z17.record(z17.unknown()).optional()
1026
1026
  })), count: z17.number() } });
1027
1027
  return tool;
@@ -1435,9 +1435,9 @@ function getSiteStatsTool(server) {
1435
1435
  edits: z27.number(),
1436
1436
  images: z27.number(),
1437
1437
  users: z27.number(),
1438
- activeusers: z27.number(),
1439
- admins: z27.number(),
1440
- jobs: z27.number()
1438
+ activeusers: z27.number().optional(),
1439
+ admins: z27.number().optional(),
1440
+ jobs: z27.number().optional()
1441
1441
  }) } });
1442
1442
  return tool;
1443
1443
  }
@@ -1617,7 +1617,7 @@ function editTool(server) {
1617
1617
  },
1618
1618
  async (params) => handleEditTool(params)
1619
1619
  );
1620
- tool.update({ outputSchema: { result: z32.string(), pageid: z32.number(), title: z32.string(), contentmodel: z32.string(), newrevid: z32.number(), newtimestamp: z32.string(), oldrevid: z32.number().optional() } });
1620
+ tool.update({ outputSchema: { result: z32.string(), pageid: z32.number(), title: z32.string(), contentmodel: z32.string().optional(), newrevid: z32.number(), newtimestamp: z32.string().optional(), oldrevid: z32.number().optional() } });
1621
1621
  return tool;
1622
1622
  }
1623
1623
  async function handleEditTool(params) {
@@ -1727,7 +1727,7 @@ function prependTool(server) {
1727
1727
  },
1728
1728
  async (params) => handlePrependTool(params)
1729
1729
  );
1730
- tool.update({ outputSchema: { result: z34.string(), pageid: z34.number(), title: z34.string(), contentmodel: z34.string(), newrevid: z34.number(), newtimestamp: z34.string(), oldrevid: z34.number().optional() } });
1730
+ tool.update({ outputSchema: { result: z34.string(), pageid: z34.number(), title: z34.string(), contentmodel: z34.string().optional(), newrevid: z34.number(), newtimestamp: z34.string().optional(), oldrevid: z34.number().optional() } });
1731
1731
  return tool;
1732
1732
  }
1733
1733
  async function handlePrependTool(params) {
@@ -1804,7 +1804,7 @@ function deleteTool(server) {
1804
1804
  },
1805
1805
  async (params) => handleDeleteTool(params)
1806
1806
  );
1807
- tool.update({ outputSchema: { title: z36.string(), reason: z36.string(), logid: z36.number() } });
1807
+ tool.update({ outputSchema: { title: z36.string(), reason: z36.string(), logid: z36.number().optional() } });
1808
1808
  return tool;
1809
1809
  }
1810
1810
  async function handleDeleteTool(params) {
@@ -1851,7 +1851,7 @@ function protectTool(server) {
1851
1851
  },
1852
1852
  async (params) => handleProtectTool(params)
1853
1853
  );
1854
- tool.update({ outputSchema: { title: z37.string(), reason: z37.string().optional(), protections: z37.array(z37.record(z37.unknown())), cascade: z37.boolean() } });
1854
+ tool.update({ outputSchema: { title: z37.string(), reason: z37.string().optional(), protections: z37.array(z37.record(z37.unknown())), cascade: z37.boolean().optional() } });
1855
1855
  return tool;
1856
1856
  }
1857
1857
  async function handleProtectTool(params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiedada/nodemw-mcp-server",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "MCP server for nodemw - MediaWiki API client",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",