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.
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
- Start Java Drama Service with
DRAMA_TOOL_SECRETconfigured. - Configure the same value only as the Plugin provider tokens in
.env:DRAMA_PLUGIN_SERVICE_MEMORY_API_TOKEN,DRAMA_PLUGIN_SERVICE_ASSET_API_TOKEN, andDRAMA_PLUGIN_SERVICE_MEDIA_API_TOKEN. - Set
DRAMA_PLUGIN_ROOTandDRAMA_PLUGIN_CONFIGas shown in.env.example. - Run
.venv/bin/drama-mcp-service. - Point the MCP host at
http://127.0.0.1:8765/mcpand runtools/list. - 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。