yooztech_mcp_omniroute_t2i - OmniRoute 文生图 MCP 工具
通过 OmniRoute 提供的 OpenAI 兼容接口 /v1/images/generations 生成图片,并将返回的 URL 或 Base64 图片保存到本地。
MCP 配置
使用 uvx:
{
"mcpServers": {
"yooztech_mcp_omniroute_t2i": {
"command": "uvx",
"args": ["yooztech_mcp_omniroute_t2i"],
"env": {
"OMNIROUTE_BASE_URL": "https://your-omniroute.example.com",
"OMNIROUTE_API_KEY": "your-api-key"
}
}
}
}
也可以安装后直接运行 yooztech_mcp_omniroute_t2i。
环境变量
OMNIROUTE_BASE_URL:OmniRoute 服务地址,不包含/v1/images/generationsOMNIROUTE_API_KEY:OmniRoute API Key
工具
text_to_image
prompt:必填,图片描述model:必填,OmniRoute 上可用的图片生成模型size:可选,例如1024x1024n:可选,生成数量,默认1,范围1..10quality:可选,透传给图片模型style:可选,透传给图片模型response_format:可选,b64_json或url,默认b64_jsonoutput_dir:可选,保存目录,默认当前目录filename_prefix:可选,文件名前缀,默认omniroute-image
示例:
{
"prompt": "一座漂浮在云海上的未来城市,电影感光照",
"model": "your-image-model",
"size": "1024x1024",
"output_dir": "./tmp"
}
成功时返回 saved_files,其中包含生成图片的绝对路径。
依赖
- Python >= 3.10
- MCP SDK >= 2.0.0, < 3
- httpx >= 0.27.0
许可证
MIT
Metadata
Release files for yooztech-mcp-omniroute-t2i 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| yooztech_mcp_omniroute_t2i-0.0.1.tar.gz | 4.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yooztech_mcp_omniroute_t2i-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / yooztech_mcp_omniroute_t2i-0.0.1.tar.gz
| Download URL | yooztech_mcp_omniroute_t2i-0.0.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f942085097ac3882be5fad6fe05a606d81307147a2cc0be41868a109f3b9e67d
|
|
BLAKE2b-256 checksum How to use checksums |
20659e467620862ff39fd2fbc8c700d3c3800021c458f0c915e34a7407c75dbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.7
|
Release files / yooztech_mcp_omniroute_t2i-0.0.1-py3-none-any.whl
| Download URL | yooztech_mcp_omniroute_t2i-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c572ec9bc161d5c3070aa1c3ac2070a641d83410578a4045236bc95cfd6adc65
|
|
BLAKE2b-256 checksum How to use checksums |
78f4d66d37754eb753707280cd0a6c482e5ed1e97f93f07c0578cf44ee1dfb96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.7
|
Security for yooztech-mcp-omniroute-t2i 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.