codewars-mcp 1.0.2 → 1.0.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.
- package/README.md +5 -0
- package/dist/server.js +33 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,4 +23,9 @@ The server uses stdio, so it can be connected to Claude Desktop, Cursor, VS Code
|
|
|
23
23
|
|
|
24
24
|
This project is intentionally narrow. It should be treated as a practical helper, not a complete certification or security audit. Check the implementation and the returned data before using it with sensitive material. No credentials are required.
|
|
25
25
|
|
|
26
|
+
## Licence — no paywall
|
|
26
27
|
|
|
28
|
+
Every tool in this package is free: no licence key, no premium tier, no hosted
|
|
29
|
+
licence gateway. The paywall machinery this repo once carried (per-tool licence
|
|
30
|
+
checks and paid hosted endpoints) was removed repo-wide on 2026-10-17. Nothing
|
|
31
|
+
that this package installs or calls asks you to pay.
|
package/dist/server.js
CHANGED
|
@@ -105,6 +105,39 @@ export function createServer() {
|
|
|
105
105
|
return textError(String(e));
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
|
+
const serverName = "codewars-mcp";
|
|
109
|
+
server.registerTool("health_check", {
|
|
110
|
+
title: "Health check",
|
|
111
|
+
description: "Check if the server is running and responsive.",
|
|
112
|
+
inputSchema: z.object({}),
|
|
113
|
+
annotations: READ_ONLY,
|
|
114
|
+
}, async () => {
|
|
115
|
+
return text("OK - server is running");
|
|
116
|
+
});
|
|
117
|
+
server.registerTool("version_info", {
|
|
118
|
+
title: "Version info",
|
|
119
|
+
description: "Get server version and metadata.",
|
|
120
|
+
inputSchema: z.object({}),
|
|
121
|
+
annotations: READ_ONLY,
|
|
122
|
+
}, async () => {
|
|
123
|
+
return text(JSON.stringify({ name: serverName, version: "1.0.0" }, null, 2));
|
|
124
|
+
});
|
|
125
|
+
server.registerTool("list_tools", {
|
|
126
|
+
title: "List tools",
|
|
127
|
+
description: "List all available tools on this server.",
|
|
128
|
+
inputSchema: z.object({}),
|
|
129
|
+
annotations: READ_ONLY,
|
|
130
|
+
}, async () => {
|
|
131
|
+
return text("See the tools/list response for the full tool list.");
|
|
132
|
+
});
|
|
133
|
+
server.registerTool("echo", {
|
|
134
|
+
title: "Echo",
|
|
135
|
+
description: "Echo back the provided text.",
|
|
136
|
+
inputSchema: z.object({ text: z.string().describe("Text to echo.") }),
|
|
137
|
+
annotations: READ_ONLY,
|
|
138
|
+
}, async (args) => {
|
|
139
|
+
return text(String(args?.text ?? ""));
|
|
140
|
+
});
|
|
108
141
|
return server;
|
|
109
142
|
}
|
|
110
143
|
function errorMessage(e) {
|