@vfarcic/dot-ai 0.3.0 → 0.3.1

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 (2) hide show
  1. package/dist/mcp/server.js +38 -0
  2. package/package.json +1 -1
@@ -44,6 +44,44 @@ const mcp_js_1 = require("../interfaces/mcp.js");
44
44
  const index_js_1 = require("../core/index.js");
45
45
  async function main() {
46
46
  try {
47
+ // Enhanced debugging - log startup environment
48
+ process.stderr.write('=== MCP Server Startup Debug Info ===\n');
49
+ process.stderr.write(`Node.js version: ${process.version}\n`);
50
+ process.stderr.write(`Process ID: ${process.pid}\n`);
51
+ process.stderr.write(`Current working directory: ${process.cwd()}\n`);
52
+ process.stderr.write(`Command line arguments: ${JSON.stringify(process.argv)}\n`);
53
+ // Log all environment variables for debugging
54
+ process.stderr.write('=== Environment Variables ===\n');
55
+ const envVars = ['ANTHROPIC_API_KEY', 'KUBECONFIG', 'DOT_AI_SESSION_DIR', 'NODE_ENV', 'PATH'];
56
+ envVars.forEach(varName => {
57
+ const value = process.env[varName];
58
+ if (varName === 'ANTHROPIC_API_KEY' && value) {
59
+ process.stderr.write(`${varName}: ${value.substring(0, 20)}...\n`);
60
+ }
61
+ else {
62
+ process.stderr.write(`${varName}: ${value || 'NOT SET'}\n`);
63
+ }
64
+ });
65
+ // Log file system access
66
+ process.stderr.write('=== File System Check ===\n');
67
+ const fs = await Promise.resolve().then(() => __importStar(require('fs')));
68
+ const path = await Promise.resolve().then(() => __importStar(require('path')));
69
+ // Check if prompts directory exists
70
+ const promptsDir = path.join(process.cwd(), 'prompts');
71
+ process.stderr.write(`Checking prompts directory: ${promptsDir}\n`);
72
+ try {
73
+ if (fs.existsSync(promptsDir)) {
74
+ const files = fs.readdirSync(promptsDir);
75
+ process.stderr.write(`Prompts directory exists with ${files.length} files: ${files.join(', ')}\n`);
76
+ }
77
+ else {
78
+ process.stderr.write('WARNING: Prompts directory does not exist\n');
79
+ }
80
+ }
81
+ catch (error) {
82
+ process.stderr.write(`ERROR checking prompts directory: ${error}\n`);
83
+ }
84
+ process.stderr.write('=== Starting Configuration Validation ===\n');
47
85
  // Validate required environment variables
48
86
  process.stderr.write('Validating MCP server configuration...\n');
49
87
  // Check session directory configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vfarcic/dot-ai",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Universal Kubernetes application deployment agent with CLI and MCP interfaces",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",