devto-mcp 0.1.9 → 0.2.1

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 CHANGED
@@ -10,6 +10,8 @@ npm install -g devto-mcp
10
10
 
11
11
  Requires Node.js >= 18 and [Claude Code](https://claude.ai/claude-code).
12
12
 
13
+ This is a one-time global install. Each project is linked individually via `devto init` — uninstalling from one project does not affect others.
14
+
13
15
  ## Setup
14
16
 
15
17
  1. Create an account and get an API key at [devto.ai](https://devto.ai)
@@ -21,12 +23,38 @@ devto login
21
23
  devto config set anthropic-key sk-ant-xxxx
22
24
  ```
23
25
 
24
- 3. Connect to Claude Code:
26
+ 3. In your project directory, link to DevTo:
25
27
 
26
28
  ```bash
29
+ cd your-project
27
30
  devto init
28
31
  ```
29
32
 
33
+ This creates:
34
+ - `.devto.json` — project config (workspace URL, project key, provider)
35
+ - `.devto/config.json` — credentials (API key, scoped to this project)
36
+ - `.mcp.json` — Claude Code MCP server config
37
+
38
+ Both `.devto.json` and `.devto/` are added to `.gitignore` automatically.
39
+
40
+ 4. Restart Claude Code to pick up the MCP config.
41
+
42
+ ## Per-project configuration
43
+
44
+ Each project gets its own `.devto.json` in the project root:
45
+
46
+ ```json
47
+ {
48
+ "workspaceUrl": "https://yourcompany.atlassian.net",
49
+ "projectKey": "ENG",
50
+ "provider": "jira"
51
+ }
52
+ ```
53
+
54
+ When the MCP server starts, it walks up the directory tree from the current working directory looking for `.devto.json`. If found, that workspace and project are used for all API calls. If not found, it falls back to the tenant's default workspace.
55
+
56
+ **Add `.devto.json` to your `.gitignore`.** It may contain a workspace ID. `devto init` does this automatically.
57
+
30
58
  ## Usage
31
59
 
32
60
  In Claude Code:
@@ -41,17 +69,29 @@ DevTo generates a structured plan. Run `confirm_plan` to push it to your project
41
69
 
42
70
  | Command | Description |
43
71
  |---|---|
44
- | `devto login` | Authenticate with your API key |
45
- | `devto status` | Show connection and usage info |
46
- | `devto init` | Auto-configure MCP in Claude Code |
72
+ | `devto login` | Authenticate with your API key (global) |
73
+ | `devto init` | Link this project to DevTo |
74
+ | `devto unlink` | Unlink this project (removes .devto.json, .devto/, registry entry) |
75
+ | `devto status` | Show connection and active project config |
47
76
  | `devto doctor` | Run diagnostics |
48
77
  | `devto sync` | Re-sync workspace config |
49
78
  | `devto config set anthropic-key` | Store your Anthropic key locally |
50
79
 
80
+ ### Unlinking a project
81
+
82
+ ```bash
83
+ devto unlink
84
+ ```
85
+
86
+ This removes `.devto.json`, `.devto/`, the devto entry from `.mcp.json`, and the project from `~/.devto/projects.json`. It does **not** uninstall the global package.
87
+
88
+ To fully remove DevTo: `npm uninstall -g devto-mcp`.
89
+
51
90
  ## MCP tools
52
91
 
53
92
  | Tool | Description |
54
93
  |---|---|
94
+ | `get_project_summary` | Lightweight snapshot of active work |
55
95
  | `create_plan` | Generate a plan from a feature description |
56
96
  | `confirm_plan` | Execute a plan and create all work items |
57
97
  | `create_epic` | Create an epic |
@@ -61,6 +101,10 @@ DevTo generates a structured plan. Run `confirm_plan` to push it to your project
61
101
  | `update_task` | Update a task's status |
62
102
  | `get_status` | Get project summary |
63
103
 
104
+ ## Project registry
105
+
106
+ DevTo keeps a registry of linked projects at `~/.devto/projects.json`. This is used internally to track which directories are linked. You don't need to edit it manually.
107
+
64
108
  ## Dashboard
65
109
 
66
110
  Manage your workspace, API keys, and billing at [devto.ai/dashboard](https://devto.ai/dashboard).
package/bin/devto-mcp.js CHANGED
File without changes
package/bin/devto.js CHANGED
File without changes
package/dist/cli.d.ts CHANGED
@@ -6,13 +6,12 @@
6
6
  * devto login Authenticate with your DevTo API key
7
7
  * devto logout Clear global credentials
8
8
  * devto status Show current connection status
9
- * devto init Auto-configure Claude Code MCP config
9
+ * devto init Link this project to DevTo
10
+ * devto unlink Unlink this project from DevTo
10
11
  * devto doctor Test full connection chain
11
12
  * devto sync Re-sync workspace configuration
12
13
  * devto verbose Toggle verbose mode
13
14
  * devto config set anthropic-key <key> Store Anthropic API key
14
- * devto uninstall Remove DevTo from this project
15
- * devto uninstall --purge Remove DevTo from this project + global config
16
15
  */
17
16
  export {};
18
17
  //# sourceMappingURL=cli.d.ts.map
package/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;GAcG"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;GAaG"}