Skip to main content
Glama

Starfleet Command — LCARS Bridge Interface

Node.js MCP SDK Express Docker License

スタートレックのLCARSコマンドインターフェースでラップされた、本番環境対応のModel Context Protocolサーバーです。
スターデイト:アクティブ。全システム正常。


◈ ミッションブリーフィング

「コンピュータは、これまでに発明された中で最も民主的なツールである。その目的は、ユーザーが要求することを何でも実行することだ。」
— 宇宙艦隊司令部指令

MCPStarfleetCommandは、インタラクティブなLCARSスタイルのWebダッシュボードを備えた拡張Model Context Protocol (MCP)サーバーです。これは、宇宙船エンタープライズ号で有名になったものと同じ美学を採用しています。Claude Code AI統合(MCP stdio経由)と美しいブラウザベースのコマンドコンソールを橋渡しし、開発者ツール、ファイルシステム操作、システム監視、Dockerスケールの可観測性を単一の統合インターフェースから提供します。


Related MCP server: Gitea MCP Proxy Agent

◈ 戦術概要

┌─────────────────────────────────────────────────────────────────────────────┐
│  ◈ DUAL-INTERFACE DESIGN                                                    │
│                                                                             │
│   [ Claude Code / AI ]                  [ Browser ]                        │
│         │  stdio MCP                        │  HTTP :3001                  │
│         ▼                                   ▼                              │
│   ┌─────────────────────────────────────────────────┐                      │
│   │          ENHANCED MCP SERVER CORE               │                      │
│   │  ┌──────────────┐    ┌──────────────────────┐   │                      │
│   │  │  MCP Engine  │    │   Express HTTP API   │   │                      │
│   │  │  (13 Tools)  │◄──►│   REST Endpoints     │   │                      │
│   │  └──────────────┘    └──────────────────────┘   │                      │
│   └─────────────────────────────────────────────────┘                      │
│         │                                   │                              │
│         ▼                                   ▼                              │
│   [ AI responds with ]           [ LCARS Dashboard UI ]                    │
│     tool results                   Interactive terminal                    │
│                                    System monitoring                       │
│                                    One-click tool execution                │
└─────────────────────────────────────────────────────────────────────────────┘

◈ 船のシステム — 機能

🖖 コマンドインターフェース

機能

ステータス

MCP stdioプロトコル

✅ アクティブ

HTTP REST API

✅ アクティブ

LCARS Webダッシュボード

✅ オンライン

インタラクティブターミナル

✅ ライブ

レスポンシブデザイン

✅ 全画面対応

🛠️ 開発者オペレーション

ツール

説明

git_status

リポジトリの状態

git_log

完全なコミット履歴

git_diff

ファイルレベルの差分

git_branch

ブランチ一覧

search_files

再帰的なコード検索

💻 システムオペレーション

ツール

説明

list_files

ディレクトリブラウジング

read_file

ファイルコンテンツビューア

write_file

ファイル書き込み

create_directory

ディレクトリ作成

run_command

シェル実行

system_info

ライブシステムメトリクス

📊 データ処理

ツール

説明

parse_json

JSON検証

format_json

JSON整形


◈ ワープスピードデプロイメント

🚀 オプションA — ローカル起動 (Node.js)

# 1. Install crew
npm install

# 2. Engage engines
npm start                # Production warp
npm run dev              # Debug mode (verbose logs)

# 3. Open LCARS console
open http://localhost:3001

🐳 オプションB — Dockerフリート (全サービス)

# Launch the full starship
docker-compose up -d

# Services come online:
#   http://localhost:3001  ← MCP Server + LCARS Dashboard
#   http://localhost:3000  ← Grafana Analytics  (change default creds in .env!)
#   http://localhost:3002  ← Real-time Analytics Engine
#   http://localhost:9090  ← Prometheus Metrics
#   http://localhost:8080  ← cAdvisor Container Monitor

# Hail all stations
docker-compose logs -f

# Stand down
docker-compose down

📖 完全なデプロイガイド → DOCKER-README.md · クイックスタート → QUICKSTART.md


◈ 宇宙船アーキテクチャ

                      ┌──────────────────────────┐
                      │   Internet / NGINX Proxy  │
                      │  Load Balancing · SSL · Rate Limiting │
                      └────────────┬─────────────┘
                                   │
            ┌──────────────────────┼──────────────────────┐
            │                      │                      │
  ┌─────────▼──────────┐  ┌────────▼────────┐  ┌─────────▼──────────┐
  │    MCP SERVER      │  │    GRAFANA      │  │    ANALYTICS       │
  │    Port  3001      │  │    Port  3000   │  │    Port  3002      │
  │  HTTP + MCP/stdio  │  │  Dashboards     │  │  Metrics / Events  │
  └─────────┬──────────┘  └────────┬────────┘  └─────────┬──────────┘
            │                      │                      │
  ┌─────────▼──────────────────────▼──────────────────────▼──────────┐
  │                           DATA LAYER                             │
  │         Redis (cache)  ·  Prometheus (metrics)  ·  Volumes       │
  └──────────────────────────────────────────────────────────────────┘

サービス

ポート

目的

MCP Server

:3001

コアサーバー · LCARSダッシュボード · REST API

Grafana

:3000

ビジュアル分析 · アラート · ダッシュボード

Analytics

:3002

リアルタイムイベント追跡

Prometheus

:9090

時系列メトリクスデータベース

cAdvisor

:8080

コンテナリソース監視

Redis

:6379

キャッシュレイヤー

NGINX

:80/:443

リバースプロキシ · SSL


◈ LCARSコマンドコンソール — ダッシュボードプレビュー

╔══════════════════════════════════════════════════════════════════╗
║ ████ STARFLEET MCP ████████████████████████████████ 47.2 GHz ████║
╠════════════╦═══════════════════════════════════════════════════╣
║ NAV        ║  ┌──────────────────────────────────────────┐    ║
║ ▶ TERMINAL ║  │ > system_info                            │    ║
║   FILES    ║  │ ✔ CPU: 12%  MEM: 4.2GB  UPTIME: 99.9%   │    ║
║   GIT      ║  │ > git_status                             │    ║
║   SYSTEM   ║  │ ✔ Branch: main  Modified: 2  Clean       │    ║
║   TOOLS    ║  └──────────────────────────────────────────┘    ║
║            ║                                                   ║
║ ▓▓▓▓▓▓▓▓▓▓ ║  [⚡ GIT STATUS] [📁 LIST FILES] [💻 SYS INFO]   ║
╚════════════╩═══════════════════════════════════════════════════╝

Starfleet Command — Dashboard Preview

ダッシュボードの機能:

  • ⚡ インタラクティブターミナル — 色分けされた出力によるリアルタイムコマンド実行

  • 📡 システム監視 — CPU、メモリ、ディスク、稼働時間のライブゲージ

  • 🗂️ ツールパネル — すべてのMCPツールをワンクリックのLCARSボタンとして利用可能

  • 🔐 ファイル操作 — ブラウザ上で直接ファイルの読み取り、書き込み、閲覧が可能

  • 📊 Git統合 — ステータス、ログ、差分、ブランチを一目で確認


◈ REST API — 通信アレイ

# ─── Status check ───────────────────────────────────────────────
curl http://localhost:3001/api/status

# ── List all 13 available tools ─────────────────────────────────
curl http://localhost:3001/api/tools

# ── Execute any tool ────────────────────────────────────────────
curl -X POST http://localhost:3001/api/tools/execute \
  -H "Content-Type: application/json" \
  -d '{"tool": "system_info", "args": {}}'

curl -X POST http://localhost:3001/api/tools/execute \
  -H "Content-Type: application/json" \
  -d '{"tool": "git_status", "args": {"repoPath": "."}}'

curl -X POST http://localhost:3001/api/tools/execute \
  -H "Content-Type: application/json" \
  -d '{"tool": "search_files", "args": {"query": "TODO", "searchDir": "."}}'

MCPプロトコル — サーバーは stdio を介して完全なMCPで通信します。Claude Codeをこれに向けることで、開発環境の拡張機能となります。


◈ 船のコンピュータ — 設定

変数

デフォルト

説明

PORT

3001

HTTPサーバーポート

DEBUG

(未設定)

DEBUG=1 を設定して詳細ログを有効化

NODE_ENV

production

環境モード

起動前に .env.example を .env にコピーして調整してください。


◈ セキュリティプロトコル

◈  Input validation on all tool parameters
◈  Path normalization — prevents directory traversal attacks
◈  Command execution sandboxed with 10 MB output buffer
◈  Error messages sanitized before client delivery
◈  NGINX rate limiting in production Docker stack
◈  Non-root container execution in Dockerfile

◈ 技術マニフェスト — 使用技術

コンポーネント

技術

ランタイム

Node.js 18+

MCPプロトコル

@modelcontextprotocol/sdk ^1.17

HTTPサーバー

Express.js 5.x

ダッシュボードUI

Vanilla HTML · CSS (LCARS) · JS

分析

カスタムメトリクスエンジン

監視

Prometheus + Grafana

キャッシュ

Redis

プロキシ

NGINX

コンテナ

Docker + Docker Compose

リント

ESLint + Prettier


◈ クルーマニフェスト — 開発

npm run dev          # Engage debug warp (DEBUG=1)
npm run lint         # ESLint sweep
npm run lint:fix     # Auto-fix lint violations
npm run format       # Prettier formatting
npm run format:check # Verify formatting
npm run audit:fix    # Fix known vulnerabilities

完全な運用リファレンス → CHEATSHEET.md · アーキテクチャの詳細 → ARCHITECTURE.md


╔═══════════════════════════════════════════════════════════╗
║  ◈  STARFLEET MCP · ALL SYSTEMS NOMINAL · WARP READY  ◈  ║
╚═══════════════════════════════════════════════════════════╝

「誰も開発したことのない場所へ、大胆に出荷せよ。」

⭐ ワープスピードへの到達に役立った場合は、このリポジトリにスターを付けてください!

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A unified MCP server with composable tools for GitHub operations, file management, shell execution, kanban boards, Discord messaging, and package management. Features role-based security, HTTP/stdio transports, and a web-based development UI.
    -
  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    A comprehensive MCP server suite that enables AI interaction with Gitea for repository management, secure command execution, and Docker monitoring. It provides additional tools for long-term memory, filesystem access, and web searching to support full development cycles.
    -
  • A
    license
    A
    quality
    D
    maintenance
    A comprehensive MCP server that enables AI models to perform local file operations, command execution, and task management across multiple platforms. It features advanced capabilities like row-level file editing, directory searching, and system monitoring with built-in security filters.
    13
    22 npm
    Mulan Permissive Software , Version 2
  • F
    license
    Not graded
    quality
    F
    maintenance
    MCP server for infrastructure discovery and remote management, enabling SSH command execution, file transfer, log tailing, and machine/service inventory with a companion web dashboard.
    2
    -