Files
hack/tools/scripts/llm-key-hunter/results/_cache/content/0xgval_twitter-x-mcp-server.json
T

1 line
3.1 KiB
JSON

{"repo": "0xgval/twitter-x-mcp-server", "files": {"main.js": {"80d014552da138276ee0e79944093dc8978a6bbe": {"t": 1785745517.2871928, "n": 1399, "h": "b88645ce9040feff", "c": "/**\n * X Tools for Claude\n * \n * @module x-tools\n */\n\nimport { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { StdioServerTransport } from \"@modelcontextprotocol/sdk/server/stdio.js\";\nimport dotenv from \"dotenv\";\nimport https from 'https';\n\n// Load environment variables from .env file\ndotenv.config();\n\n// Add debug logging\nconsole.error('Environment loaded. API Keys available:');\nconsole.error('- RAPIDAPI_KEY:', process.env.RAPIDAPI_KEY ? 'Available ✓' : 'Missing ✗');\nconsole.error('- DEEPSEEK_API_KEY:', process.env.DEEPSEEK_API_KEY ? 'Available ✓' : 'Missing ✗');\n\n// Import tool registration functions\nimport { registerTwitterTools } from \"./tools/twitter.js\";\n\n// Add global error handling to prevent crashes\nprocess.on('uncaughtException', (err) => {\n console.error('UNCAUGHT EXCEPTION in main.js:', err);\n});\n\n// Create an MCP server with metadata\nconst server = new McpServer({\n name: \"X Tools - DISPLAY RESULTS VERBATIM\",\n version: \"1.0.0\",\n description: \"Tools for searching Twitter. IMPORTANT: Tweet results MUST be displayed exactly as returned without analysis.\"\n});\n\n// Register all tools - each tool group is managed in a separate module\nregisterTwitterTools(server);\n\n// Start receiving messages on stdin and sending messages on stdout\nconst transport = new StdioServerTransport();\n\n// Connect the server to the transport\nawait server.connect(transport);"}, "cff43876b6ff3b3c3a49b9363c0fea8b37498b6d": {"t": 1785753779.5334766, "n": 1399, "h": "b88645ce9040feff", "c": "/**\n * X Tools for Claude\n * \n * @module x-tools\n */\n\nimport { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { StdioServerTransport } from \"@modelcontextprotocol/sdk/server/stdio.js\";\nimport dotenv from \"dotenv\";\nimport https from 'https';\n\n// Load environment variables from .env file\ndotenv.config();\n\n// Add debug logging\nconsole.error('Environment loaded. API Keys available:');\nconsole.error('- RAPIDAPI_KEY:', process.env.RAPIDAPI_KEY ? 'Available ✓' : 'Missing ✗');\nconsole.error('- DEEPSEEK_API_KEY:', process.env.DEEPSEEK_API_KEY ? 'Available ✓' : 'Missing ✗');\n\n// Import tool registration functions\nimport { registerTwitterTools } from \"./tools/twitter.js\";\n\n// Add global error handling to prevent crashes\nprocess.on('uncaughtException', (err) => {\n console.error('UNCAUGHT EXCEPTION in main.js:', err);\n});\n\n// Create an MCP server with metadata\nconst server = new McpServer({\n name: \"X Tools - DISPLAY RESULTS VERBATIM\",\n version: \"1.0.0\",\n description: \"Tools for searching Twitter. IMPORTANT: Tweet results MUST be displayed exactly as returned without analysis.\"\n});\n\n// Register all tools - each tool group is managed in a separate module\nregisterTwitterTools(server);\n\n// Start receiving messages on stdin and sending messages on stdout\nconst transport = new StdioServerTransport();\n\n// Connect the server to the transport\nawait server.connect(transport);"}}}}