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: README.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,15 +33,25 @@ This repository includes a sample file with a rule violation to demonstrate how
33
33
34
34
You can use an AI agent to scan this file and see the violation.
35
35
36
-
1.**Start the Context Sherpa server**:
37
-
```bash
38
-
./context-sherpa
36
+
1.**Configure the MCP server** in your AI editor:
37
+
Add the following to your `mcp.json` configuration file (assuming you built the binary as `server` or didn't otherwise specify a different output file name when running `go build`):
38
+
```json
39
+
{
40
+
"mcpServers": {
41
+
"context-sherpa": {
42
+
"type": "stdio",
43
+
"command": "./server"
44
+
}
45
+
}
46
+
}
39
47
```
40
48
41
-
2. **Instruct your AI agent to scan the file**:
49
+
2. **Start your AI editor** with the MCP server configured.
50
+
51
+
3. **Instruct your AI agent to scan the file**:
42
52
> "Scan the code in the `test-violation.go` file."
43
53
44
-
3. **The agent will use the `scan_code` tool and report the violation**:
54
+
4. **The agent will use the `scan_code` tool and report the violation**:
45
55
The agent will read the file and call the `scan_code` tool with the content of `test-violation.go`. The server will then return the violation found, and the agent will report it back to you.
0 commit comments