myaidev-method 0.2.12 → 0.2.16

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.
Files changed (32) hide show
  1. package/.env.example +40 -0
  2. package/CHANGELOG.md +96 -0
  3. package/CONTENT_CREATION_GUIDE.md +3399 -0
  4. package/DEVELOPER_USE_CASES.md +2085 -0
  5. package/README.md +209 -2
  6. package/VISUAL_GENERATION_FILE_ORGANIZATION.md +105 -0
  7. package/bin/cli.js +46 -0
  8. package/package.json +18 -3
  9. package/src/lib/asset-management.js +532 -0
  10. package/src/lib/visual-config-utils.js +424 -0
  11. package/src/lib/visual-generation-utils.js +880 -0
  12. package/src/scripts/configure-visual-apis.js +413 -0
  13. package/src/scripts/generate-visual-cli.js +279 -0
  14. package/src/templates/claude/agents/content-production-coordinator.md +111 -0
  15. package/src/templates/claude/agents/content-writer.md +209 -4
  16. package/src/templates/claude/agents/proprietary-content-verifier.md +96 -0
  17. package/src/templates/claude/agents/visual-content-generator.md +520 -0
  18. package/src/templates/claude/commands/myai-content-writer.md +33 -8
  19. package/src/templates/claude/commands/myai-coordinate-content.md +136 -0
  20. package/src/templates/claude/commands/myai-generate-visual.md +318 -0
  21. package/src/templates/codex/commands/myai-generate-visual.md +307 -0
  22. package/src/templates/gemini/commands/myai-generate-visual.md +200 -0
  23. package/.claude/CLAUDE.md +0 -52
  24. package/.claude/agents/content-writer.md +0 -155
  25. package/.claude/agents/wordpress-admin.md +0 -271
  26. package/.claude/commands/myai-configure.md +0 -44
  27. package/.claude/commands/myai-content-writer.md +0 -78
  28. package/.claude/commands/myai-wordpress-publish.md +0 -120
  29. package/.claude/mcp/gutenberg-converter.js +0 -447
  30. package/.claude/mcp/mcp-config.json +0 -184
  31. package/.claude/mcp/wordpress-server-simple.js +0 -182
  32. package/.claude/settings.local.json +0 -12
@@ -1,184 +0,0 @@
1
- {
2
- "servers": [
3
- {
4
- "name": "myaidev-wordpress-mcp-server",
5
- "version": "2.0.0",
6
- "description": "Enhanced WordPress MCP Server with session management and memory persistence",
7
- "mcpName": "io.github.myaione/myaidev-method-wordpress",
8
- "transport": "stdio",
9
- "command": "node .claude/mcp/wordpress-server.js"
10
- },
11
- {
12
- "name": "myaidev-sparc-orchestrator",
13
- "version": "1.0.0",
14
- "description": "SPARC workflow orchestration MCP server for systematic development",
15
- "mcpName": "io.github.myaione/myaidev-method-sparc",
16
- "transport": "stdio",
17
- "command": "node .claude/mcp/sparc-orchestrator-server.js"
18
- },
19
- {
20
- "name": "chrome-devtools-mcp",
21
- "version": "1.0.0",
22
- "description": "Chrome DevTools Protocol MCP server for browser testing and debugging",
23
- "mcpName": "chrome-devtools-mcp",
24
- "transport": "stdio",
25
- "command": "npx chrome-devtools-mcp"
26
- }
27
- ],
28
- "wordpress_server": {
29
- "sparc_tools": [
30
- {
31
- "name": "sparc_orchestrate",
32
- "description": "Orchestrate the complete 5-phase SPARC development workflow with intelligent task routing",
33
- "category": "orchestration"
34
- },
35
- {
36
- "name": "sparc_status",
37
- "description": "Get status of current SPARC workflow execution",
38
- "category": "monitoring"
39
- },
40
- {
41
- "name": "sparc_phase_execute",
42
- "description": "Execute a single SPARC phase with detailed configuration",
43
- "category": "execution"
44
- },
45
- {
46
- "name": "sparc_workflow_history",
47
- "description": "Get history of SPARC workflow executions",
48
- "category": "monitoring"
49
- },
50
- {
51
- "name": "sparc_task_results",
52
- "description": "Get detailed results from a completed SPARC workflow",
53
- "category": "results"
54
- }
55
- ],
56
- "chrome_devtools_tools": [
57
- {
58
- "name": "cdp_connect",
59
- "description": "Connect to Chrome DevTools Protocol for browser automation",
60
- "category": "connection"
61
- },
62
- {
63
- "name": "cdp_navigate",
64
- "description": "Navigate browser to a URL",
65
- "category": "navigation"
66
- },
67
- {
68
- "name": "cdp_screenshot",
69
- "description": "Take screenshot of current page",
70
- "category": "testing"
71
- },
72
- {
73
- "name": "cdp_evaluate",
74
- "description": "Execute JavaScript in browser context",
75
- "category": "testing"
76
- },
77
- {
78
- "name": "cdp_network_monitor",
79
- "description": "Monitor network requests and responses",
80
- "category": "testing"
81
- },
82
- {
83
- "name": "cdp_console_logs",
84
- "description": "Capture browser console logs",
85
- "category": "debugging"
86
- }
87
- ],
88
- "wordpress_tools": [
89
- {
90
- "name": "wp_session_create",
91
- "description": "Create a new session for tracking operations and maintaining context",
92
- "category": "session_management"
93
- },
94
- {
95
- "name": "wp_session_status",
96
- "description": "Get current session information and operation history",
97
- "category": "session_management"
98
- },
99
- {
100
- "name": "wp_memory_store",
101
- "description": "Store data in memory for persistence across operations",
102
- "category": "memory_management"
103
- },
104
- {
105
- "name": "wp_memory_retrieve",
106
- "description": "Retrieve stored data from memory",
107
- "category": "memory_management"
108
- },
109
- {
110
- "name": "wp_memory_list",
111
- "description": "List all stored data in a namespace",
112
- "category": "memory_management"
113
- },
114
- {
115
- "name": "wp_health_check",
116
- "description": "Comprehensive health check of WordPress site and MCP server",
117
- "category": "health_monitoring"
118
- },
119
- {
120
- "name": "wp_get_site_info",
121
- "description": "Get WordPress site statistics, version, and health information",
122
- "category": "wordpress_operations"
123
- },
124
- {
125
- "name": "wp_create_post",
126
- "description": "Create a new WordPress post or page with enhanced tracking and validation",
127
- "category": "wordpress_operations"
128
- },
129
- {
130
- "name": "wp_update_post",
131
- "description": "Update an existing WordPress post",
132
- "category": "wordpress_operations"
133
- },
134
- {
135
- "name": "wp_delete_post",
136
- "description": "Delete a WordPress post (move to trash)",
137
- "category": "wordpress_operations"
138
- },
139
- {
140
- "name": "wp_list_posts",
141
- "description": "Get posts with filtering options",
142
- "category": "wordpress_operations"
143
- },
144
- {
145
- "name": "wp_batch_publish",
146
- "description": "Publish multiple posts from markdown files with enhanced tracking",
147
- "category": "batch_operations"
148
- }
149
- ],
150
- "capabilities": [
151
- "session_management",
152
- "memory_persistence",
153
- "health_monitoring",
154
- "wordpress_integration",
155
- "batch_operations",
156
- "gutenberg_support",
157
- "error_tracking",
158
- "sparc_orchestration",
159
- "workflow_management",
160
- "browser_automation",
161
- "devtools_integration"
162
- ],
163
- "environment": {
164
- "required": [
165
- "WORDPRESS_URL",
166
- "WORDPRESS_USERNAME",
167
- "WORDPRESS_APP_PASSWORD"
168
- ],
169
- "optional": [
170
- "WORDPRESS_USE_GUTENBERG"
171
- ]
172
- },
173
- "installation": {
174
- "command": "npm install myaidev-method",
175
- "global_command": "npm install -g myaidev-method",
176
- "setup_command": "npx myaidev-method init --claude"
177
- },
178
- "usage": {
179
- "start_server": "npm run mcp:start",
180
- "health_check": "npm run mcp:health",
181
- "status_check": "npm run mcp:status",
182
- "publish_command": "/myai-wordpress-publish \"your-file.md\" --status draft"
183
- }
184
- }
@@ -1,182 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
4
- import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
5
- import fetch from "node-fetch";
6
- import dotenv from "dotenv";
7
-
8
- // Load environment variables
9
- dotenv.config();
10
-
11
- // WordPress API configuration from environment
12
- const WORDPRESS_URL = process.env.WORDPRESS_URL;
13
- const WORDPRESS_USERNAME = process.env.WORDPRESS_USERNAME;
14
- const WORDPRESS_APP_PASSWORD = process.env.WORDPRESS_APP_PASSWORD;
15
-
16
- // Validate environment variables
17
- if (!WORDPRESS_URL || !WORDPRESS_USERNAME || !WORDPRESS_APP_PASSWORD) {
18
- console.error("Missing required environment variables: WORDPRESS_URL, WORDPRESS_USERNAME, WORDPRESS_APP_PASSWORD");
19
- process.exit(1);
20
- }
21
-
22
- // Create MCP server
23
- const server = new McpServer({
24
- name: "wordpress-mcp-server",
25
- version: "2.0.0",
26
- description: "Enhanced WordPress MCP Server with session management"
27
- });
28
-
29
- // Simple WordPress API helper
30
- async function wordpressRequest(endpoint, method = 'GET', data = null) {
31
- const baseUrl = WORDPRESS_URL.replace(/\/$/, '');
32
- const apiPath = '/wp-json/wp/v2';
33
- const auth = Buffer.from(`${WORDPRESS_USERNAME}:${WORDPRESS_APP_PASSWORD}`).toString('base64');
34
-
35
- const options = {
36
- method,
37
- headers: {
38
- 'Authorization': `Basic ${auth}`,
39
- 'Content-Type': 'application/json'
40
- }
41
- };
42
-
43
- if (data && method !== 'GET') {
44
- options.body = JSON.stringify(data);
45
- }
46
-
47
- const response = await fetch(`${baseUrl}${apiPath}${endpoint}`, options);
48
-
49
- if (!response.ok) {
50
- const error = await response.text();
51
- throw new Error(`WordPress API Error: ${response.status} - ${error}`);
52
- }
53
-
54
- return response.json();
55
- }
56
-
57
- // Health check tool
58
- server.registerTool("wp_health_check", {
59
- title: "WordPress Health Check",
60
- description: "Check WordPress API connectivity",
61
- inputSchema: {
62
- type: "object",
63
- properties: {},
64
- additionalProperties: false
65
- }
66
- }, async (params) => {
67
- try {
68
- // Test basic API connectivity
69
- const response = await wordpressRequest('/');
70
-
71
- return {
72
- content: [{
73
- type: "text",
74
- text: JSON.stringify({
75
- success: true,
76
- message: "WordPress API is responding",
77
- site_url: WORDPRESS_URL,
78
- server_version: "2.0.0"
79
- }, null, 2)
80
- }]
81
- };
82
- } catch (error) {
83
- return {
84
- content: [{
85
- type: "text",
86
- text: JSON.stringify({
87
- success: false,
88
- error: error.message
89
- }, null, 2)
90
- }]
91
- };
92
- }
93
- });
94
-
95
- // Create post tool
96
- server.registerTool("wp_create_post", {
97
- title: "Create WordPress Post",
98
- description: "Create a new WordPress post",
99
- inputSchema: {
100
- type: "object",
101
- properties: {
102
- title: {
103
- type: "string",
104
- description: "Post title"
105
- },
106
- content: {
107
- type: "string",
108
- description: "Post content"
109
- },
110
- status: {
111
- type: "string",
112
- enum: ["draft", "publish", "private"],
113
- description: "Post status",
114
- default: "draft"
115
- },
116
- excerpt: {
117
- type: "string",
118
- description: "Post excerpt"
119
- }
120
- },
121
- required: ["title", "content"],
122
- additionalProperties: false
123
- }
124
- }, async (params) => {
125
- try {
126
- const postData = {
127
- title: params.title,
128
- content: params.content,
129
- status: params.status || 'draft'
130
- };
131
-
132
- if (params.excerpt) {
133
- postData.excerpt = params.excerpt;
134
- }
135
-
136
- const post = await wordpressRequest('/posts', 'POST', postData);
137
-
138
- return {
139
- content: [{
140
- type: "text",
141
- text: JSON.stringify({
142
- success: true,
143
- post_id: post.id,
144
- post_url: post.link,
145
- edit_url: `${WORDPRESS_URL.replace(/\/$/, '')}/wp-admin/post.php?post=${post.id}&action=edit`,
146
- status: post.status,
147
- message: "Post created successfully"
148
- }, null, 2)
149
- }]
150
- };
151
- } catch (error) {
152
- return {
153
- content: [{
154
- type: "text",
155
- text: JSON.stringify({
156
- success: false,
157
- error: error.message
158
- }, null, 2)
159
- }]
160
- };
161
- }
162
- });
163
-
164
- // Start the MCP server
165
- async function main() {
166
- try {
167
- const transport = new StdioServerTransport();
168
- await server.connect(transport);
169
-
170
- console.error("Enhanced WordPress MCP Server v2.0.0 running...");
171
- console.error(`Connected to WordPress site: ${WORDPRESS_URL}`);
172
-
173
- } catch (error) {
174
- console.error("Failed to start server:", error.message);
175
- process.exit(1);
176
- }
177
- }
178
-
179
- main().catch((error) => {
180
- console.error("Server startup error:", error);
181
- process.exit(1);
182
- });
@@ -1,12 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(npm version:*)",
5
- "Bash(node:*)",
6
- "mcp__sequential-thinking__sequentialthinking",
7
- "WebFetch(domain:github.com)"
8
- ],
9
- "deny": [],
10
- "ask": []
11
- }
12
- }