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 Interrogation MCP Server
A Model Context Protocol (MCP) based police interrogation simulation server powered by OpenAI.
📌 Key Features
- MCP Integration:
- Built using Model Context Protocol SDK
- HTTP transport support
- Dynamic resource management (officer-profile, conduct-interrogation)
- OpenAI Integration:
- Uses GPT-3.5-turbo model
- Generates dynamic interrogation strategies
- Simulates suspect responses
- Creates realistic dialogue flows
- Core Components:
- Police officer profile management
- Smart interrogation mechanics
- Suspect behavior simulation
- Crime type and evidence integration
🚀 Installation
⚙️ Configuration
.env
file:
Configurable parameters in config.ts
:
- AI model selection
- Maximum token count
- Temperature parameter (creativity level)
🌐 API Endpoints
Officer Profile
GET /profile/:badgeNumber
Start Interrogation
POST /interrogations/{suspectId}
Suspect Response
POST /interrogations/{suspectId}/respond
🔍 Example Usage
✅ Data Validation
All endpoints include strong type checking and validation using Zod library:
- Pressure Level: 0-100 (required)
- Suspect Name: string format
- Evidence: string array (optional)
🔒 Security
- Sensitive data (OpenAI API key) managed through environment variables
- HTTPS enforcement in production
- Secure input handling with request validation
🤝 Contribution
- Fork the repository
- Create new branch (
feat/my-feature
orfix/issue-number
) - Commit your changes
- Push to the branch
- Open a Pull Request
📜 License
Distributed under the MIT License.
This server cannot be installed
A Model Context Protocol server that simulates police interrogations, enabling users to create officer profiles and conduct dynamic interrogations with simulated suspect responses based on configurable parameters like pressure level, evidence, and crime type.