MCP-For-Redmine 标志

MCP-For-Redmine

社区
chspower1

This project is a Model-Context-Protocol (MCP) server for interacting with Redmine. With an MCP-compatible client, you can easily manage Redmine projects, issues, users, and time entries.

发布者chspower1
代码仓库mcp-for-redmine
语言TypeScript
复刻数
4
星标数
13
可用工具
23
传输类型stdio
分类
链接
  • 将工具接入 AI 工作流

    MCP-For-Redmine 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 23 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 13 个星标和 4 个复刻。

MCP-For-Redmine · MIT License

English | 한국어 | 日本語 | 简体中文

This project is a Model-Context-Protocol (MCP) server for interacting with Redmine. With an MCP-compatible client, you can easily manage Redmine projects, issues, users, and time entries.

Currently, only the standard input/output (stdio) transport is supported.

Requirements

  • Node.js 18 or higher
  • Redmine API key (your personal API key from your Redmine account)

Compatibility baseline: Redmine 6.0.6

Getting Started

How to configure the MCP server for each environment:

File (top-left) -> Preferences -> Cursor Settings -> MCP & Integrations -> New MCP Server

Config file: ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project)

📚 Docs: Cursor MCP documentation

Install MCP Server

json
{
  "mcpServers": {
    "mcp-for-redmine": {
      "command": "npx",
      "args": ["-y", "@chspower1/mcp-for-redmine@latest"],
      "env": {
        "REDMINE_BASE_URL": "https://your.redmine.tld",
        "REDMINE_API_KEY": "your_api_key_here"
      }
    }
  }
}

Config files:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

📚 Docs: Claude Desktop MCP guide

json
{
  "mcpServers": {
    "mcp-for-redmine": {
      "command": "npx",
      "args": ["-y", "@chspower1/mcp-for-redmine@latest"],
      "env": {
        "REDMINE_BASE_URL": "https://your.redmine.tld",
        "REDMINE_API_KEY": "your_api_key_here"
      }
    }
  }
}

📚 Docs: Claude Code MCP documentation

Set environment variables and run CLI:

bash
# Set environment variables
export REDMINE_BASE_URL=https://your.redmine.tld
export REDMINE_API_KEY=your_api_key_here

# Add MCP server
claude mcp add mcp-for-redmine -- npx -y @chspower1/mcp-for-redmine@latest

Or edit the settings file directly: ~/.claude/settings.local.json

json
{
  "mcpServers": {
    "mcp-for-redmine": {
      "command": "npx",
      "args": ["-y", "@chspower1/mcp-for-redmine@latest"],
      "env": {
        "REDMINE_BASE_URL": "https://your.redmine.tld",
        "REDMINE_API_KEY": "your_api_key_here"
      }
    }
  }
}

Config file: ~/.gemini/settings.json (global) or .gemini/settings.json (per-project)

📚 Docs: Gemini CLI MCP guide

json
{
  "mcpServers": {
    "mcp-for-redmine": {
      "command": "npx",
      "args": ["-y", "@chspower1/mcp-for-redmine@latest"],
      "env": {
        "REDMINE_BASE_URL": "https://your.redmine.tld",
        "REDMINE_API_KEY": "your_api_key_here"
      }
    }
  }
}

Config file: ~/.codex/config.toml

📚 Docs: OpenAI MCP documentation

toml
[[mcp_servers]]
name = "mcp-for-redmine"
command = "npx"
args = ["-y", "@chspower1/mcp-for-redmine@latest"]

[mcp_servers.env]
REDMINE_BASE_URL = "https://your.redmine.tld"
REDMINE_API_KEY = "your_api_key_here"

Configuration Options

The server reads configuration in the following priority:

  • -u, --url <url>
  • -k, --api-key <key>
  • --no-tls-verify (optional, disable TLS verification)
  • json
    {
      "mcpServers": {
        "mcp-for-redmine": {
          "command": "npx",
          "args": [
            "-y",
            "@chspower1/mcp-for-redmine@latest",
            "--url",
            "https://your.redmine.tld",
            "--api-key",
            "YOUR_API_KEY"
          ]
        }
      }
    }
  • REDMINE_BASE_URL or REDMINE_URL
  • REDMINE_API_KEY or REDMINE_TOKEN
  • REDMINE_TLS_VERIFY (optional, set to false or 0 to disable TLS verification)
  • json
    {
      "mcpServers": {
        "mcp-for-redmine": {
          "command": "npx",
          "args": ["-y", "@chspower1/mcp-for-redmine@latest"],
          "env": {
            "REDMINE_BASE_URL": "https://your.redmine.tld",
            "REDMINE_API_KEY": "your_api_key_here"
          }
        }
      }
    }

Supported variables:

  • REDMINE_BASE_URL or REDMINE_URL — Redmine server URL
  • REDMINE_API_KEY or REDMINE_TOKEN — Redmine API key
  • REDMINE_TLS_VERIFY — Set to false or 0 to disable TLS verification (optional)

[!WARNING] > Security Warning: Disabling TLS verification (REDMINE_TLS_VERIFY=false or --no-tls-verify) makes your connection vulnerable to Man-in-the-Middle (MitM) attacks. Only use this option in trusted environments (e.g., internal networks with self-signed certificates). Never use it when connecting to public Redmine instances over the internet.

Key Features

Currently available tools:

Stable API

  • Users: users_create, users_get, users_current, users_list, users_update, users_delete
  • Projects: projects_list, projects_get, projects_create, projects_update, projects_archive, projects_unarchive, projects_delete
  • Issues: issues_list, issues_get, issues_create, issues_update, issues_delete
  • Time Entries: time_entries_list, time_entries_get, time_entries_create, time_entries_update, time_entries_delete

Alpha API

  • Enumerations: enumerations_issue_priorities_list, enumerations_time_entry_activities_list
  • Memberships: memberships_list_project_memberships, memberships_get, memberships_create, memberships_update, memberships_delete
  • Issue Relations: issue_relations_list, issue_relations_get, issue_relations_create, issue_relations_delete
  • Versions: versions_list, versions_get, versions_create, versions_update, versions_delete
  • Wiki Pages: wiki_pages_list, wiki_pages_get, wiki_pages_create_or_update, wiki_pages_delete
  • Queries: queries_list
  • Files: files_list
  • Attachments: attachments_get, attachments_delete, attachments_upload
  • Issue Statuses: issue_statuses_list
  • Trackers: trackers_list
  • Roles: roles_list, roles_get
  • Groups: groups_list, groups_get, groups_create, groups_update, groups_delete, groups_add_user, groups_remove_user
  • Custom Fields: custom_fields_list
  • Issue Categories: issue_categories_list, issue_categories_get, issue_categories_create, issue_categories_update, issue_categories_delete
  • My Account: my_account_get
  • Search: search

The input schema for each tool is defined in src/schema/*.schema.ts. Results are returned as JSON-formatted text.

Common Input Rules (dev)

  • Collection pagination: most list tools support offset and limit (default 25, max 100)
  • Association expansion: some get/list tools support include (e.g., issues: children,attachments,journals,...)
  • Attachment upload token: attachments_upload sends a Base64 file to /uploads.json and returns a token. Use this token in the uploads field of issues_create/update or wiki_pages_create_or_update to associate attachments.
  • Tool-specific extras/constraints: for detailed constraints (e.g., issue custom_fields, watcher_user_ids, etc.), see each tool’s schema in src/schema/*.schema.ts.

Troubleshooting Guide

  • Configuration errors
    • Example messages: ❌ Redmine URL is required! or ❌ Redmine API key is required!
    • How to fix: Choose one of the configuration methods shown in the error message. For security, environment variables are recommended.
  • Node.js/ESM-related errors
    • Ensure you are using Node.js 18 or higher.
  • Authentication and network errors (401, 403, etc.)
    • Verify your API key permissions and URL, and check for network issues.
  • Execution issues on Windows
    • Try running with cmd /c npx ... as shown in the guide.

Security & Permissions

  • API keys are sensitive; avoid exposing them in Git commits, logs, or shared repositories.
  • For irreversible actions like deleting projects or issues, double-check permissions and proceed carefully.

Roadmap

We plan to deepen coverage of beta endpoints (e.g., attachment upload flows), add SSE (Server-Sent Events), and enhance examples/tests.

License

MIT

安装

TypingMind
{
  "mcpServers": {
    "mcp-for-redmine": {
      "command": "npx",
      "args": [
        "-y",
        "@chspower1/mcp-for-redmine",
        "--url",
        "{{config.REDMINE_URL}}",
        "--api-key",
        "{{config.REDMINE_API_KEY}}"
      ],
      "env": {
        "REDMINE_URL": "<REDMINE_URL>",
        "REDMINE_API_KEY": "<REDMINE_API_KEY>"
      }
    }
  }
}

可用工具

  • users_create

    Creates a new user in Redmine.

  • users_get

    Retrieves a single user from Redmine by their ID.

  • users_list

    Retrieves a list of users from Redmine. This is an admin-only function.

  • users_update

    Updates an existing user in Redmine.

  • users_delete

    Deletes a user from Redmine.

  • projects_list

    Retrieves a list of all projects.

  • projects_get

    Retrieves a single project by its ID or identifier.

  • projects_create

    Creates a new project.

  • projects_update

    Updates an existing project.

  • projects_archive

    Archives a project.

  • projects_unarchive

    Unarchives a project.

  • projects_delete

    Deletes a project.

  • issues_list

    Retrieves a list of issues from Redmine, with optional filters.

  • issues_get

    Retrieves a single issue from Redmine by its ID.

  • issues_create

    Creates a new issue in Redmine.

  • issues_update

    Updates an existing issue in Redmine.

  • issues_delete

    Deletes an issue from Redmine.

  • time_entries_list

    Retrieves a list of time entries, with optional filters.

  • time_entries_get

    Retrieves a single time entry by its ID.

  • time_entries_create

    Creates a new time entry.

  • time_entries_update

    Updates an existing time entry.

  • time_entries_delete

    Deletes a time entry.

  • search

    Performs a search across Redmine.

将 MCP-For-Redmine MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 MCP-For-Redmine 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 MCP-For-Redmine 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 MCP-For-Redmine MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "mcp-for-redmine": {
      "command": "npx",
      "args": [
        "-y",
        "@chspower1/mcp-for-redmine"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 MCP-For-Redmine MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 MCP-For-Redmine MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 MCP-For-Redmine 帮我完成这项任务吗?
MCP-For-Redmine
当然,我看过了。
以下是我使用 MCP-For-Redmine 得到的结果。

常见问题

MCP-For-Redmine MCP 服务器有什么用途?

MCP-For-Redmine 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 MCP-For-Redmine MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 MCP-For-Redmine。

为什么在 TypingMind 中使用 MCP-For-Redmine MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 MCP-For-Redmine 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 MCP-For-Redmine MCP 连接到 TypingMind?

MCP-For-Redmine 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

MCP-For-Redmine MCP 在 TypingMind 中提供哪些工具?

MCP-For-Redmine 提供 23 个 MCP 工具,您可以在 TypingMind 的插件页面启用这些工具,然后在聊天中使用,或将其分配给 AI 智能体。

使用 MCP-For-Redmine MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 MCP-For-Redmine 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇