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
Copy file name to clipboardExpand all lines: AGENT_DOCS/PRD/PRD.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,28 @@ As a developer using an AI coding agent, I want to:
24
24
25
25
The MCP server will expose the following **seven** tools to the AI agent. The agent will use the tool descriptions to decide which tool to call based on the user's request.
26
26
27
+
### Deployment Configuration
28
+
29
+
**Custom Project Root Support**: The server supports a `--projectRoot` command-line argument that allows users to specify where project files (sgconfig.yml, rules/, etc.) should be created, regardless of where the binary is located. This solves cross-platform deployment issues where the binary may be installed in a system location separate from project directories.
30
+
31
+
**Usage**:
32
+
```bash
33
+
# Command line
34
+
context-sherpa --projectRoot="/path/to/project"
35
+
36
+
# MCP configuration
37
+
{
38
+
"mcpServers": {
39
+
"context-sherpa": {
40
+
"command": "context-sherpa",
41
+
"args": ["--projectRoot", "/path/to/project"]
42
+
}
43
+
}
44
+
}
45
+
```
46
+
47
+
This ensures consistent file locations across different installation scenarios and platforms.
48
+
27
49
### Tool 1: `initialize_ast_grep`
28
50
29
51
-**Description**: "Initializes an ast-grep project if one is not already present. It creates the `sgconfig.yml` file and a `rules` directory. This tool should be suggested if another tool fails due to a missing configuration file."
This ensures that `sgconfig.yml`, `rules/`, and other project files are created in your actual project directory rather than where the binary is located.
62
+
34
63
## Features
35
64
36
65
-**Dynamic Rule Management**: Create, update, and remove linting rules on the fly based on natural language feedback.
0 commit comments