Install
$ agentstack add mcp-tairuframework-mokei ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Mokei
TypeScript toolkit for creating, interacting with, and monitoring clients and servers using the Model Context Protocol (MCP).
Features
- MCP Server & Client - Full protocol implementation
- Multi-Context Host - Manage multiple MCP servers with tool namespacing
- Session Management - High-level chat abstraction with tool calling
- Agent Loop - Automatic tool execution with configurable approval
- Model Providers - OpenAI, Anthropic, and Ollama integration
- Monitoring - Real-time observation of MCP traffic
- CLI - Interactive chat and server inspection tools
Quick Start
npm install @mokei/session @mokei/openai-provider
import { Session } from '@mokei/session'
import { OpenAIProvider } from '@mokei/openai-provider'
const session = new Session({
providers: {
openai: OpenAIProvider.fromConfig({
apiKey: process.env.OPENAI_API_KEY
})
}
})
// Add an MCP server
await session.addContext({
key: 'myserver',
command: 'node',
args: ['my-mcp-server.js']
})
// Chat with tool access
const response = await session.chat({
provider: 'openai',
model: 'gpt-4',
messages: [{ source: 'client', role: 'user', text: 'Hello!' }]
})
Documentation
- Full Documentation - Complete guides and API reference
- [Quick Start Guide](docs/guides/quick-start.md) - Get running in minutes
- [docs/](docs/index.md) - Local documentation
Packages
| Package | Description | |---------|-------------| | @mokei/context-server | MCP server implementation | | @mokei/context-client | MCP client implementation | | @mokei/host | Multi-context orchestrator | | @mokei/session | High-level session management | | @mokei/openai-provider | OpenAI integration | | @mokei/anthropic-provider | Anthropic Claude integration | | @mokei/ollama-provider | Ollama integration | | mokei | CLI tool |
CLI
mokei monitor # Start the monitor UI for MCP server traffic
mokei inspect # Inspect an MCP server (prints its initialize result)
mokei chat -p openai # Interactive chat
Contributing
See [AGENTS.md](AGENTS.md) for development setup and code style guidelines.
License
MIT
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: TairuFramework
- Source: TairuFramework/mokei
- License: MIT
- Homepage: https://mokei.dev
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.