@focus-pocus/mcp-server 0.1.0 → 0.1.2
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 +128 -0
- package/package.json +30 -3
package/README.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# @focus-pocus/mcp-server
|
|
2
|
+
|
|
3
|
+
[Model Context Protocol](https://modelcontextprotocol.io) (MCP) server for [Focus Pocus](https://focuspocusapp.com) — manage tasks, track work, and monitor goals from any MCP client.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
### 1. Get a Personal Access Token
|
|
8
|
+
|
|
9
|
+
In Focus Pocus, go to **Settings > API Access** and create a token. Copy it — it's only shown once.
|
|
10
|
+
|
|
11
|
+
### 2. Configure your MCP client
|
|
12
|
+
|
|
13
|
+
**Claude Code (CLI)**
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
claude mcp add focus-pocus \
|
|
17
|
+
-e FOCUS_POCUS_API_URL=https://api.focuspocusapp.com \
|
|
18
|
+
-e FOCUS_POCUS_TOKEN=fp_pat_your_token_here \
|
|
19
|
+
-- npx -y @focus-pocus/mcp-server
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**Claude Desktop / JSON config**
|
|
23
|
+
|
|
24
|
+
Add to your MCP settings file (e.g. `~/.claude/mcp.json` or `claude_desktop_config.json`):
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"mcpServers": {
|
|
29
|
+
"focus-pocus": {
|
|
30
|
+
"command": "npx",
|
|
31
|
+
"args": ["-y", "@focus-pocus/mcp-server"],
|
|
32
|
+
"env": {
|
|
33
|
+
"FOCUS_POCUS_API_URL": "https://api.focuspocusapp.com",
|
|
34
|
+
"FOCUS_POCUS_TOKEN": "fp_pat_your_token_here"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**Self-hosted instance** — replace the API URL with your own (e.g. `http://localhost:3001`).
|
|
42
|
+
|
|
43
|
+
## Environment Variables
|
|
44
|
+
|
|
45
|
+
| Variable | Required | Description |
|
|
46
|
+
|----------|----------|-------------|
|
|
47
|
+
| `FOCUS_POCUS_TOKEN` | Yes | Personal Access Token from Settings > API Access |
|
|
48
|
+
| `FOCUS_POCUS_API_URL` | Yes | Focus Pocus API URL (`https://api.focuspocusapp.com` or self-hosted) |
|
|
49
|
+
|
|
50
|
+
## Available Tools (22)
|
|
51
|
+
|
|
52
|
+
### Tasks
|
|
53
|
+
|
|
54
|
+
| Tool | Description |
|
|
55
|
+
|------|-------------|
|
|
56
|
+
| `create_task` | Create a task with name, priority, difficulty, due date, and goal |
|
|
57
|
+
| `update_task` | Update specific fields on an existing task |
|
|
58
|
+
| `complete_task` | Mark a task as completed |
|
|
59
|
+
| `list_tasks` | List tasks filtered by completion status or goal |
|
|
60
|
+
| `get_task` | Get full task details by ID |
|
|
61
|
+
| `search_tasks` | Semantic text search across tasks |
|
|
62
|
+
|
|
63
|
+
### Work Tracking
|
|
64
|
+
|
|
65
|
+
| Tool | Description |
|
|
66
|
+
|------|-------------|
|
|
67
|
+
| `start_working` | Start a work session on a task |
|
|
68
|
+
| `stop_working` | Stop tracking work on a task |
|
|
69
|
+
| `get_current_work` | List tasks currently being worked on |
|
|
70
|
+
| `get_work_summary` | Activity summary with recent work sessions |
|
|
71
|
+
| `stop_all_work` | Stop all active work sessions at once |
|
|
72
|
+
|
|
73
|
+
### Goals
|
|
74
|
+
|
|
75
|
+
| Tool | Description |
|
|
76
|
+
|------|-------------|
|
|
77
|
+
| `list_goals` | List all goals |
|
|
78
|
+
| `get_goal` | Get goal details including tasks and milestones |
|
|
79
|
+
| `create_goal` | Create a new goal with name, description, and color |
|
|
80
|
+
| `link_task_to_goal` | Associate a task with a goal |
|
|
81
|
+
|
|
82
|
+
### Insights
|
|
83
|
+
|
|
84
|
+
| Tool | Description |
|
|
85
|
+
|------|-------------|
|
|
86
|
+
| `get_insights` | Productivity stats — overdue items, completed today, goal alignment |
|
|
87
|
+
| `get_follow_up_items` | Surface stale, abandoned, or overdue tasks |
|
|
88
|
+
| `find_related_tasks` | Find semantically related tasks by concept |
|
|
89
|
+
|
|
90
|
+
### Collaboration
|
|
91
|
+
|
|
92
|
+
| Tool | Description |
|
|
93
|
+
|------|-------------|
|
|
94
|
+
| `list_collaborators` | List people you collaborate with across shared goals |
|
|
95
|
+
| `get_goal_collaborators` | List collaborators on a specific goal |
|
|
96
|
+
| `list_tasks_for_collaborator` | List tasks for a specific collaborator |
|
|
97
|
+
|
|
98
|
+
### Comments
|
|
99
|
+
|
|
100
|
+
| Tool | Description |
|
|
101
|
+
|------|-------------|
|
|
102
|
+
| `add_comment` | Add a progress note or comment to a task |
|
|
103
|
+
|
|
104
|
+
## PAT Scopes
|
|
105
|
+
|
|
106
|
+
Tokens can be scoped to limit access:
|
|
107
|
+
|
|
108
|
+
| Scope | Grants access to |
|
|
109
|
+
|-------|-----------------|
|
|
110
|
+
| `tasks:read` | list_tasks, get_task, search_tasks, find_related_tasks, get_follow_up_items |
|
|
111
|
+
| `tasks:write` | create_task, update_task, complete_task |
|
|
112
|
+
| `goals:read` | list_goals, get_goal |
|
|
113
|
+
| `goals:write` | create_goal, link_task_to_goal |
|
|
114
|
+
| `work:tracking` | start_working, stop_working, stop_all_work, get_current_work, get_work_summary |
|
|
115
|
+
| `comments:write` | add_comment |
|
|
116
|
+
| `collaborators:read` | list_collaborators, get_goal_collaborators, list_tasks_for_collaborator |
|
|
117
|
+
|
|
118
|
+
## Security
|
|
119
|
+
|
|
120
|
+
- Tokens are SHA-256 hashed at rest; the plaintext is shown only at creation
|
|
121
|
+
- Per-token rate limiting (120 requests/min)
|
|
122
|
+
- All mutations are logged in the Activity Log with revert support
|
|
123
|
+
- Tokens can be revoked anytime from Settings > API Access
|
|
124
|
+
- Secrets are redacted from error output
|
|
125
|
+
|
|
126
|
+
## License
|
|
127
|
+
|
|
128
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,10 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@focus-pocus/mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "MCP server for Focus
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Model Context Protocol (MCP) server for Focus Pocus — manage tasks, track work, and monitor goals from Claude Code or any MCP-compatible client",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Focus Pocus",
|
|
8
|
+
"homepage": "https://focuspocusapp.com",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/Zubin-Teherani/focus-pocus.git",
|
|
12
|
+
"directory": "mcp-server"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/Zubin-Teherani/focus-pocus/issues"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"mcp",
|
|
19
|
+
"model-context-protocol",
|
|
20
|
+
"focus-pocus",
|
|
21
|
+
"task-management",
|
|
22
|
+
"claude",
|
|
23
|
+
"claude-code",
|
|
24
|
+
"ai-tools",
|
|
25
|
+
"productivity",
|
|
26
|
+
"goals",
|
|
27
|
+
"work-tracking"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18.0.0"
|
|
31
|
+
},
|
|
6
32
|
"bin": {
|
|
7
|
-
"
|
|
33
|
+
"mcp-server": "dist/index.js",
|
|
34
|
+
"focus-pocus-mcp-server": "dist/index.js"
|
|
8
35
|
},
|
|
9
36
|
"scripts": {
|
|
10
37
|
"build": "tsc",
|