LSPD Interrogation MCP Server

by ziyacivan

Integrations

  • Handles environment variable management for sensitive data like the OpenAI API key.

  • Utilizes GPT-3.5-turbo model to generate dynamic interrogation strategies, simulate suspect responses, and create realistic dialogue flows for police interrogation simulations.

  • Manages package dependencies for the MCP server installation and execution.

LSPD尋問MCPサーバー

OpenAI を搭載したモデル コンテキスト プロトコル (MCP) ベースの警察尋問シミュレーション サーバー。

📌 主な機能

  • MCP統合:
    • モデルコンテキストプロトコルSDKを使用して構築
    • HTTPトランスポートのサポート
    • 動的リソース管理(警察官プロファイル、行動尋問)
  • OpenAI統合:
    • GPT-3.5-turboモデルを使用
    • 動的な尋問戦略を生成する
    • 容疑者の反応をシミュレートする
    • リアルな会話の流れを創り出す
  • コアコンポーネント:
    • 警察官のプロフィール管理
    • スマートな尋問メカニズム
    • 容疑者の行動シミュレーション
    • 犯罪の種類と証拠の統合

🚀 インストール

pnpm install # Required environment variables cp .env.example .env # Start server pnpm start

⚙️ 構成

.envファイル:

OPENAI_API_KEY=your_api_key_here

config.tsで設定可能なパラメータ:

  • AIモデルの選択
  • 最大トークン数
  • 温度パラメータ(創造性レベル)

🌐 APIエンドポイント

役員プロフィール

GET /profile/:badgeNumber

curl http://localhost:3000/profile/1234

尋問開始

POST /interrogations/{suspectId}

{ "suspectName": "John Doe", "pressureLevel": 75, "crime": "Armed robbery", "evidence": ["Fingerprint", "Security camera footage"] }

容疑者の対応

POST /interrogations/{suspectId}/respond

{ "suspectName": "John Doe", "officerStatement": "Your fingerprints were found at the crime scene!", "guilt": 85, "personality": "cowardly", "previousResponses": ["I'm innocent!"] }

🔍 使用例

# Get officer profile curl http://localhost:3000/profile/1234 # Start interrogation curl -X POST http://localhost:3000/interrogations/suspect_01 \ -H "Content-Type: application/json" \ -d '{ "suspectName": "John Doe", "pressureLevel": 80, "crime": "Drug trafficking", "evidence": ["Search records", "Confidential witness statement"] }'

✅ データ検証

すべてのエンドポイントには、Zod ライブラリを使用した強力な型チェックと検証が含まれています。

  • 圧力レベル: 0~100 (必須)
  • 容疑者名: 文字列形式
  • 証拠: 文字列配列(オプション)

🔒 セキュリティ

  • 機密データ(OpenAI APIキー)は環境変数を通じて管理されます
  • 本番環境でのHTTPSの強制
  • リクエスト検証による安全な入力処理

🤝 貢献

  1. リポジトリをフォークする
  2. 新しいブランチを作成する ( feat/my-featureまたはfix/issue-number )
  3. 変更をコミットする
  4. ブランチにプッシュする
  5. プルリクエストを開く

📜 ライセンス

MIT ライセンスに基づいて配布されます。

-
security - not tested
A
license - permissive license
-
quality - not tested

警察の尋問をシミュレートするモデル コンテキスト プロトコル サーバー。ユーザーは警察官のプロファイルを作成し、圧力レベル、証拠、犯罪の種類などの設定可能なパラメータに基づいて、シミュレートされた容疑者の応答を使用して動的な尋問を実施できます。

  1. 📌 Key Features
    1. 🚀 Installation
      1. ⚙️ Configuration
        1. 🌐 API Endpoints
          1. Officer Profile
          2. Start Interrogation
          3. Suspect Response
        2. 🔍 Example Usage
          1. ✅ Data Validation
            1. 🔒 Security
              1. 🤝 Contribution
                1. 📜 License
                  ID: 9oh2b9qewf