plane-mcp-server

plane-mcp-server

Enables interaction with Plane.so project management API through natural language, allowing users to manage issues, cycles, and projects.

Category
访问服务器

README

✨ Plane.so MCP Server ✨

CI License: MIT npm version <!-- Replace YOUR_PACKAGE_NAME if published --> Node.js Version <!-- Replace YOUR_PACKAGE_NAME if published --> TypeScript BiomeJS PRs Welcome

A Model Context Protocol (MCP) server acting as a bridge to the Plane.so API. 🚀

This server allows MCP clients (like AI assistants or other tools) to interact with Plane.so resources (initially Issues) through defined tools.

📚 Table of Contents

👤 For Users

This section provides information for users who want to install and run the Plane.so MCP server to connect it with their MCP client (e.g., Cursor, Claude App).

⭐ Available Tools

The server exposes the following tools to interact with the Plane.so API. Tool names use underscores (e.g., plane_get_issue).

plane_get_issue

Retrieves details of a specific issue.

Parameters:

  • project_id (string, required): ID of the project containing the issue.
  • issue_id (string, required): ID of the issue to retrieve.

Example:

{
  "project_id": "your_project_id_here",
  "issue_id": "your_issue_id_here"
}

plane_create_issue

Creates a new issue in a specified project.

Parameters:

  • project_id (string, required): ID of the project where the issue should be created.
  • name (string, required): Title of the issue.
  • description_html (string, optional): HTML description of the issue (Plane API often requires this format).
  • priority (string, optional): Priority of the issue ("urgent", "high", "medium", "low", "none").
  • state_id (string, optional): ID of the state for this issue.
  • assignees (array<string>, optional): Array of user IDs to assign to this issue.

Example:

{
  "project_id": "your_project_id_here",
  "name": "New Feature Request",
  "description_html": "<p>Details about the new feature.</p>",
  "priority": "medium"
}

plane_update_issue

Updates an existing issue in a project.

Parameters:

  • project_id (string, required): ID of the project containing the issue.
  • issue_id (string, required): ID of the issue to update.
  • name (string, optional): Updated title of the issue.
  • description_html (string, optional): Updated HTML description of the issue.
  • priority (string, optional): Updated priority of the issue.
  • state_id (string, optional): Updated state ID of the issue.
  • assignees (array<string>, optional): Updated array of user IDs assigned to this issue.

Example:

{
  "project_id": "your_project_id_here",
  "issue_id": "your_issue_id_here",
  "priority": "high",
  "assignees": ["user_id_1"]
}

✅ Prerequisites

  • Node.js (v20 or higher recommended)
  • npm
  • A Plane.so account and an API Key -> Workspace Icon (top left) -> Settings -> API Tokens -> Add API Token
  • Plane.so Workspace slug -> https://app.plane.so/{workspace_slug}/ (Replace {workspace_slug} with your actual workspace slug)

🛠️ Installation

npm install

🚀 Usage

The server will start and listen for requests on its standard input (stdin) and send responses to its standard output (stdout). You need to configure your MCP client (like Cursor, Claude App, etc.) to launch this server process when needed.

For more details on the Model Context Protocol, visit modelcontextprotocol.io.

✨ Examples

Here are some example prompts you could give your AI assistant (once the server is configured in it):

  • "Get the details for issue BUG-123 in the WebApp project."
  • "Create a new high-priority issue in the API project titled 'Refactor authentication module' with the description 'Need to update the auth library.'"
  • "Update issue FEAT-45 in the Design project and assign it to user_abc."

Your assistant will use the appropriate tools (plane_get_issue, plane_create_issue, plane_update_issue) and likely ask for your confirmation before making changes.

🛡️ Security Considerations

  • API Key Security: Your PLANE_API_KEY stored in the .env file grants access to your Plane.so workspace. Keep this file secure and never commit it to version control.
  • Permissions: Ensure the API key used has the necessary permissions within Plane.so to perform the actions required by the tools (e.g., read issues, create issues, update issues).
  • User Approval: Most MCP clients will require your explicit approval before executing actions that modify data (like creating or updating issues), providing a safety layer.

🧑‍💻 For Developers

This section is for developers who want to contribute to the project, run tests, or use the development environment.

Development 🧑‍💻

npm run dev

Project Structure 📂

The project follows a domain-driven organization:

src/
├── configs/         # Environment and configuration
├── plane-client.js  # API client wrapper
├── schemas/         # Zod validation schemas
│   ├── tools.schema.ts    # Common tool schemas and utilities
│   ├── project.schema.ts  # Project-specific schemas 
│   └── issue.schema.ts    # Issue-specific schemas
├── services/        # Service layer for API interactions
│   ├── project.service.ts
│   └── issue.service.ts
├── tools/           # MCP tool definitions and handlers
│   ├── index.ts           # Tool registration
│   ├── project.tools.ts   # Project tool definitions
│   └── issue.tools.ts     # Issue tool definitions
└── types/           # TypeScript type definitions

Validation and Error Handling ✅

The project uses Zod for comprehensive validation:

  1. Schema Definition: Domain-specific schemas are defined in src/schemas/
  2. Schema Validation: The validateWithSchema utility ensures consistent validation
  3. Error Handling: Custom ValidationError class for structured error reporting

Example of using validation:

// In a service method
const validData = validateWithSchema(MySchema, inputData);
// validData is now correctly typed and validated

Adding New Tools 🔧

To add a new tool:

  1. Define the tool interface in the appropriate domain file (e.g., src/tools/issue.tools.ts)
  2. Add validation schemas in the domain schema file (e.g., src/schemas/issue.schema.ts)
  3. Implement the service method in the service file (e.g., src/services/issue.service.ts)
  4. Register the tool in src/tools/index.ts

Testing 🧪

The project includes multiple types of tests:

Unit Tests

Run unit tests (fast, no API calls):

npm run test:unit

Integration Tests

These tests make real API calls, so they need API credentials:

  1. Create a .env.test file with:
API_KEY=your_plane_api_key
WORKSPACE_SLUG=your_workspace_slug
  1. Run integration tests:
npm run test:local
  1. Quick endpoint check:
npm run check:local

Pre-commit Hooks

The pre-commit hooks only run linting and formatting, not tests. This ensures:

  • Faster commits
  • No API call requirements during development
  • No need for API credentials during regular development

When you want to run tests manually:

# Unit tests only
npm run test:unit

# All tests including integration (needs API credentials)
npm test

Linting and Formatting ✨

Check for linting and formatting errors using Biome:

npm run lint
npm run format:check

Apply formatting and lint fixes automatically:

npm run format

(Note: Formatting is also automatically applied on commit via Husky and lint-staged!)

🙌 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details on how to contribute, report bugs, or suggest features.

🤝 Code of Conduct

We are committed to providing a welcoming and inclusive environment. Please review our CODE_OF_CONDUCT.md.


📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选