All changes have been completed successfully. Let me provide a summary of what was fixed: (#2068)
## Summary I've fixed the MCP tool description parameter mismatches reported in Issue #1942. ### Changes Made **1. `crates/server/src/mcp/task_server.rs`** - Fixed 4 issues: - **`update_task`** (line 753): Removed incorrect `project_id` requirement from description - **`delete_task`** (line 802): Removed incorrect `project_id` requirement from description - **`get_task`** (line 820): Removed incorrect `project_id` requirement from description - **`StartWorkspaceSessionRequest.executor`** (line 223): Added missing executors (`AMP`, `QWEN_CODE`, `COPILOT`, `DROID`) to the description **2. `docs/integrations/vibe-kanban-mcp-server.mdx`** - Updated documentation: - Added `list_repos` tool to the Project Operations table - Added new "Context" section with `get_context` tool - Renamed `start_task_attempt` to `start_workspace_session` (the actual tool name) - Updated `start_workspace_session` parameters to show `repos` array instead of single `base_branch` - Updated example JSON to demonstrate correct parameter format The cargo check passes, confirming all Rust changes compile correctly.
This commit is contained in:
committed by
GitHub
parent
af8298744d
commit
b9c961a666
@@ -220,7 +220,7 @@ pub struct StartWorkspaceSessionRequest {
|
||||
#[schemars(description = "The ID of the task to start")]
|
||||
pub task_id: Uuid,
|
||||
#[schemars(
|
||||
description = "The coding agent executor to run ('CLAUDE_CODE', 'CODEX', 'GEMINI', 'CURSOR_AGENT', 'OPENCODE')"
|
||||
description = "The coding agent executor to run ('CLAUDE_CODE', 'AMP', 'GEMINI', 'CODEX', 'OPENCODE', 'CURSOR_AGENT', 'QWEN_CODE', 'COPILOT', 'DROID')"
|
||||
)]
|
||||
pub executor: String,
|
||||
#[schemars(description = "Optional executor variant, if needed")]
|
||||
@@ -750,7 +750,7 @@ impl TaskServer {
|
||||
}
|
||||
|
||||
#[tool(
|
||||
description = "Update an existing task/ticket's title, description, or status. `project_id` and `task_id` are required! `title`, `description`, and `status` are optional."
|
||||
description = "Update an existing task/ticket's title, description, or status. `task_id` is required. `title`, `description`, and `status` are optional."
|
||||
)]
|
||||
async fn update_task(
|
||||
&self,
|
||||
@@ -799,9 +799,7 @@ impl TaskServer {
|
||||
TaskServer::success(&repsonse)
|
||||
}
|
||||
|
||||
#[tool(
|
||||
description = "Delete a task/ticket from a project. `project_id` and `task_id` are required!"
|
||||
)]
|
||||
#[tool(description = "Delete a task/ticket. `task_id` is required.")]
|
||||
async fn delete_task(
|
||||
&self,
|
||||
Parameters(DeleteTaskRequest { task_id }): Parameters<DeleteTaskRequest>,
|
||||
@@ -819,7 +817,7 @@ impl TaskServer {
|
||||
}
|
||||
|
||||
#[tool(
|
||||
description = "Get detailed information (like task description) about a specific task/ticket. You can use `list_tasks` to find the `task_ids` of all tasks in a project. `project_id` and `task_id` are required!"
|
||||
description = "Get detailed information (like task description) about a specific task/ticket. You can use `list_tasks` to find the `task_ids` of all tasks in a project. `task_id` is required."
|
||||
)]
|
||||
async fn get_task(
|
||||
&self,
|
||||
|
||||
@@ -59,6 +59,13 @@ The Vibe Kanban MCP server provides the following tools for managing projects, t
|
||||
| Tool | Purpose | Required Parameters | Optional Parameters | Returns |
|
||||
|------|---------|-------------------|-------------------|---------|
|
||||
| `list_projects` | Fetch all projects | None | None | List of projects with metadata |
|
||||
| `list_repos` | List repositories in a project | `project_id` | None | List of repositories with IDs |
|
||||
|
||||
### Context
|
||||
|
||||
| Tool | Purpose | Required Parameters | Optional Parameters | Returns |
|
||||
|------|---------|-------------------|-------------------|---------|
|
||||
| `get_context` | Get current workspace context (only available within an active workspace session) | None | None | Project, task, and workspace metadata |
|
||||
|
||||
### Task Management
|
||||
|
||||
@@ -74,11 +81,15 @@ The Vibe Kanban MCP server provides the following tools for managing projects, t
|
||||
|
||||
| Tool | Purpose | Required Parameters | Optional Parameters | Returns |
|
||||
|------|---------|-------------------|-------------------|---------|
|
||||
| `start_task_attempt` | Start working on a task with a coding agent | `task_id`<br/>`executor`<br/>`base_branch` | `variant` | Attempt ID and confirmation |
|
||||
| `start_workspace_session` | Start working on a task with a coding agent | `task_id`<br/>`executor`<br/>`repos` | `variant` | Task ID and workspace ID |
|
||||
|
||||
The `repos` parameter is an array of objects with:
|
||||
- `repo_id`: The repository ID (UUID)
|
||||
- `base_branch`: The base branch for this repository
|
||||
|
||||
### Supported Executors
|
||||
|
||||
When using `start_task_attempt`, the following executors are supported (case-insensitive, accepts hyphens or underscores):
|
||||
When using `start_workspace_session`, the following executors are supported (case-insensitive, accepts hyphens or underscores):
|
||||
|
||||
- `claude-code` / `CLAUDE_CODE`
|
||||
- `amp` / `AMP`
|
||||
@@ -97,7 +108,7 @@ Once you have the MCP server configured, you can leverage it to streamline your
|
||||
1. **Plan Your Work**: Describe a large feature or project to your MCP client
|
||||
2. **Request Task Creation**: At the end of your task description, simply add "then turn this plan into tasks"
|
||||
3. **Automatic Task Generation**: Your MCP client will use the Vibe Kanban MCP server to automatically create structured tasks in your project
|
||||
4. **Start Task Execution**: Use `start_task_attempt` to programmatically begin work on tasks with specific coding agents
|
||||
4. **Start Task Execution**: Use `start_workspace_session` to programmatically begin work on tasks with specific coding agents
|
||||
|
||||
## Example Usage
|
||||
|
||||
@@ -124,13 +135,18 @@ After tasks are created, you can start work on them programmatically:
|
||||
Start working on the user registration task using Claude Code on the main branch.
|
||||
```
|
||||
|
||||
Your MCP client will use the `start_task_attempt` tool with parameters like:
|
||||
Your MCP client will use the `start_workspace_session` tool with parameters like:
|
||||
```json
|
||||
{
|
||||
"task_id": "123e4567-e89b-12d3-a456-426614174000",
|
||||
"executor": "claude-code",
|
||||
"repos": [
|
||||
{
|
||||
"repo_id": "987fcdeb-51a2-3d4e-b678-426614174001",
|
||||
"base_branch": "main"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
This creates a new task attempt, generates a feature branch, and starts the coding agent in an isolated environment.
|
||||
@@ -144,7 +160,7 @@ This creates a new task attempt, generates a feature branch, and starts the codi
|
||||
4. Start a task attempt for the new task using Amp on the develop branch
|
||||
```
|
||||
|
||||
Each step uses the appropriate MCP tool (`list_projects`, `list_tasks`, `create_task`, `start_task_attempt`) to manage the complete workflow from planning to execution.
|
||||
Each step uses the appropriate MCP tool (`list_projects`, `list_tasks`, `create_task`, `start_workspace_session`) to manage the complete workflow from planning to execution.
|
||||
|
||||
### Internal Coding Agents (Within Vibe Kanban)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user