fenkit-mcp 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,124 @@
1
+ # Fenkit MCP Server
2
+
3
+ The **Fenkit MCP Server** is a Model Context Protocol (MCP) implementation designed to bridge LLM agents (like Claude, Cursor, and Windsurf) with the Fenkit task management system. It provides a structured, LLM-native interface for task coordination, discovery, and lifecycle management.
4
+
5
+ ## 🚀 Overview
6
+
7
+ This server enables AI agents to interact with your projects and tasks in a deterministic way, ensuring that implementation plans and walkthroughs follow structured schemas for better visibility and record-keeping in the Fenkit Web UI.
8
+
9
+ ### Key Capabilities:
10
+ - **Project Discovery**: List and select active projects.
11
+ - **Task Search**: Find tasks by title, description, or status.
12
+ - **Context Retrieval**: Fetch full task context (description, history, plans) in a single optimized markdown blob.
13
+ - **Structured Writes**: Submit versioned implementation plans and completion walkthroughs.
14
+ - **Metadata Tracking**: Automatically captures execution signals (duration, model, token usage).
15
+
16
+ ## 🛠️ Prerequisites
17
+
18
+ - **Node.js**: v18 or later
19
+ - **NPM or PNPM**: Installed on your system
20
+ - **Fenkit Account**: A registered account on the Fenkit platform.
21
+
22
+ ## 🏗️ Installation & Setup
23
+
24
+ ### 1. Quick Start (NPM - Recommended)
25
+ The fastest way to get started is via `npx`. This command will automatically configure your AI client:
26
+
27
+ ```bash
28
+ npx -y fenkit-mcp setup <client>
29
+ ```
30
+ *Supported clients: `claude`, `cursor`, `windsurf`, `codex`, `antigravity`, `claudecode`.*
31
+
32
+ ### 2. Manual Installation
33
+ If you prefer a global installation for faster startup:
34
+
35
+ ```bash
36
+ # Install globally
37
+ npm install -g fenkit-mcp
38
+
39
+ # Setup your client using the shorter 'fnk' alias
40
+ fnk setup <client>
41
+ ```
42
+
43
+ ### 3. Build from Source
44
+ If you are developing or prefer to build locally:
45
+
46
+ ```bash
47
+ cd 04-ickit-mcp
48
+ pnpm install
49
+ pnpm run build
50
+ ```
51
+
52
+ Then use the `setup_client` MCP tool or the CLI:
53
+ ```bash
54
+ node dist/index.js setup <client>
55
+ ```
56
+
57
+ For more details on sharing with your team or publishing, see the [MCP Distribution Guide](docs/mcp_distribution_guide.md).
58
+
59
+ ---
60
+
61
+ ## 🔑 Authentication
62
+
63
+ Once the server is connected, use the `login` tool to authenticate:
64
+
65
+ ```bash
66
+ login()
67
+ ```
68
+
69
+ Verify your connection with:
70
+ ```bash
71
+ # Get full status
72
+ fnk get_status
73
+
74
+ # Or just the active project
75
+ fnk get_active_project
76
+ ```
77
+
78
+ ## 🧠 Auto-Invoke Protocol
79
+
80
+ Fenkit MCP is designed for **autonomous task coordination**. It includes a built-in protocol that teaches AI agents how to manage tasks without user intervention.
81
+
82
+ Key lifecycle rules for agents:
83
+ 1. **Context**: Always call `get_status` and `get_full_task` before starting work.
84
+ 2. **Planning**: Automatically submit implementation plans via `update_task_plan`.
85
+ 3. **Execution**: Update task status to `in_progress` via `update_task_metadata`.
86
+ 4. **Completion**: Submit walkthroughs via `update_task_walkthrough` and mark as `done`.
87
+
88
+ See the full [Fenkit Task Protocol](PROTOCOL.md) for details.
89
+
90
+ ## 🧰 Available Tools
91
+
92
+ | Tool | Description |
93
+ |------|-------------|
94
+ | `login` | Authenticate via browser and save your API token automatically. |
95
+ | `get_status` | Check authentication and active project status. |
96
+ | `list_projects` | List all available Fenkit projects. |
97
+ | `select_project` | Set the active project for subsequent task operations. |
98
+ | `get_active_project` | Get the currently active project name and ID. |
99
+ | `list_tasks` | List tasks in the active project (supports status filters). |
100
+ | `search_tasks` | Search tasks by name or description. |
101
+ | `get_full_task` | Retrieve the complete context of a task in one call. |
102
+ | `update_task_plan` | Propose or update an implementation plan for a task. |
103
+ | `update_task_walkthrough` | Submit a walkthrough of completed work. |
104
+ | `update_task_metadata` | Update task status, priority, or custom metadata. |
105
+ | `setup_client` | Automatically configure an AI client to use Fenkit MCP (writes config files). |
106
+ | `get_setup_instructions` | Get manual config snippets for any client without touching files. |
107
+
108
+ ## 🛠️ Troubleshooting
109
+
110
+ - **Auth Timeout**: The `login` browser window must be completed within 2 minutes. If it times out, restart the process.
111
+ - **Port Conflicts**: The login flow requires an available local port for the callback server. If you see port errors, ensure no other instance of the MCP server or CLI is running a login flow.
112
+ - **Client Restart**: Most AI clients (Cursor, Claude Desktop) require a full restart to pick up changes in their MCP configuration files.
113
+ - **Node Version**: If the server fails to start, verify you are using **Node.js v18** or later (`node -v`).
114
+
115
+ ## 📐 Design Principles
116
+
117
+ 1. **Task-Centric**: Tasks are the primary unit of coordination.
118
+ 2. **Minimal Overhead**: Optimized tools to reduce LLM token usage (e.g., `get_full_task`).
119
+ 3. **Safe Writes**: All writes are versioned; no destructive overwrites are performed.
120
+ 4. **Privacy First**: Automatically redacts content wrapped in `<private>` tags.
121
+
122
+ ---
123
+
124
+ *Part of the Fenkit AI-Native Creator App Platform.*