heygen-mcp-adapter
HeyGen MCP Adapterは、HeyGenを通じて動画を生成し、そのステータスを確認するためのシンプルなREST APIを提供します。ローカルでの実行が簡単で、SQLiteデータベースにメタデータを保存します。
GitHubスター
0
ユーザー評価
未評価
お気に入り
0
閲覧数
13
フォーク
0
イシュー
1
HeyGen MCP Adapter
This project provides a simple REST API for generating videos through HeyGen and checking their status.
Running Locally
Install dependencies:
pip install -r requirements.txt
Set your HeyGen API credentials as environment variables:
export HEYGEN_API_KEY=<your-api-key> # optional: override base URL if needed export HEYGEN_BASE_URL=https://api.heygen.com/v1
Start the server:
uvicorn server:app --reload
The API will be available at http://localhost:8000
.
Video metadata is stored in a local SQLite
database (videos.db
) created automatically in the project directory.
Refer to openapi.yaml
for the API specification.
Authentication
Set the API_TOKEN
environment variable to define the token expected by the
server (defaults to dev-token
). Requests to /video/generate
and/video/{video_id}/status
must include this token using the Authorization
header:
curl -H "Authorization: Bearer $API_TOKEN" http://localhost:8000/video/generate
=======
## Docker
To build and run the application using Docker:
```bash
docker build -t heygen-mcp-adapter .
docker run -p 8000:8000 heygen-mcp-adapter
Using Docker Compose
For development with automatic reloads:
docker-compose up --build