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>
This commit is contained in:
16
mcp-extension/scripts/sync-core.mjs
Normal file
16
mcp-extension/scripts/sync-core.mjs
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/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}`);
|
||||
Reference in New Issue
Block a user