nginx.conf•2.35 kB
events {
worker_connections 1024;
}
http {
upstream mcp-server {
server backstage-mcp:3000;
}
server {
listen 80;
server_name localhost;
location / {
return 200 '
<!DOCTYPE html>
<html>
<head>
<title>Backstage MCP Server</title>
<style>
body { font-family: Arial, sans-serif; margin: 40px; }
.container { max-width: 800px; margin: 0 auto; }
.status { color: #4CAF50; font-weight: bold; }
code { background: #f5f5f5; padding: 2px 4px; border-radius: 3px; }
pre { background: #f5f5f5; padding: 15px; border-radius: 5px; overflow-x: auto; }
</style>
</head>
<body>
<div class="container">
<h1>🚀 Backstage MCP Server</h1>
<p class="status">✅ Server is running and healthy!</p>
<h2>Configuration for Cursor/Claude Desktop</h2>
<p>Add this to your MCP configuration:</p>
<pre><code>{
"mcpServers": {
"backstage": {
"command": "docker",
"args": ["exec", "-i", "backstage-mcp-server", "node", "dist/index.js"]
}
}
}</code></pre>
<h2>Available Tools</h2>
<ul>
<li><strong>get_backstage_overview</strong> - Framework overview and core concepts</li>
<li><strong>get_plugin_development_guide</strong> - Complete plugin development guide</li>
<li><strong>get_api_reference</strong> - API documentation and endpoints</li>
<li><strong>get_community_resources</strong> - Community channels and support</li>
<li><strong>get_backstage_examples</strong> - Code examples and samples</li>
<li><strong>search_backstage_knowledge</strong> - Search all knowledge</li>
<li><strong>get_plugin_scaffold_template</strong> - Generate plugin templates</li>
</ul>
<h2>Quick Start</h2>
<ol>
<li>Make sure Docker container is running</li>
<li>Add the MCP configuration to your client</li>
<li>Start asking questions about Backstage!</li>
</ol>
</div>
</body>
</html>';
add_header Content-Type text/html;
}
location /health {
return 200 '{"status": "healthy", "service": "backstage-mcp-server"}';
add_header Content-Type application/json;
}
}
}