You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: update documentation and version for required projectPath parameter
- Updated CHANGELOG.md to document the release of version 0.1.1.
- Corrected `projectPath` parameter in documentation to mark it as required for `logicstamp_refresh_snapshot`, including explanations and examples.
- Updated package.json and package-lock.json to reflect the new version 0.1.1.
- Enhanced error handling in tests to ensure proper validation of the required `projectPath` parameter.
* docs: clarify projectPath requirement and streamline parameter descriptions in README.md
Model Context Protocol (MCP) server for [LogicStamp Context](https://github.com/LogicStamp/logicstamp-context) - enabling AI assistants to safely analyze and understand React/TypeScript codebases.
8
14
9
15
## Overview
@@ -86,9 +92,10 @@ The MCP server provides 6 tools. For complete API documentation with input/outpu
86
92
### Quick Reference
87
93
88
94
**logicstamp_refresh_snapshot** - Create a snapshot of the current codebase state (STEP 1)
-`includeStyle` (optional): Include style metadata in comparison. Only takes effect when `forceRegenerate` is `true`. When `forceRegenerate` is `false`, compares whatever style metadata exists on disk (may be incomplete) (default: `false`)
115
+
-`includeStyle` (optional): Include style metadata in comparison. Only takes effect when `forceRegenerate` is `true` (default: `false`)
109
116
-`forceRegenerate` (optional): Force regeneration of context before comparing. When `false`, reads existing `context_main.json` from disk (fast). When `true`, runs `stamp context` to regenerate (default: `false`)
110
117
-`projectPath` (optional): Project path (defaults to current directory)
111
118
-`baseline` (optional): Comparison baseline: `disk` (default), `snapshot`, or custom path
Copy file name to clipboardExpand all lines: docs/commands/refresh-snapshot.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,10 +52,9 @@
52
52
- Visual consistency checks
53
53
- When the user asks about styling, colors, spacing, animations, or visual design
54
54
55
-
### `projectPath` (optional)
55
+
### `projectPath` (required)
56
56
-**Type:**`string`
57
-
-**Default:** Current working directory (or `PROJECT_PATH` environment variable)
58
-
-**Description:** Absolute path to the project root. If not provided, uses the current directory.
57
+
-**Description:****CRITICAL: Absolute path to project root. REQUIRED - must always be provided.** When `stamp init` has been run, MCP clients may omit this parameter, causing hangs. This parameter is REQUIRED for the tool to work correctly. The server will resolve relative paths to absolute paths automatically.
59
58
60
59
### `cleanCache` (optional)
61
60
-**Type:**`boolean`
@@ -116,18 +115,21 @@ Array of folder metadata objects, each containing:
116
115
```json
117
116
{
118
117
"name": "logicstamp_refresh_snapshot",
119
-
"arguments": {}
118
+
"arguments": {
119
+
"projectPath": "/absolute/path/to/project"
120
+
}
120
121
}
121
122
```
122
123
123
-
This creates a snapshot with default settings (`profile: 'llm-chat'`, `mode: 'header'`, `includeStyle: false`).
124
+
This creates a snapshot with default settings (`profile: 'llm-chat'`, `mode: 'header'`, `includeStyle: false`).**Note:**`projectPath` is required.
124
125
125
126
### With Custom Profile
126
127
127
128
```json
128
129
{
129
130
"name": "logicstamp_refresh_snapshot",
130
131
"arguments": {
132
+
"projectPath": "/absolute/path/to/project",
131
133
"profile": "llm-safe"
132
134
}
133
135
}
@@ -139,6 +141,7 @@ This creates a snapshot with default settings (`profile: 'llm-chat'`, `mode: 'he
139
141
{
140
142
"name": "logicstamp_refresh_snapshot",
141
143
"arguments": {
144
+
"projectPath": "/absolute/path/to/project",
142
145
"includeStyle": true
143
146
}
144
147
}
@@ -150,6 +153,7 @@ This creates a snapshot with default settings (`profile: 'llm-chat'`, `mode: 'he
-`includeStyle` (optional): Include style metadata (default: `false`)
76
-
-`projectPath` (optional): Defaults to current working directory
76
+
-`projectPath` (required): **CRITICAL: Absolute path to project root. REQUIRED - must always be provided.** When `stamp init` has been run, MCP clients may omit this parameter, causing hangs. This parameter is REQUIRED for the tool to work correctly. The server will resolve relative paths to absolute paths automatically.
77
77
-`cleanCache` (optional): Force cache cleanup (default: `false`, auto-detects corruption)
0 commit comments