@opentask/taskin-task-server-mcp
v0.6.6
Published
Model Context Protocol (MCP) server for task management integration with LLMs
Maintainers
Readme
@opentask/taskin-mcp
Model Context Protocol (MCP) server for task management integration with LLMs like Claude, GPT-4, and GitHub Copilot.
Features
- ✅ Full MCP protocol implementation
- ✅ Exposes task operations as MCP tools
- ✅ Task context via MCP resources
- ✅ Task templates via MCP prompts
- ✅ Real-time task updates
- ✅ TypeScript support
- ✅ Auto-discovery in VS Code and Claude Desktop
Quick Start
VS Code (GitHub Copilot)
The server will appear automatically in VS Code's MCP server list after installation:
npm install -g @opentask/taskin-mcpThen in VS Code:
- Open Command Palette (
Cmd+Shift+P) - Search for "Configure Tools"
- Find "taskin" in the MCP servers list
- Enable it
Or add manually to your settings.json:
{
"github.copilot.chat.mcpServers": {
"taskin": {
"command": "taskin-mcp-server"
}
}
}Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"taskin": {
"args": ["-y", "@opentask/taskin-task-server-mcp"],
"command": "npx"
}
}
}Installation
Global (Recommended)
npm install -g @opentask/taskin-mcpProject-specific
pnpm add @opentask/taskin-mcpProgrammatic Usage
import { createTaskManager } from '@opentask/taskin-task-manager';
import { createTaskMCPServer } from '@opentask/taskin-task-server-mcp';
// Create task manager with your provider
const taskManager = createTaskManager({
provider: 'fs',
config: { tasksDirectory: './TASKS' },
});
// Start MCP server
const server = createTaskMCPServer(taskManager, {
name: 'taskin-server',
version: '1.0.0',
});
await server.connect({
transport: 'stdio', // or 'sse'
});
console.log('MCP server running');MCP Tools
list_tasks- List tasks as JSON, without the markdown body. Only the open tasks unless a status criterion (status,closed,active) orall: trueis given;allis refused together withopen,closedoractiveprioritize_tasks- Give every task a priority number, once and on purposelist_groups- List the task groups, each with its id and name — and itsparentIdwhen it is nested inside another groupjoin_group- Put a task in an existing group. Only offered when the provider has groupsleave_group- Take a task out of its group. Only offered when the provider has groupscreate_group- Create a group: aname, an optionalid(generatedg-...when absent) and an optionalparentIdto create it inside an existing group. Groups nest at most four levels deep. Only offered when the provider has groups; a provider with groups but without nesting refusesparentIdwithNESTING_NOT_SUPPORTEDnest_group- Put a group inside another:groupIdandparentId. Its subgroups go along and no task file is written. A missing parent, the group itself, a cycle and more than four levels are refused. Only offered when the provider supports groups inside groups (IGroupRegistry.setParent)unnest_group- Take a group out of its parent, back to the root:groupId. Offered together withnest_groupmove_group- Move a whole group, its members together: exactly one ofbefore/after(a task not in a group, or another group id),top: trueorbottom: true. Only the members are written, and the result carrieschanged. Only offered when the provider has groupsset_difficulty- Score how hard one task is: a wholedifficultyfrom 1 (trivial) to 5 (very hard). Anything else is refused without writing; there is no way to clear a score, a wrong one is corrected by scoring againset_priority- Place one task: exactly one ofpriority(absolute, lower comes first),beforeorafteranother task id,top: trueorbottom: true(a grouped task goes to the top or bottom of its own group). The result carrieschanged, the number of task files writtenstatus,type,assignee,open,closed,textstart_task- Start working on a taskfinish_task- Mark task as complete
get_task, pause_task and lint_tasks appeared in this list before they
existed, and still do not.
Parity with the CLI
start_task and finish_task are the same operation as taskin start and
taskin finish — including the side effects the project's automation.level
asks for. When the level auto-commits status changes (assisted, autopilot,
or a commits.taskStatusChanges override), both doors write the same
docs(TASKS): task-… - update status to … commit (in the project's
automation.commitLanguage); under manual, neither
does. This used to differ: the MCP path changed the status and committed
nothing, so the project history depended on which door you used (task-066).
This package stays git-agnostic — it only calls an optional onStatusChange
hook after a status-changing tool succeeds. The CLI wires that hook (see
createMcpStatusCommitHook); a plain programmatic embed can wire its own or
none. list_tasks is read-only and never triggers the hook, matching taskin
list, which also commits nothing.
MCP Resources
task://{taskId}- Get full task contexttasks://status/{status}- Get tasks by status
MCP Prompts
start-task- Template for starting a taskreview-task- Template for reviewing a task
License
MIT © OpenTask
