@xiedada/nodemw-mcp-server 0.2.1 → 0.2.2
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 +12 -1
- 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.2.
|
|
40
|
+
version: "0.2.2",
|
|
41
41
|
description: "MCP server for nodemw - MediaWiki API client",
|
|
42
42
|
repository: {
|
|
43
43
|
type: "git",
|
|
@@ -3203,6 +3203,17 @@ async function main() {
|
|
|
3203
3203
|
const description = descriptionParts.join("\n");
|
|
3204
3204
|
const server = createServer(description);
|
|
3205
3205
|
registerAllTools(server, auth);
|
|
3206
|
+
server.prompt(
|
|
3207
|
+
"operating-principles",
|
|
3208
|
+
"Read these rules before using any write tools on this wiki. Call this prompt when connecting for the first time if the server instructions were not auto-injected.",
|
|
3209
|
+
{},
|
|
3210
|
+
async () => ({
|
|
3211
|
+
messages: [{
|
|
3212
|
+
role: "user",
|
|
3213
|
+
content: { type: "text", text: "Read and follow these rules:\n\n" + description }
|
|
3214
|
+
}]
|
|
3215
|
+
})
|
|
3216
|
+
);
|
|
3206
3217
|
const transport = new StdioServerTransport();
|
|
3207
3218
|
await server.connect(transport);
|
|
3208
3219
|
const authStr = auth ? `authenticated as ${config.username}` : "guest (read-only)";
|