Files
claude-ms-todo/mcp-extension/scripts/sync-core.mjs
Spencer McGuire 2162aac515 Initial commit: Microsoft To Do for Claude (skill + .mcpb extension)
Claude Code skill (CLI over Microsoft Graph, delegated auth-code + PKCE) and a
Claude Desktop .mcpb extension sharing one dependency-free core client.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 17:31:48 -06:00

17 lines
728 B
JavaScript

#!/usr/bin/env node
// Copy the canonical core client into the extension so the bundle is
// self-contained. The single source of truth lives in the skill; this keeps the
// extension's copy (server/lib/graph.mjs) in sync. Run before packing.
import { copyFileSync, mkdirSync } from "node:fs";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
const here = dirname(fileURLToPath(import.meta.url));
const src = join(here, "..", "..", ".claude", "skills", "ms-todo", "scripts", "lib", "graph.mjs");
const dest = join(here, "..", "server", "lib", "graph.mjs");
mkdirSync(dirname(dest), { recursive: true });
copyFileSync(src, dest);
console.log(`Synced core client:\n ${src}\n -> ${dest}`);