drama-mcp-service

drama-mcp-service

Thin Host Protocol Adapter between an MCP host and the Drama Plugin, exposing plugin tools via MCP with automatic discovery and secure routing.

Category
Visit Server

README

Drama MCP Service

drama-mcp-service is the thin Host Protocol Adapter between an MCP host and the independent Drama Plugin. The Plugin tool registry remains the only source of tool names, descriptions, input schemas, handlers, and provider routing.

Local setup

Python 3.12 is required. From this directory:

python3.12 -m venv .venv
.venv/bin/pip install -e ../drama-plugin/plugin -e '.[dev]'

The local Python interpreter may be supplied by the existing Plugin virtual environment when python3.12 is not installed globally.

Local configuration

Copy .env.example to .env, then configure the three DRAMA_PLUGIN_SERVICE_*_API_TOKEN values to match the Java Drama Service DRAMA_TOOL_SECRET. Set DRAMA_PLUGIN_MEDIA_IMPORT_ALLOWED_ROOTS to the local directories from which media imports are allowed. The private .env is ignored by Git and must not be committed. Restart the MCP Server after changing it.

Run the complete stack

  1. Start Java Drama Service with DRAMA_TOOL_SECRET configured.
  2. Configure the same value only as the Plugin provider tokens in .env: DRAMA_PLUGIN_SERVICE_MEMORY_API_TOKEN, DRAMA_PLUGIN_SERVICE_ASSET_API_TOKEN, and DRAMA_PLUGIN_SERVICE_MEDIA_API_TOKEN.
  3. Set DRAMA_PLUGIN_ROOT and DRAMA_PLUGIN_CONFIG as shown in .env.example.
  4. Run .venv/bin/drama-mcp-service.
  5. Point the MCP host at http://127.0.0.1:8765/mcp and run tools/list.
  6. Call a canonical tool such as work.list_works.

The checked-in Plugin Host configuration is ../drama-plugin/plugin/.mcp.json; it names the formal server drama-tools and uses the URL above. Restart/reinstall the local Plugin snapshot after a source checkout change because an already installed Codex cache will retain its previous MCP server name until refreshed.

The MCP schemas never expose Java URLs, endpoint paths, or provider secrets. The browser/frontend must never receive provider tokens. Unit tests use the Plugin's default Mock/Local routing and require no Java or MySQL service. New Plugin tools, including media.import_media and media.resolve_media, are discovered automatically; this project contains no media-specific wrapper.

Verify

.venv/bin/python -m pytest -ra
.venv/bin/python -m mypy src/drama_mcp_service

With the full stack running, execute .venv/bin/python integration/run_mcp_e2e.py. It is intentionally excluded from regular pytest because it creates temporary E2E_B03_ cloud data.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured