@aidemd-mcp/server 0.2.2 → 0.2.4

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
@@ -1,41 +1,130 @@
1
1
  # @aidemd-mcp/server
2
2
 
3
- MCP server that teaches any agent the AIDE (Autonomous Intel-Driven Engineering) methodology. When an agent connects, the tool descriptions themselves teach the convention — no config or documentation injection needed.
3
+ [![npm version](https://img.shields.io/npm/v/@aidemd-mcp/server.svg)](https://www.npmjs.com/package/@aidemd-mcp/server)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
5
 
5
- ## What is AIDE?
6
+ MCP server that brings intent-driven development to any AI-powered IDE.
7
+ Manage `.aide` spec files that live next to your code — the domain context
8
+ that architects plan from, implementors build from, and QA validates against.
6
9
 
7
- AIDE specs are `.aide` files that live next to orchestrator code as progressive disclosure specs. They capture the domain context that code alone doesn't — strategy, research, implementation contracts, and anti-patterns.
10
+ ## Features
8
11
 
9
- | File | Purpose |
10
- |------|---------|
11
- | `.aide` | Intent spec (default). Strategy, contracts, anti-patterns. |
12
- | `intent.aide` | Same as `.aide` used only when `research.aide` exists in the same folder. |
13
- | `research.aide` | Raw research. Sources, data points, pattern synthesis. |
14
- | `todo.aide` | QA checklist. Issues found by audit agents. |
12
+ - **Project-wide spec discovery** with a progressive disclosure tree that surfaces intent, research, and QA specs at every level of your codebase
13
+ - **One-command project bootstrap** via `aide_init` — wires methodology docs, pipeline commands, and this MCP server into your project in a single guided flow
14
+ - **Automatic naming convention enforcement** — `aide_scaffold` handles the `.aide` / `intent.aide` rename rules so you never create conflicting specs
15
+ - **Health-check validation** via `aide_validate` detects orphaned specs, missing descriptions, broken links, and naming conflicts before they cause drift
16
+ - **Upgrade drift detection** via `aide_upgrade` compares your project's AIDE methodology artifacts against canonical versions and writes updates per-category
15
17
 
16
18
  ## Installation
17
19
 
18
- Add to your MCP client config:
20
+ ### Quick Start (Claude Code)
21
+
22
+ The fastest path is a single npx command that wires everything up automatically:
23
+
24
+ ```bash
25
+ npx @aidemd-mcp/server@latest init
26
+ ```
27
+
28
+ This command:
29
+ - Merges the AIDE MCP server entry into `.mcp.json` (creates the file or skips the entry if already present)
30
+ - Writes the `/aide:init` slash command to `.claude/commands/aide/init.md` (skips if exists)
31
+ - Writes the `aide-tree` launcher to `.aide/bin/aide-tree.mjs` (skips if exists)
32
+
33
+ All operations are idempotent — safe to re-run at any time.
34
+
35
+ After running, open Claude Code and run `/aide:init` to complete setup.
36
+
37
+ ### Manual Configuration
38
+
39
+ If you use a client other than Claude Code, or prefer to configure manually, add the server entry to your client's MCP config file.
40
+
41
+ #### Claude Code
42
+
43
+ ```bash
44
+ claude mcp add aide npx -- -y @aidemd-mcp/server@latest
45
+ ```
46
+
47
+ Or add to your project's `.mcp.json`:
48
+
49
+ ```json
50
+ {
51
+ "mcpServers": {
52
+ "aide": {
53
+ "command": "npx",
54
+ "args": ["-y", "@aidemd-mcp/server@latest"]
55
+ }
56
+ }
57
+ }
58
+ ```
59
+
60
+ > [!NOTE]
61
+ > The Quick Start command above handles this automatically for Claude Code users.
62
+
63
+ #### Claude Desktop
64
+
65
+ Config file locations:
66
+ - **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
67
+ - **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
19
68
 
20
69
  ```json
21
70
  {
22
71
  "mcpServers": {
23
72
  "aide": {
24
73
  "command": "npx",
25
- "args": ["@aidemd-mcp/server"]
74
+ "args": ["-y", "@aidemd-mcp/server@latest"]
26
75
  }
27
76
  }
28
77
  }
29
78
  ```
30
79
 
31
- Or with a custom project root:
80
+ > [!NOTE]
81
+ > Claude Desktop does not inherit the terminal PATH. If you use nvm or Homebrew to manage Node, `npx` may not be found. Run `which npx` in your terminal to get the absolute path and replace `"npx"` with it in the config above.
82
+
83
+ Claude Desktop requires a full quit-and-reopen after any config change.
84
+
85
+ #### Cursor
86
+
87
+ Add to `~/.cursor/mcp.json`:
32
88
 
33
89
  ```json
34
90
  {
35
91
  "mcpServers": {
36
92
  "aide": {
37
93
  "command": "npx",
38
- "args": ["@aidemd-mcp/server", "--root", "/path/to/project"]
94
+ "args": ["-y", "@aidemd-mcp/server@latest"]
95
+ }
96
+ }
97
+ }
98
+ ```
99
+
100
+ #### VS Code / Copilot
101
+
102
+ Add to `.vscode/mcp.json`:
103
+
104
+ ```json
105
+ {
106
+ "servers": {
107
+ "aide": {
108
+ "command": "npx",
109
+ "args": ["-y", "@aidemd-mcp/server@latest"]
110
+ }
111
+ }
112
+ }
113
+ ```
114
+
115
+ > [!NOTE]
116
+ > VS Code / Copilot uses `"servers"` as the root key, not `"mcpServers"`. Using the wrong root key causes the server to silently fail to load.
117
+
118
+ #### Windsurf
119
+
120
+ Add to `~/.windsurf/mcp.json`:
121
+
122
+ ```json
123
+ {
124
+ "mcpServers": {
125
+ "aide": {
126
+ "command": "npx",
127
+ "args": ["-y", "@aidemd-mcp/server@latest"]
39
128
  }
40
129
  }
41
130
  }
@@ -43,41 +132,59 @@ Or with a custom project root:
43
132
 
44
133
  ## Tools
45
134
 
46
- ### `aide_discover`
135
+ ### aide_discover
136
+
137
+ Scan the project for `.aide` spec files and return a progressive disclosure tree map showing each spec's type, location, and summary.
138
+
139
+ **Inputs:**
140
+ - `path` (string, optional): Subdirectory to drill into. When provided, the response opens with the ancestor chain — the cascading intent lineage from root to target, each ancestor showing its description and alignment status — followed by the detailed subtree with summaries and warnings. When omitted, returns a shallow project-wide map (locations and types only).
47
141
 
48
- Scans the project for all `.aide` files and returns a progressive disclosure tree map. This is the flagship tool — it teaches the agent the entire module architecture at a glance.
142
+ ### aide_read
49
143
 
50
- **Input:** optional `path` (subdirectory to scan)
144
+ Read an `.aide` spec file with full context, returning the file content, its classified type (intent/research/plan/todo), related specs in the same directory, and links found in the content.
51
145
 
52
- **Output:** Tree showing each spec's type, location, and summary.
146
+ **Inputs:**
147
+ - `path` (string, required): Path to the `.aide` file to read.
53
148
 
54
- ### `aide_read`
149
+ ### aide_scaffold
55
150
 
56
- Reads an `.aide` file with context awareness. Returns the file content, classified type, sibling specs in the same directory, and links found in the content (wikilinks, relative paths, URLs).
151
+ Create new `.aide` spec files with automatic naming convention enforcement. Handles the rename rules: intent specs are `.aide` by default but become `intent.aide` when `research.aide` exists in the same folder; creating a `research.aide` auto-renames any existing `.aide` to `intent.aide`.
57
152
 
58
- **Input:** `path` (required)
153
+ **Inputs:**
154
+ - `directory` (string, required): Directory where the `.aide` file(s) will be created.
155
+ - `type` (string, required): Type of `.aide` file to create. One of: `intent`, `research`, `both`, `todo`, `plan`.
59
156
 
60
- ### `aide_scaffold`
157
+ ### aide_validate
61
158
 
62
- Creates new `.aide` files with automatic naming convention enforcement. Handles auto-rename logic creating a `research.aide` will rename an existing `.aide` to `intent.aide`.
159
+ Run a health check on `.aide` spec files in the project. Detects orphaned specs, missing specs, naming conflicts (`.aide` and `intent.aide` in the same folder), broken links, orphaned research files, and missing frontmatter descriptions.
63
160
 
64
- **Input:** `directory` (required), `type` (required: `intent` | `research` | `both` | `todo`)
161
+ **Inputs:**
162
+ - `path` (string, optional): Subdirectory to validate. Defaults to the entire project when omitted.
65
163
 
66
- ### `aide_validate`
164
+ ### aide_init
67
165
 
68
- Health check for `.aide` spec files. Detects orphaned specs, missing specs, naming conflicts, broken links, and orphaned research files.
166
+ Bootstrap the AIDE development environment into a project using a guided one-at-a-time wizard. On the first call (no `category`), returns a summary of every step with status and detected framework. On subsequent calls (with `category`), writes all pending files for that category to disk and returns a manifest.
69
167
 
70
- **Input:** optional `path` (subdirectory to validate)
168
+ **Inputs:**
169
+ - `framework` (string, optional): Force a specific framework instead of auto-detecting. One of: `claude`, `cursor`, `windsurf`, `copilot`.
170
+ - `path` (string, optional): Custom project root path. Defaults to the server working directory.
171
+ - `category` (string, optional): Write all `would-create` files for this category and return a manifest. One of: `framework`, `methodology`, `commands`, `agents`, `skills`, `mcp`, `brain`, `ide`. Omit on the first call to get a metadata-only summary.
172
+ - `brainPath` (string, optional): Resolved brain vault path. Required when `category=brain`.
71
173
 
72
- ### `aide_init`
174
+ ### aide_upgrade
73
175
 
74
- Bootstrap the AIDE development environment into a project with one command. Detects the agent framework, writes the AIDE methodology into the agent's config file, scaffolds slash commands for every pipeline phase (`/aide-research`, `/aide-spec`, `/aide-synthesize`, `/aide-plan`, `/aide-build`, `/aide-qa`, `/aide-fix`, `/aide-refactor`), and wires this MCP server into the project's MCP config.
176
+ Compare the AIDE methodology artifacts in this project against canonical versions and return a structured diff grouped by category. On the first call (no `category`), returns a lightweight summary of every category with drift status. On subsequent calls (with `category`), writes all diffed or missing files for that category to disk and returns a manifest.
75
177
 
76
- Supports Claude Code, Cursor, Windsurf, and Copilot. Auto-detects from marker files or accepts an override.
178
+ **Inputs:**
179
+ - `framework` (string, optional): Force a specific framework instead of auto-detecting. One of: `claude`, `cursor`, `windsurf`, `copilot`.
180
+ - `path` (string, optional): Custom project root path. Defaults to the server working directory.
181
+ - `category` (string, optional): Write all drifted or missing files for this category and return a manifest. One of: `pointer-stub`, `methodology-docs`, `version-metadata`, `commands`, `agents`, `skills`, `mcp`, `ide`. Omit on the first call to get a metadata-only summary.
77
182
 
78
- **Input:** optional `framework` (`claude` | `cursor` | `windsurf` | `copilot`), optional `path` (project root)
183
+ ## Getting Started
79
184
 
80
- Each step is idempotent running on an already-initialized project reports what's present without overwriting.
185
+ After adding the server to your MCP client, ask your agent to run `aide_init` to bootstrap the AIDE methodology into your project. This installs the methodology docs, scaffolds pipeline commands, and wires everything up.
186
+
187
+ Then try: "Scaffold an intent spec for my authentication module" — the agent will use `aide_discover` to map your project and `aide_scaffold` to create the spec in the right place with the right naming conventions.
81
188
 
82
189
  ## Development
83
190
 
@@ -86,3 +193,7 @@ npm install
86
193
  npm run build
87
194
  npm test
88
195
  ```
196
+
197
+ ## License
198
+
199
+ [MIT](https://github.com/aidemd-mcp/server/blob/main/LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aidemd-mcp/server",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "MCP server that teaches any agent the AIDE methodology through tool descriptions and progressive disclosure tooling",
5
5
  "type": "module",
6
6
  "bin": {
@@ -32,7 +32,9 @@
32
32
  "README.md",
33
33
  ".aide",
34
34
  ".aide/bin",
35
- ".claude/commands/aide"
35
+ ".claude/commands/aide",
36
+ ".claude/agents/aide",
37
+ ".claude/skills"
36
38
  ],
37
39
  "dependencies": {
38
40
  "@modelcontextprotocol/sdk": "^1.12.1",