Apply Idiomark personalities to external systems - MCP servers, shopping agents, HTTP APIs, gaming bots, and more.
Overview
Projectors are adapters that project Idiomark personalities onto external systems (the opposite of adapters which extract personalities from platforms).
┌─────────────────────┐ ┌──────────────────────┐
│ Idiomark Personality │────────▶│ External System │
│ (voice, values) │ Apply │ (MCP, UCP, Games) │
└─────────────────────┘ └──────────────────────┘
Available Projectors
| Projector | Description | Package |
|---|
| MCP Server | Model Context Protocol server with personality-driven tools | @idiomark/projectors/mcp |
| UCP Adapter | Universal Commerce Protocol shopping agent | @idiomark/projectors/ucp |
| HTTP Server | REST API that responds with personality | @idiomark/projectors/http |
| Gaming | In-game NPCs and chat bots (Minecraft, Roblox, VRChat, Fortnite) | @idiomark/projectors/gaming |
Architecture
All projectors extend BaseProjectionAdapter which provides:
| Feature | Description |
|---|
| Rate Limiting | Configurable request throttling |
| Caching | Cache personality applications |
| Retry Logic | Automatic retry with exponential backoff |
| Metrics | Request counting, latency tracking |
| Events | Event emission for observability |
Personality Modes
All projectors support three personality application modes:
| Mode | Description |
|---|
strict | Maximum personality application |
balanced | Balanced personality (default) |
subtle | Subtle personality hints |
MCP Server
Creates an MCP server that exposes your personality as tools and resources.
| Tool | Description |
|---|
generate_response | Generate responses with your personality |
get_personality | Query personality metadata (voice, values, domains, knowledge) |
get_system_prompt | Get the system prompt encoding |
get_health | Health check with metrics |
Exposed Resources
| Resource | Description |
|---|
idiomark:///personality | Full Idiomark file |
idiomark:///voice | Voice profile (tone, formality, humor, etc.) |
idiomark:///values | Core values and principles |
idiomark:///domains | Areas of expertise and interest |
Usage
import { MCPServer } from "@idiomark/projectors/mcp";
import myPersonality from "./my-personality.idiomark";
const server = new MCPServer({
transport: "stdio",
port: 3000,
personality: myPersonality,
});
await server.start();
Configuration
interface MCPServerConfig {
transport: "stdio" | "http";
port?: number;
personality: IdiomarkFile;
provider?: "anthropic" | "openai" | "auto";
model?: string;
}
UCP Adapter
Creates a Universal Commerce Protocol shopping agent infused with your personality.
Features
- Personality Integration: Interaction style (tone, formality, humor)
- Values Alignment: Product recommendations matching your values
- Domain Matching: Prioritizes products in your domains of interest
- Voice Matching: Product descriptions in your communication style
Usage
import { UCPAdapter } from "@idiomark/projectors/ucp";
import myPersonality from "./my-personality.idiomark";
const adapter = new UCPAdapter({
merchantId: "merchant-123",
businessName: "My Store",
personality: myPersonality,
port: 3000,
});
const result = await adapter.start();
console.log(`Profile at: ${result.profileUrl}`);
UCP Profile Fields
interface UCPProfile {
ucp_version: string;
merchant_id: string;
business_name: string;
capabilities: UCPCapabilities;
personality_integration: {
interaction_style: {
tone: string;
formality: number;
directness: number;
humor: number;
enthusiasm: number;
};
recommendation_strategy: {
values_alignment: string[];
domain_preferences: string[];
voice_matching: boolean;
};
system_prompt: string;
};
}
HTTP Server
Simple REST API that applies your personality to incoming requests.
Endpoints
| Endpoint | Method | Description |
|---|
/generate | POST | Generate response with personality |
/stream | POST | Stream response (SSE) |
/personality | GET | View personality JSON |
/system-prompt | GET | View system prompt |
/health | GET | Health check with metrics |
Usage
import { HTTPServerAdapter } from "@idiomark/projectors/http";
import myPersonality from "./my-personality.idiomark";
const server = new HTTPServerAdapter({
port: 3000,
personality: myPersonality,
provider: "anthropic",
model: "claude-3-opus-20240229",
});
await server.start();
Example Request
curl -X POST http://localhost:3000/generate \
-H "Content-Type: application/json" \
-d '{"message": "Hello!", "mode": "balanced"}'
Gaming Adapters
Create personality-powered in-game bots and NPCs.
Supported Games
| Game | Adapter | Features |
|---|
| Minecraft | MinecraftAdapter | Chat responses, command handling |
| Roblox | RobloxAdapter | Game interaction, social features |
| VRChat | VRChatAdapter | World interactions, avatar behavior |
| Fortnite | FortniteAdapter | Battle royale chat and commands |
Usage
import { MinecraftAdapter } from "@idiomark/projectors/gaming/minecraft";
import myPersonality from "./my-personality.idiomark";
const bot = new MinecraftAdapter({
name: "MyBot",
serverConfig: {
host: "mc.hypixel.net",
port: 25565,
},
personality: myPersonality,
});
await bot.connect();
Gaming Features
- Chat Personality: In-game chat with your voice
- NPC Behavior: Personality-driven character responses
- Command Handling: Custom commands with personality
- Avatar Customization: Express personality through appearance
CLI Quick Start
idiomark projector create my-server --type mcp --personality me.idiomark
idiomark projector create my-mc-bot --type minecraft --personality me.idiomark
idiomark projector validate ./my-server
idiomark projector test ./my-server
idiomark projector list
idiomark projector create
Create a new projection adapter from a template.
idiomark projector create <name> [options]
Arguments
| Argument | Description |
|---|
name | Name for the adapter (kebab-case) |
Options
| Flag | Alias | Description | Default |
|---|
--type | -t | Adapter type | mcp |
--personality | -p | Path to Idiomark file | Required |
--output | -o | Output directory | ./<name> |
--description | -d | Adapter description | Auto-generated |
--port | | Port for HTTP adapters | 3000 |
--transport | | Transport for MCP (stdio|http) | stdio |
--game | | Game type for gaming adapters | - |
--template | | Custom template path | - |
--minimal | | Generate minimal template | false |
--force | -f | Overwrite existing directory | false |
--dry-run | | Show files without creating | false |
Adapter Types
| Type | Description |
|---|
mcp | Model Context Protocol server |
ucp | Universal Commerce Protocol adapter |
http | HTTP REST API server |
minecraft | Minecraft server bot |
roblox | Roblox game adapter |
vrchat | VRChat world adapter |
fortnite | Fortnite game adapter |
Examples
idiomark projector create my-assistant \
--type mcp \
--personality me.idiomark
idiomark projector create mc-server-bot \
--type minecraft \
--personality gamer.idiomark \
--game minecraft
idiomark projector create personality-api \
--type http \
--personality me.idiomark \
--port 8080
idiomark projector create custom-server \
--type mcp \
--template ./my-template \
--personality me.idiomark
idiomark projector create test-server \
--type mcp \
--personality me.idiomark \
--dry-run
idiomark projector create my-server \
--type mcp \
--personality me.idiomark \
--force
Output
🎭 Creating Projection Adapter
📦 Adapter Type: MCP Server
👤 Personality: me.idiomark (casual, 75% humor)
📁 Output Directory: ./my-server
📝 Files to create:
────────────────────────────────────
✓ src/index.ts - Entry point
✓ src/tools.ts - MCP tools
✓ src/resources.ts - MCP resources
✓ src/handlers.ts - Request handlers
✓ package.json - Dependencies
✓ tsconfig.json - TypeScript config
✓ tsup.config.ts - Build config
✓ README.md - Documentation
────────────────────────────────────
✅ Adapter created successfully!
🚀 Next steps:
cd my-server
npm install
npm run dev
idiomark projector validate
Validate a projection adapter (TypeScript, imports, Idiomark schema).
idiomark projector validate <path> [options]
Arguments
| Argument | Description |
|---|
path | Path to adapter directory |
Options
| Flag | Alias | Description | Default |
|---|
--typescript | -t | Check TypeScript compilation | true |
--imports | -i | Verify imports resolve | true |
--schema | -s | Validate Idiomark schema | true |
--strict | | Enable strict mode | false |
--fix | | Auto-fix issues | false |
Examples
idiomark projector validate ./my-server
idiomark projector validate ./my-server --no-typescript
idiomark projector validate ./my-server --strict --fix
Output
🔍 Validating Projection Adapter
📂 Path: ./my-server
🔎 Checks:
────────────────────────────────────
✓ TypeScript compilation
✓ Import resolution
✓ Idiomark schema validation
✓ File structure
────────────────────────────────────
✅ Adapter is valid!
idiomark projector test
Test a projection adapter with various test modes.
idiomark projector test <path> [options]
Arguments
| Argument | Description |
|---|
path | Path to adapter directory |
Options
| Flag | Alias | Description | Default |
|---|
--unit | -u | Run unit tests | true |
--integration | -I | Run integration tests | false |
--coverage | -c | Generate coverage report | false |
--personality | -p | Test with Idiomark personality | - |
--watch | -w | Watch mode | false |
--verbose | -v | Verbose output | false |
Examples
idiomark projector test ./my-server
idiomark projector test ./my-server \
--integration \
--coverage
idiomark projector test ./my-server \
--personality ./test-personality.idiomark
idiomark projector test ./my-server --watch
Output
🧪 Testing Projection Adapter
📂 Path: ./my-server
🔬 Running tests...
────────────────────────────────────
✓ Unit tests (12/12 passed)
✓ Integration tests (5/5 passed)
✓ Personality application
────────────────────────────────────
📊 Coverage Report:
────────────────────────────────────
Statements: 94.5%
Branches: 89.2%
Functions: 96.8%
Lines: 94.5%
────────────────────────────────────
✅ All tests passed!
idiomark projector list
List all projectors in the workspace.
idiomark projector list [options]
Options
| Flag | Alias | Description | Default |
|---|
--type | -t | Filter by type | All |
--status | -s | Filter by status | All |
--search | | Search by name | - |
--json | -j | JSON output | false |
--table | | Table format | true |
Examples
idiomark projector list
idiomark projector list --type mcp
idiomark projector list --status production
idiomark projector list --search "bot"
idiomark projector list --json
Output
📋 Projection Adapters
┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Name ┃ Type ┃ Status ┃ Port ┃
┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ my-assistant │ MCP │ production │ - │
│ mc-bot │ Minecraft│ dev │ 25565 │
│ personality-api │ HTTP │ staging │ 8080 │
│ shopping-agent │ UCP │ experimental│ - │
└────────────────────┴─────────┴─────────────┴────────────┘
Total: 4 adapters
idiomark projector info
Display detailed information about an adapter.
idiomark projector info <path> [options]
Arguments
| Argument | Description |
|---|
path | Path to adapter directory |
Options
| Flag | Alias | Description | Default |
|---|
--json | -j | JSON output | false |
--dependencies | -d | Show dependencies | true |
Examples
idiomark projector info ./my-server
idiomark projector info ./my-server --json
Output
📋 Adapter Information
📁 Path: ./my-server
📦 Metadata:
────────────────────────────────────
Name: my-assistant
Type: MCP Server
Version: 1.0.0
Status: production
Created: 2026-02-10
Last Updated: 2026-02-11
────────────────────────────────────
👤 Personality:
────────────────────────────────────
File: me.idiomark
Tone: casual
Formality: 0.30
Humor: 0.75
────────────────────────────────────
📦 Dependencies:
────────────────────────────────────
@idiomark/core ^2.0.0
@idiomark/inference ^2.0.0
@idiomark/projectors ^2.0.0
────────────────────────────────────
🔧 Configuration:
────────────────────────────────────
Transport: stdio
Port: -
Build Target: es2022
────────────────────────────────────
Add tools to an existing MCP adapter.
idiomark projector add-tools <path> [options]
Arguments
| Argument | Description |
|---|
path | Path to adapter directory |
Options
| Flag | Alias | Description | Default |
|---|
--interactive | -i | Interactive mode | false |
--tool | -t | Tool name(s) to add | - |
Examples
idiomark projector add-tools ./my-server --interactive
idiomark projector add-tools ./my-server \
--tool search \
--tool calculate
idiomark projector add-resources
Add resources to an existing MCP adapter.
idiomark projector add-resources <path> [options]
Arguments
| Argument | Description |
|---|
path | Path to adapter directory |
Options
| Flag | Alias | Description | Default |
|---|
--interactive | -i | Interactive mode | false |
--resource | -r | Resource name(s) to add | - |
Examples
idiomark projector add-resources ./my-server --interactive
idiomark projector add-resources ./my-server \
--resource config \
--resource logs
Generated Adapter Structure
MCP Adapter
my-server/
├── src/
│ ├── index.ts # Entry point
│ ├── tools.ts # MCP tools definition
│ ├── resources.ts # MCP resources
│ └── handlers.ts # Request handlers
├── package.json
├── tsconfig.json
├── tsup.config.ts
└── README.md
Gaming Adapter (Minecraft)
mc-bot/
├── src/
│ ├── index.ts # Entry point
│ ├── client.ts # Game client
│ ├── chat.ts # Chat handler
│ └── commands.ts # Command handlers
├── package.json
├── tsconfig.json
├── tsup.config.ts
└── README.md
HTTP Adapter
personality-api/
├── src/
│ ├── index.ts # Server setup
│ ├── routes.ts # API routes
│ └── middleware.ts # Middleware
├── package.json
├── tsconfig.json
├── tsup.config.ts
└── README.md
Environment Variables
| Variable | Description | Default |
|---|
IDIOMARK_API_KEY | API key for inference | - |
Idiomark_MODEL | Default model | gpt-4 |
Idiomark_ADAPTER_DIR | Default output directory | . |