@practicemakes/mcp 26.1110.1 → 26.1127.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/README.md +16 -5
- package/dist/config.d.ts +2 -0
- package/dist/config.js +2 -1
- package/dist/config.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/tools/orgLabel.d.ts +23 -0
- package/dist/tools/orgLabel.js +44 -0
- package/dist/tools/orgLabel.js.map +1 -0
- package/dist/tools/organizations.d.ts +3 -1
- package/dist/tools/organizations.js +12 -5
- package/dist/tools/organizations.js.map +1 -1
- package/dist/tools/planner.d.ts +3 -1
- package/dist/tools/planner.js +32 -10
- package/dist/tools/planner.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @practicemakes/mcp
|
|
2
2
|
|
|
3
|
-
A small [MCP](https://modelcontextprotocol.io) server that exposes **PracticeMakes** production data
|
|
3
|
+
A small [MCP](https://modelcontextprotocol.io) server that exposes **PracticeMakes** production data to Claude, read-only by default, for admin and development work — and surfaces your **Planner backlog** so your own task list can drive development.
|
|
4
4
|
|
|
5
5
|
It authenticates as **your own platform identity** (your Firebase user), so every result is scoped to your real role and organization by the backend. A SYSADMIN sees the whole platform; a regular user sees only their org. That's what lets the same server be handed to other users on the platform.
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ Claude ──stdio──▶ @practicemakes/mcp ──HTTPS Bearer──▶ h
|
|
|
11
11
|
(refreshes your Firebase ID token) (existing authz + business logic)
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
No backend changes and no secret credentials — the Firebase Web API key it uses is a **public** client value (baked in as a default), so each user supplies only a credential for **their own** account. Read-only.
|
|
14
|
+
No backend changes and no secret credentials — the Firebase Web API key it uses is a **public** client value (baked in as a default), so each user supplies only a credential for **their own** account. Read-only unless you opt in to the write tools with `PM_ENABLE_WRITES=1` (see [Tools (write)](#tools-write)).
|
|
15
15
|
|
|
16
16
|
## Use it (published package)
|
|
17
17
|
|
|
@@ -91,7 +91,10 @@ Neither is a UUID — `serverId` is the operator-assigned id (e.g. `web-01`).
|
|
|
91
91
|
|
|
92
92
|
## Tools (write)
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
Off by default: the server registers these only when `PM_ENABLE_WRITES` is `1` or `true`
|
|
95
|
+
(`claude mcp add ... --env PM_ENABLE_WRITES=1 ...`). Without it, they do not exist for the model
|
|
96
|
+
to call. Once enabled, every write tool asks you to confirm the exact request, and names the
|
|
97
|
+
organization it writes to, before it sends anything.
|
|
95
98
|
|
|
96
99
|
| Tool | What it does |
|
|
97
100
|
|---|---|
|
|
@@ -113,8 +116,16 @@ write tool **refuses and sends nothing** — it will not fall back to writing un
|
|
|
113
116
|
error names the mutation it declined to perform. This is deliberate: silently proceeding would
|
|
114
117
|
disable the guardrail for exactly the clients that never agreed to be asked.
|
|
115
118
|
|
|
116
|
-
**`switch_org_context` is
|
|
117
|
-
later read tool* returns
|
|
119
|
+
**`switch_org_context` is account-wide and persistent.** It saves the new org on your profile,
|
|
120
|
+
so it changes what *every later read tool* returns, it outlives this MCP session, and every open
|
|
121
|
+
web and mobile client of your account switches to that org live.
|
|
122
|
+
|
|
123
|
+
**`create_task` re-checks the org after you approve.** The backend files a new task under your
|
|
124
|
+
profile's active org at write time, and another client can change that org while the prompt is
|
|
125
|
+
open. If it changed, the tool refuses and sends nothing.
|
|
126
|
+
|
|
127
|
+
**`durationEstimate` is in minutes.** `create_task` converts it to seconds, the unit the app
|
|
128
|
+
stores and displays.
|
|
118
129
|
|
|
119
130
|
**`complete_task` is a read-modify-write.** There is no dedicated completion endpoint; the tool
|
|
120
131
|
reads the task, sets `completedAt`, and re-posts it, carrying the read's `ETag` back as
|
package/dist/config.d.ts
CHANGED
|
@@ -14,5 +14,7 @@ export interface Config {
|
|
|
14
14
|
/** Password-account bootstrap (used only if no refresh token is present). */
|
|
15
15
|
email?: string;
|
|
16
16
|
password?: string;
|
|
17
|
+
/** Registers the write tools. Off unless PM_ENABLE_WRITES is `1` or `true`. */
|
|
18
|
+
writesEnabled: boolean;
|
|
17
19
|
}
|
|
18
20
|
export declare function loadConfig(): Config;
|
package/dist/config.js
CHANGED
|
@@ -14,6 +14,7 @@ export function loadConfig() {
|
|
|
14
14
|
if (!refreshToken && !(email && password)) {
|
|
15
15
|
throw new Error("No credential provided. Set FIREBASE_REFRESH_TOKEN, or PM_EMAIL + PM_PASSWORD.");
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
const writesEnabled = ["1", "true"].includes(process.env.PM_ENABLE_WRITES?.trim().toLowerCase() ?? "");
|
|
18
|
+
return { apiBaseUrl, firebaseApiKey, refreshToken, email, password, writesEnabled };
|
|
18
19
|
}
|
|
19
20
|
//# sourceMappingURL=config.js.map
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAoBA;;;;;GAKG;AACH,MAAM,wBAAwB,GAAG,yCAAyC,CAAC;AAE3E,MAAM,UAAU,UAAU;IACxB,MAAM,UAAU,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,8BAA8B,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACvG,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,wBAAwB,CAAC;IACxF,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IAC7E,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACxD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,SAAS,CAAC;IAEtD,IAAI,CAAC,YAAY,IAAI,CAAC,CAAC,KAAK,IAAI,QAAQ,CAAC,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CACb,gFAAgF,CACjF,CAAC;IACJ,CAAC;IAED,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,QAAQ,CAC1C,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,IAAI,EAAE,CACzD,CAAC;IAEF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;AACtF,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -17,15 +17,15 @@ async function main() {
|
|
|
17
17
|
name: "practicemakes-mcp",
|
|
18
18
|
version: "0.1.0",
|
|
19
19
|
});
|
|
20
|
-
registerOrganizationTools(server, client);
|
|
20
|
+
registerOrganizationTools(server, client, { writesEnabled: config.writesEnabled });
|
|
21
21
|
registerProfileTools(server, client);
|
|
22
|
-
registerPlannerTools(server, client);
|
|
22
|
+
registerPlannerTools(server, client, { writesEnabled: config.writesEnabled });
|
|
23
23
|
registerBillingTools(server, client);
|
|
24
24
|
registerMonitorTools(server, client);
|
|
25
25
|
const transport = new StdioServerTransport();
|
|
26
26
|
await server.connect(transport);
|
|
27
27
|
// stdout is the MCP transport; log to stderr only.
|
|
28
|
-
console.error(`practicemakes-mcp connected (base=${config.apiBaseUrl})`);
|
|
28
|
+
console.error(`practicemakes-mcp connected (base=${config.apiBaseUrl}, writes=${config.writesEnabled ? "on" : "off"})`);
|
|
29
29
|
}
|
|
30
30
|
main().catch((err) => {
|
|
31
31
|
console.error("Fatal:", err instanceof Error ? err.message : err);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";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CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAClE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { PmClient } from "../pmClient.js";
|
|
2
|
+
export interface OrgRef {
|
|
3
|
+
id?: unknown;
|
|
4
|
+
name?: unknown;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Renders an organization for a confirmation prompt: name first, because a human recognizes
|
|
8
|
+
* the tenant by name, with the id kept so two orgs that share a name stay distinguishable.
|
|
9
|
+
*/
|
|
10
|
+
export declare function orgLabel(org: OrgRef | null | undefined): string;
|
|
11
|
+
/**
|
|
12
|
+
* The profile's active organization, read fresh. It is server-side state that another client
|
|
13
|
+
* (or an earlier switch_org_context) can change at any time, so a prompt must not rely on a
|
|
14
|
+
* value read earlier.
|
|
15
|
+
*/
|
|
16
|
+
export declare function activeOrg(client: PmClient): Promise<OrgRef | null>;
|
|
17
|
+
/**
|
|
18
|
+
* Best-effort name lookup for an org the caller may not be in yet. `GET /api/organization/{id}`
|
|
19
|
+
* only serves the caller's current org (or a SYSADMIN), so a member switching to an invited org
|
|
20
|
+
* is answered from their invite list instead. Never throws: a missing name must not block a
|
|
21
|
+
* switch the backend would allow, so the worst case is the bare id.
|
|
22
|
+
*/
|
|
23
|
+
export declare function findOrg(client: PmClient, organizationId: string): Promise<OrgRef>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders an organization for a confirmation prompt: name first, because a human recognizes
|
|
3
|
+
* the tenant by name, with the id kept so two orgs that share a name stay distinguishable.
|
|
4
|
+
*/
|
|
5
|
+
export function orgLabel(org) {
|
|
6
|
+
if (!org || typeof org.id !== "string")
|
|
7
|
+
return "no organization";
|
|
8
|
+
return typeof org.name === "string" && org.name ? `"${org.name}" (${org.id})` : org.id;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The profile's active organization, read fresh. It is server-side state that another client
|
|
12
|
+
* (or an earlier switch_org_context) can change at any time, so a prompt must not rely on a
|
|
13
|
+
* value read earlier.
|
|
14
|
+
*/
|
|
15
|
+
export async function activeOrg(client) {
|
|
16
|
+
const profile = (await client.get("/api/profile"));
|
|
17
|
+
return profile?.organizationContext ?? null;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Best-effort name lookup for an org the caller may not be in yet. `GET /api/organization/{id}`
|
|
21
|
+
* only serves the caller's current org (or a SYSADMIN), so a member switching to an invited org
|
|
22
|
+
* is answered from their invite list instead. Never throws: a missing name must not block a
|
|
23
|
+
* switch the backend would allow, so the worst case is the bare id.
|
|
24
|
+
*/
|
|
25
|
+
export async function findOrg(client, organizationId) {
|
|
26
|
+
try {
|
|
27
|
+
const invited = (await client.get("/api/organization"));
|
|
28
|
+
const hit = invited?.find((org) => org.id === organizationId);
|
|
29
|
+
if (hit)
|
|
30
|
+
return hit;
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
// Fall through to the by-id read.
|
|
34
|
+
}
|
|
35
|
+
try {
|
|
36
|
+
return (await client.get(`/api/organization/${organizationId}`)) ?? {
|
|
37
|
+
id: organizationId,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
catch {
|
|
41
|
+
return { id: organizationId };
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=orgLabel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orgLabel.js","sourceRoot":"","sources":["../../src/tools/orgLabel.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,GAA8B;IACrD,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,CAAC,EAAE,KAAK,QAAQ;QAAE,OAAO,iBAAiB,CAAC;IACjE,OAAO,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,MAAM,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;AACzF,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,MAAgB;IAC9C,MAAM,OAAO,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAA4C,CAAC;IAC9F,OAAO,OAAO,EAAE,mBAAmB,IAAI,IAAI,CAAC;AAC9C,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,MAAgB,EAAE,cAAsB;IACpE,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAoB,CAAC;QAC3E,MAAM,GAAG,GAAG,OAAO,EAAE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,cAAc,CAAC,CAAC;QAC9D,IAAI,GAAG;YAAE,OAAO,GAAG,CAAC;IACtB,CAAC;IAAC,MAAM,CAAC;QACP,kCAAkC;IACpC,CAAC;IACD,IAAI,CAAC;QACH,OAAQ,CAAC,MAAM,MAAM,CAAC,GAAG,CAAC,qBAAqB,cAAc,EAAE,CAAC,CAAmB,IAAI;YACrF,EAAE,EAAE,cAAc;SACnB,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,CAAC;IAChC,CAAC;AACH,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import type { PmClient } from "../pmClient.js";
|
|
3
|
-
export declare function registerOrganizationTools(server: McpServer, client: PmClient
|
|
3
|
+
export declare function registerOrganizationTools(server: McpServer, client: PmClient, { writesEnabled }: {
|
|
4
|
+
writesEnabled: boolean;
|
|
5
|
+
}): void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { withConfirmation } from "./confirm.js";
|
|
3
|
+
import { activeOrg, findOrg, orgLabel } from "./orgLabel.js";
|
|
3
4
|
import { runTool } from "./shared.js";
|
|
4
|
-
export function registerOrganizationTools(server, client) {
|
|
5
|
+
export function registerOrganizationTools(server, client, { writesEnabled }) {
|
|
5
6
|
server.registerTool("list_organizations", {
|
|
6
7
|
title: "List organizations",
|
|
7
8
|
description: "List organizations visible to your identity. A SYSADMIN sees every organization on the platform; other users see only the orgs they belong to.",
|
|
@@ -14,15 +15,21 @@ export function registerOrganizationTools(server, client) {
|
|
|
14
15
|
organizationId: z.string().uuid().describe("Organization UUID"),
|
|
15
16
|
},
|
|
16
17
|
}, async ({ organizationId }) => runTool(() => client.get(`/api/organization/${organizationId}`)));
|
|
18
|
+
if (!writesEnabled)
|
|
19
|
+
return;
|
|
17
20
|
server.registerTool("switch_org_context", {
|
|
18
21
|
title: "Switch organization context",
|
|
19
|
-
description: "Switch your active organization context. WRITE: this
|
|
22
|
+
description: "Switch your active organization context. WRITE: this is saved on your profile, so it is account-wide and persistent — it changes what EVERY subsequent read tool returns, it outlives this MCP session, and every open web and mobile client of your account switches to the new org live. Prompts you for confirmation before sending. A SYSADMIN can switch into any organization; everyone else needs an invite to the target.",
|
|
20
23
|
inputSchema: {
|
|
21
24
|
organizationId: z.string().uuid().describe("Organization UUID to switch into"),
|
|
22
25
|
},
|
|
23
|
-
}, async ({ organizationId }) => withConfirmation(server, "switch_org_context", () => ({
|
|
24
|
-
summary:
|
|
25
|
-
|
|
26
|
+
}, async ({ organizationId }) => withConfirmation(server, "switch_org_context", async () => ({
|
|
27
|
+
summary:
|
|
28
|
+
// The switch doesn't need the current org, so a failed profile read must not block it.
|
|
29
|
+
`Switch your account's active organization from ${await activeOrg(client).then(orgLabel, () => "an organization that could not be read")} ` +
|
|
30
|
+
`to ${orgLabel(await findOrg(client, organizationId))}. ` +
|
|
31
|
+
`This is saved on your profile: every open web and mobile client of your account ` +
|
|
32
|
+
`switches too, and it stays after this session ends.`,
|
|
26
33
|
// The endpoint takes no request body — the id is the path variable.
|
|
27
34
|
request: { method: "POST", path: `/api/organization/context/${organizationId}` },
|
|
28
35
|
}), () => client.post(`/api/organization/context/${organizationId}`)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../src/tools/organizations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,MAAM,UAAU,yBAAyB,
|
|
1
|
+
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../src/tools/organizations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,MAAM,UAAU,yBAAyB,CACvC,MAAiB,EACjB,MAAgB,EAChB,EAAE,aAAa,EAA8B;IAE7C,MAAM,CAAC,YAAY,CACjB,oBAAoB,EACpB;QACE,KAAK,EAAE,oBAAoB;QAC3B,WAAW,EACT,gJAAgJ;QAClJ,WAAW,EAAE,EAAE;KAChB,EACD,KAAK,IAAI,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC,CAC/D,CAAC;IAEF,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ED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import type { PmClient } from "../pmClient.js";
|
|
3
|
-
export declare function registerPlannerTools(server: McpServer, client: PmClient
|
|
3
|
+
export declare function registerPlannerTools(server: McpServer, client: PmClient, { writesEnabled }: {
|
|
4
|
+
writesEnabled: boolean;
|
|
5
|
+
}): void;
|
package/dist/tools/planner.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { withConfirmation } from "./confirm.js";
|
|
3
|
+
import { activeOrg, orgLabel } from "./orgLabel.js";
|
|
3
4
|
import { errorResult, jsonResult, runTool } from "./shared.js";
|
|
4
|
-
export function registerPlannerTools(server, client) {
|
|
5
|
+
export function registerPlannerTools(server, client, { writesEnabled }) {
|
|
5
6
|
server.registerTool("get_my_planner_tasks", {
|
|
6
7
|
title: "Get my Planner tasks",
|
|
7
8
|
description: "Your personal Planner backlog: active tasks for your profile in your current organization context, filtered to your enabled tags. Ordered by priorityValue (ascending = higher on the backlog). Status is derived from timestamps — completedAt/deletedAt/snoozeUntil being null means active. This is the list meant to drive development.",
|
|
@@ -47,6 +48,8 @@ export function registerPlannerTools(server, client) {
|
|
|
47
48
|
workflowId: z.string().uuid().describe("Workflow UUID"),
|
|
48
49
|
},
|
|
49
50
|
}, async ({ workflowId }) => runTool(() => client.get(`/api/workflow/${workflowId}`)));
|
|
51
|
+
if (!writesEnabled)
|
|
52
|
+
return;
|
|
50
53
|
server.registerTool("create_task", {
|
|
51
54
|
title: "Create Planner task",
|
|
52
55
|
description: "Create a new Planner task in your current organization context. WRITE: prompts you for confirmation before sending, and runs as your own account with your own permissions. Requires ADMIN in the active org context.",
|
|
@@ -62,7 +65,12 @@ export function registerPlannerTools(server, client) {
|
|
|
62
65
|
.int()
|
|
63
66
|
.optional()
|
|
64
67
|
.describe("Backlog priority; ascending, so a lower value sorts higher."),
|
|
65
|
-
durationEstimate: z
|
|
68
|
+
durationEstimate: z
|
|
69
|
+
.number()
|
|
70
|
+
.int()
|
|
71
|
+
.positive()
|
|
72
|
+
.optional()
|
|
73
|
+
.describe("Estimated duration, in minutes. Sent to the API as seconds."),
|
|
66
74
|
requiresCompletion: z
|
|
67
75
|
.boolean()
|
|
68
76
|
.optional()
|
|
@@ -77,15 +85,28 @@ export function registerPlannerTools(server, client) {
|
|
|
77
85
|
taskLinks: [],
|
|
78
86
|
...(dueAt !== undefined ? { dueAt } : {}),
|
|
79
87
|
...(priorityValue !== undefined ? { priorityValue } : {}),
|
|
80
|
-
|
|
88
|
+
// The app stores and renders durationEstimate as seconds (web DurationView).
|
|
89
|
+
...(durationEstimate !== undefined ? { durationEstimate: durationEstimate * 60 } : {}),
|
|
81
90
|
...(requiresCompletion !== undefined ? { requiresCompletion } : {}),
|
|
82
91
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
92
|
+
// The backend files a create under the profile's active org at write time, and the body
|
|
93
|
+
// cannot pin it, so the org named in the prompt is re-checked after approval.
|
|
94
|
+
let promptedOrg = null;
|
|
95
|
+
return withConfirmation(server, "create_task", async () => {
|
|
96
|
+
promptedOrg = await activeOrg(client);
|
|
97
|
+
return {
|
|
98
|
+
summary: `Create Planner task "${name}" in organization ${orgLabel(promptedOrg)}.`,
|
|
99
|
+
request: { method: "POST", path: "/api/task", body },
|
|
100
|
+
};
|
|
101
|
+
}, async () => {
|
|
102
|
+
const current = await activeOrg(client);
|
|
103
|
+
if (current?.id !== promptedOrg?.id) {
|
|
104
|
+
throw new Error(`Your active organization changed to ${orgLabel(current)} while the prompt was ` +
|
|
105
|
+
`open (you approved ${orgLabel(promptedOrg)}). No request was sent.`);
|
|
106
|
+
}
|
|
107
|
+
// A create has no prior version, so the backend does not consult If-Match here.
|
|
108
|
+
return client.post("/api/task", body);
|
|
109
|
+
});
|
|
89
110
|
});
|
|
90
111
|
server.registerTool("complete_task", {
|
|
91
112
|
title: "Complete Planner task",
|
|
@@ -120,7 +141,8 @@ export function registerPlannerTools(server, client) {
|
|
|
120
141
|
// absent from the writable list, so the funnel ignores them.
|
|
121
142
|
const body = { ...task, completedAt: new Date().toISOString() };
|
|
122
143
|
return withConfirmation(server, "complete_task", () => ({
|
|
123
|
-
summary: `Complete Planner task "${String(task.name ?? taskId)}"
|
|
144
|
+
summary: `Complete Planner task "${String(task.name ?? taskId)}" in organization ` +
|
|
145
|
+
`${orgLabel(task.organization)}.`,
|
|
124
146
|
request: { method: "POST", path: "/api/task", body },
|
|
125
147
|
}), () => client.post("/api/task", body,
|
|
126
148
|
// Without this the backend's ConcurrencyGuard records a MISSING_TOKEN stale
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planner.js","sourceRoot":"","sources":["../../src/tools/planner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE/D,MAAM,UAAU,oBAAoB,
|
|
1
|
+
{"version":3,"file":"planner.js","sourceRoot":"","sources":["../../src/tools/planner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAe,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE/D,MAAM,UAAU,oBAAoB,CAClC,MAAiB,EACjB,MAAgB,EAChB,EAAE,aAAa,EAA8B;IAE7C,MAAM,CAAC,YAAY,CACjB,sBAAsB,EACtB;QACE,KAAK,EAAE,sBAAsB;QAC7B,WAAW,EACT,6UAA6U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p",
|
|
3
|
-
"version": "26.
|
|
4
|
-
"description": "MCP server exposing PracticeMakes prod data (read-only
|
|
3
|
+
"version": "26.1127.2",
|
|
4
|
+
"description": "MCP server exposing PracticeMakes prod data to Claude (read-only unless PM_ENABLE_WRITES opts in to write tools), authenticated as the calling user's own Firebase identity.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|