@mthines/reaper-mcp 0.3.0 → 0.4.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.
- package/main.js +7 -0
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -540,6 +540,7 @@ function createServer() {
|
|
|
540
540
|
import { existsSync as existsSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
541
541
|
import { join as join3, dirname } from "node:path";
|
|
542
542
|
import { fileURLToPath } from "node:url";
|
|
543
|
+
import { homedir as homedir2 } from "node:os";
|
|
543
544
|
|
|
544
545
|
// apps/reaper-mcp-server/src/cli.ts
|
|
545
546
|
import { copyFileSync, existsSync, mkdirSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -635,6 +636,7 @@ async function setup() {
|
|
|
635
636
|
async function installSkills() {
|
|
636
637
|
console.log("REAPER MCP \u2014 Install AI Mix Engineer Skills\n");
|
|
637
638
|
const targetDir = process.cwd();
|
|
639
|
+
const globalClaudeDir = join3(homedir2(), ".claude");
|
|
638
640
|
const knowledgeSrc = resolveAssetDir(__dirname, "knowledge");
|
|
639
641
|
const knowledgeDest = join3(targetDir, "knowledge");
|
|
640
642
|
if (existsSync2(knowledgeSrc)) {
|
|
@@ -667,6 +669,11 @@ async function installSkills() {
|
|
|
667
669
|
} else {
|
|
668
670
|
console.log("Claude agents not found in package. Skipping.");
|
|
669
671
|
}
|
|
672
|
+
const globalAgentsDir = join3(globalClaudeDir, "agents");
|
|
673
|
+
if (existsSync2(agentsSrc)) {
|
|
674
|
+
const count = copyDirSync(agentsSrc, globalAgentsDir);
|
|
675
|
+
console.log(`Installed Claude agents (global): ${count} files \u2192 ${globalAgentsDir}`);
|
|
676
|
+
}
|
|
670
677
|
const mcpJsonPath = join3(targetDir, ".mcp.json");
|
|
671
678
|
if (createMcpJson(mcpJsonPath)) {
|
|
672
679
|
console.log(`
|
package/package.json
CHANGED