@denisixnpm/planka-mcp 2.2.0

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.
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Tool definition for Planka MCP server
3
+ * Supports grouped tools with multiple actions/operations
4
+ */
5
+ /**
6
+ * Helper to build input schema for grouped tools
7
+ */
8
+ export function buildGroupedSchema(actions, actionDescriptions, params) {
9
+ const properties = {
10
+ action: {
11
+ type: "string",
12
+ enum: actions,
13
+ description: `Action to perform: ${actions.map(a => `'${a}' - ${actionDescriptions[a]}`).join("; ")}`,
14
+ },
15
+ };
16
+ if (params?.id) {
17
+ properties.id = {
18
+ type: "string",
19
+ description: params.id.description + (params.id.requiredFor ? ` (required for: ${params.id.requiredFor.join(", ")})` : ""),
20
+ };
21
+ }
22
+ if (params?.data) {
23
+ const dataSchema = {
24
+ type: "object",
25
+ description: params.data.description + (params.data.requiredFor ? ` (required for: ${params.data.requiredFor.join(", ")})` : ""),
26
+ additionalProperties: true,
27
+ };
28
+ if (params.data.properties) {
29
+ const fields = {};
30
+ const required = [];
31
+ for (const [fieldName, fieldDef] of Object.entries(params.data.properties)) {
32
+ const field = { type: fieldDef.type, description: fieldDef.description ?? "" };
33
+ if (fieldDef.enum) {
34
+ field.enum = fieldDef.enum;
35
+ }
36
+ fields[fieldName] = field;
37
+ if (fieldDef.required) {
38
+ required.push(fieldName);
39
+ }
40
+ }
41
+ dataSchema.properties = fields;
42
+ if (required.length > 0) {
43
+ dataSchema.required = required;
44
+ }
45
+ }
46
+ properties.data = dataSchema;
47
+ }
48
+ if (params?.query) {
49
+ properties.query = {
50
+ type: "object",
51
+ description: "Query parameters for filtering/pagination",
52
+ properties: params.query,
53
+ };
54
+ }
55
+ properties.raw = {
56
+ type: "boolean",
57
+ description: "Return the raw Planka API payload instead of the condensed agent view",
58
+ };
59
+ return {
60
+ type: "object",
61
+ properties,
62
+ required: ["action"],
63
+ };
64
+ }
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@denisixnpm/planka-mcp",
3
+ "version": "2.2.0",
4
+ "description": "MCP server for Planka - Real-Time Collaborative Kanban Board",
5
+ "main": "dist/server.js",
6
+ "type": "module",
7
+ "bin": {
8
+ "planka-mcp": "./dist/server.js"
9
+ },
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "start": "node dist/server.js",
16
+ "start:sse": "MCP_TRANSPORT=sse node dist/server.js",
17
+ "dev": "bun src/server.ts",
18
+ "dev:sse": "MCP_TRANSPORT=sse bun src/server.ts",
19
+ "prepublishOnly": "npm run build",
20
+ "test": "bun run build && bun test",
21
+ "test:tools": "bun test test/tools.test.ts",
22
+ "test:build": "bun run build && bun test test/build.test.ts",
23
+ "test:server": "bun test test/server.test.ts",
24
+ "test:ci": "bun run build && bun test"
25
+ },
26
+ "keywords": [
27
+ "mcp",
28
+ "planka",
29
+ "kanban",
30
+ "model-context-protocol"
31
+ ],
32
+ "author": "Christopher Maldonado <chmald@microsoft.com> (original author)",
33
+ "contributors": [
34
+ "denisix (https://github.com/denisix)"
35
+ ],
36
+ "license": "MIT",
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/denisix/planka-mcp.git"
40
+ },
41
+ "homepage": "https://github.com/denisix/planka-mcp#readme",
42
+ "bugs": {
43
+ "url": "https://github.com/denisix/planka-mcp/issues"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public",
47
+ "registry": "https://registry.npmjs.org/"
48
+ },
49
+ "engines": {
50
+ "node": ">=22.19.0"
51
+ },
52
+ "dependencies": {
53
+ "@modelcontextprotocol/sdk": "^1.30.0"
54
+ },
55
+ "devDependencies": {
56
+ "@types/node": "^26.2.0",
57
+ "typescript": "^7.0.2"
58
+ }
59
+ }