artemeon/mantis2github
Composer 安装命令:
composer require artemeon/mantis2github
包简介
A small CLI tool to create a GitHub issue from a Mantis ticket.
README 文档
README
A small CLI tool to create a GitHub issue out of a Mantis issue. Creates cross-references, so links the GitHub issue to mantis and vice versa.
Installation
composer global require artemeon/mantis2github
Configuration
When you first installed the package, call the configure command. You only need to do this once.
mantis2github configure
The command will direct you through the installation process.
Quick setup
If you have used a previous version of this package and already have a config.yaml file, you can skip the configuration by running:
mantis2github configure path/to/config.yaml
Usage
mantis2github [command]
Available Commands
| Command | Description |
|---|---|
sync |
Create a GitHub issue from a Mantis issue |
read:github |
Read details of a GitHub issue |
read:mantis |
Read details of a Mantis issue |
issues:list |
Get a list of Mantis Tickets with their associated GitHub Issues. |
sync
Create a GitHub issue from a list of Mantis issues.
mantis2github sync <ids>...
Arguments
| Argument | required | Description |
|---|---|---|
ids |
true |
Mantis issue ids |
Examples
Sync a single issue
mantis2github sync 123
Sync multiple issues
mantis2github sync 123 456 789
read:github
Read details of a GitHub issue.
mantis2github read:github <id>
Arguments
| Argument | required | Description |
|---|---|---|
id |
true |
GitHub issue id |
read:mantis
Read details of a Mantis issue.
mantis2github read:mantis <id>
Arguments
| Argument | required | Description |
|---|---|---|
id |
true |
Mantis issue id |
issues:list
Get a list of Mantis Tickets with their associated GitHub Issues.
mantis2github issues:list [--output=html]
Options
| Option | Possible values | Description |
|---|---|---|
output |
html |
Output Format |
MCP Server
This package ships an MCP server (mantis-mcp) that exposes
Mantis ticket details to LLM-powered clients. It reuses the same config.yaml as the CLI, so
running mantis2github configure once is enough to make both available.
The server speaks the stdio transport and exposes three tools:
| Tool | Description | Input |
|---|---|---|
mantis-issue-details |
Read ticket details (incl. attachment metadata) | { "id": <int> } or { "url": "<mantis-view-url>" } |
mantis-issue-attachments |
List attachment metadata (id, filename, size, content type) for a ticket | { "id": <int> } or { "url": "<mantis-view-url>" } |
mantis-attachment |
Fetch the bytes of a single attachment. Images come back as inline image content, text as text, everything else as an embedded resource. Files over 10 MB are rejected. | { "issue_id": <int>, "file_id": <int> } |
Textual responses are encoded as TOON to keep the LLM context compact.
Example host configuration
For Claude Desktop (claude_desktop_config.json) or any other MCP host that supports stdio servers:
{
"mcpServers": {
"mantis": {
"command": "mantis-mcp"
}
}
}
If mantis-mcp is not on your $PATH, point command at the absolute path inside your Composer
vendor/bin/ (or ~/.composer/vendor/bin/ for a global install).
Add to Claude Code via CLI
claude mcp add --transport stdio mantis --scope user -- mantis-mcp
License
This project is open-sourced software licensed under the MIT license.
artemeon/mantis2github 适用场景与选型建议
artemeon/mantis2github 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 145 次下载、GitHub Stars 达 1, 最近一次更新时间为 2022 年 02 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 artemeon/mantis2github 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 artemeon/mantis2github 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 145
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-02-17