@xiedada/nodemw-mcp-server 0.1.0 → 0.1.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.
- package/dist/index.js +6 -4
- 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.1.
|
|
40
|
+
version: "0.1.1",
|
|
41
41
|
description: "MCP server for nodemw - MediaWiki API client",
|
|
42
42
|
type: "module",
|
|
43
43
|
main: "dist/index.js",
|
|
@@ -1212,7 +1212,8 @@ import { z as z22 } from "zod";
|
|
|
1212
1212
|
function getLogTool(server) {
|
|
1213
1213
|
const tool = server.tool(
|
|
1214
1214
|
"get-log",
|
|
1215
|
-
"Get log entries of a specific type (e.g. delete, block, move). Pagination: the response includes total (matching entries found) and displayed (returned in this batch). If displayed < total, more results exist \u2014 use the timestamp of the LAST returned entry as the start parameter for the next page."
|
|
1215
|
+
"Get log entries of a specific type (e.g. delete, block, move). Pagination: the response includes total (matching entries found) and displayed (returned in this batch). If displayed < total, more results exist \u2014 use the timestamp of the LAST returned entry as the start parameter for the next page.",
|
|
1216
|
+
{
|
|
1216
1217
|
type: z22.string().describe("Log type (e.g. delete, block, move)"),
|
|
1217
1218
|
start: z22.string().optional().describe(
|
|
1218
1219
|
'Timestamp to start listing from \u2014 only return entries before this time. Accepts ISO 8601 (e.g. "2026-05-10T22:54:37Z"), MediaWiki format "YYYYMMDDHHMMSS", or unix timestamp. All times are UTC \u2014 MW ignores timezone offsets. To paginate: pass the timestamp of the LAST item from the previous page as start.'
|
|
@@ -1233,7 +1234,7 @@ async function handleGetLogTool(type, start, limit = 50) {
|
|
|
1233
1234
|
try {
|
|
1234
1235
|
const bot = await getBot();
|
|
1235
1236
|
const entries = await new Promise((resolve, reject) => {
|
|
1236
|
-
bot.getLog(type, start, (err, ...args) => {
|
|
1237
|
+
bot.getLog(type, start || "", (err, ...args) => {
|
|
1237
1238
|
if (err) {
|
|
1238
1239
|
reject(err);
|
|
1239
1240
|
} else {
|
|
@@ -1352,7 +1353,8 @@ import { z as z25 } from "zod";
|
|
|
1352
1353
|
function getRecentChangesTool(server) {
|
|
1353
1354
|
const tool = server.tool(
|
|
1354
1355
|
"get-recent-changes",
|
|
1355
|
-
"Get recent changes on the wiki. Pagination: the response includes total (matching changes found) and displayed (returned in this batch). If displayed < total, more results exist \u2014 use the timestamp of the LAST returned change as the start parameter for the next page."
|
|
1356
|
+
"Get recent changes on the wiki. Pagination: the response includes total (matching changes found) and displayed (returned in this batch). If displayed < total, more results exist \u2014 use the timestamp of the LAST returned change as the start parameter for the next page.",
|
|
1357
|
+
{
|
|
1356
1358
|
start: z25.string().optional().describe(
|
|
1357
1359
|
'Timestamp to start listing from \u2014 only return changes before this time. Accepts ISO 8601 (e.g. "2026-05-10T22:54:37Z"), MediaWiki format "YYYYMMDDHHMMSS", or unix timestamp. All times are UTC \u2014 MW ignores timezone offsets. To paginate: pass the timestamp of the LAST item from the previous page as start.'
|
|
1358
1360
|
),
|