myaidev-method 0.2.22 → 0.2.23
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/USER_GUIDE.md +453 -48
- package/bin/cli.js +18 -0
- package/content-rules.example.md +80 -0
- package/dist/mcp/mcp-launcher.js +237 -0
- package/dist/server/.tsbuildinfo +1 -1
- package/dist/server/auth/layers.d.ts +1 -1
- package/dist/server/auth/services/AuthService.d.ts +1 -1
- package/dist/server/auth/services/TokenService.js.map +1 -1
- package/dist/server/auth/services/example.d.ts +5 -5
- package/package.json +16 -16
- package/src/index.js +21 -8
- package/src/lib/update-manager.js +2 -1
- package/src/lib/visual-config-utils.js +321 -295
- package/src/lib/visual-generation-utils.js +1000 -811
- package/src/scripts/configure-wordpress-mcp.js +8 -3
- package/src/scripts/generate-visual-cli.js +365 -235
- package/src/scripts/ping.js +250 -0
- package/src/scripts/wordpress/publish-to-wordpress.js +165 -0
- package/src/server/auth/services/TokenService.ts +1 -1
- package/src/templates/claude/agents/content-rules-setup.md +657 -0
- package/src/templates/claude/agents/content-writer.md +328 -1
- package/src/templates/claude/agents/visual-content-generator.md +182 -4
- package/src/templates/claude/commands/myai-configure.md +1 -1
- package/src/templates/claude/commands/myai-content-rules-setup.md +204 -0
- package/src/templates/codex/commands/myai-content-rules-setup.md +85 -0
- package/src/templates/gemini/commands/myai-content-rules-setup.toml +57 -0
- package/.claude/mcp/sparc-orchestrator-server.js +0 -607
- package/.claude/mcp/wordpress-server.js +0 -1277
- package/src/agents/content-writer-prompt.md +0 -164
- package/src/agents/content-writer.json +0 -70
- package/src/templates/claude/mcp_config.json +0 -74
- package/src/templates/claude/slash_commands.json +0 -166
- package/src/templates/scripts/configure-wordpress-mcp.js +0 -181
|
@@ -47,11 +47,15 @@ export async function configureWordPressMCP(projectDir = process.cwd()) {
|
|
|
47
47
|
|
|
48
48
|
// Create MCP configuration
|
|
49
49
|
const mcpConfigPath = path.join(projectDir, '.mcp.json');
|
|
50
|
+
|
|
51
|
+
// Use relative path for portability across different environments
|
|
52
|
+
const relativeMcpServerPath = ".claude/mcp/wordpress-server.js";
|
|
53
|
+
|
|
50
54
|
const mcpConfig = {
|
|
51
55
|
mcpServers: {
|
|
52
56
|
wordpress: {
|
|
53
57
|
command: "node",
|
|
54
|
-
args: [
|
|
58
|
+
args: [relativeMcpServerPath],
|
|
55
59
|
env: {
|
|
56
60
|
WORDPRESS_URL: process.env.WORDPRESS_URL,
|
|
57
61
|
WORDPRESS_USERNAME: process.env.WORDPRESS_USERNAME,
|
|
@@ -101,7 +105,8 @@ export async function configureWordPressMCP(projectDir = process.cwd()) {
|
|
|
101
105
|
const { spawn } = await import('child_process');
|
|
102
106
|
|
|
103
107
|
return new Promise((resolve, reject) => {
|
|
104
|
-
const testProcess = spawn('node', [
|
|
108
|
+
const testProcess = spawn('node', [relativeMcpServerPath], {
|
|
109
|
+
cwd: projectDir, // Set working directory to project root
|
|
105
110
|
env: { ...process.env, ...mcpConfig.mcpServers.wordpress.env },
|
|
106
111
|
stdio: ['pipe', 'pipe', 'pipe']
|
|
107
112
|
});
|
|
@@ -142,7 +147,7 @@ export async function configureWordPressMCP(projectDir = process.cwd()) {
|
|
|
142
147
|
console.log(` • Username: ${process.env.WORDPRESS_USERNAME}`);
|
|
143
148
|
console.log(` • Gutenberg mode: ${process.env.WORDPRESS_USE_GUTENBERG || 'false'}`);
|
|
144
149
|
console.log(` • MCP config: ${mcpConfigPath}`);
|
|
145
|
-
console.log(` • MCP server: ${
|
|
150
|
+
console.log(` • MCP server: ${relativeMcpServerPath}`);
|
|
146
151
|
|
|
147
152
|
console.log('\n🔄 Next steps:');
|
|
148
153
|
console.log(' 1. Restart Claude Code to load the new MCP configuration');
|