@kidkender/archmind-mcp 0.1.0
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 +107 -0
- package/dist/index.cjs +28089 -0
- package/package.json +42 -0
package/README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# @kidkender/archmind-mcp
|
|
2
|
+
|
|
3
|
+
MCP server for ArchMind — semantic execution graph intelligence for Laravel projects.
|
|
4
|
+
|
|
5
|
+
Gives Claude Code (and any MCP-compatible AI client) five tools to understand your Laravel app's execution flow without dumping raw source files.
|
|
6
|
+
|
|
7
|
+
## Setup
|
|
8
|
+
|
|
9
|
+
Add to your Claude Code MCP settings:
|
|
10
|
+
|
|
11
|
+
```json
|
|
12
|
+
{
|
|
13
|
+
"mcpServers": {
|
|
14
|
+
"archmind": {
|
|
15
|
+
"command": "npx",
|
|
16
|
+
"args": ["-y", "@kidkender/archmind-mcp"]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
No API key required. Works fully offline. Requires Node.js ≥ 18.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## What it enables
|
|
27
|
+
|
|
28
|
+
With the MCP server running, you can ask Claude Code questions like:
|
|
29
|
+
|
|
30
|
+
> *"Does `PUT /tasks/{id}` check that the user has permission to update this task?"*
|
|
31
|
+
> *"Are there any N+1 query problems in this request trace?"*
|
|
32
|
+
> *"Show me the authorization path for the task update endpoint."*
|
|
33
|
+
|
|
34
|
+
And get back structured, evidence-backed answers — not guesses based on reading random source files.
|
|
35
|
+
|
|
36
|
+
The server parses the Laravel project on first call, caches the result, and answers subsequent queries from the in-memory graph. No database, no server process, no configuration beyond pointing it at your project.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Setup
|
|
41
|
+
|
|
42
|
+
Build the package:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
cd packages/mcp-server && npm run build
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Register in Claude Code's MCP settings:
|
|
49
|
+
|
|
50
|
+
```json
|
|
51
|
+
{
|
|
52
|
+
"mcpServers": {
|
|
53
|
+
"archmind": {
|
|
54
|
+
"command": "node",
|
|
55
|
+
"args": ["/absolute/path/to/packages/mcp-server/dist/index.js"]
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
That's it. The first tool call triggers a full project parse. Subsequent calls are instant.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Available tools
|
|
66
|
+
|
|
67
|
+
### `archmind_list_entrypoints`
|
|
68
|
+
Discover all HTTP routes in a Laravel project — method, path, and how complex each one is (node and edge count).
|
|
69
|
+
|
|
70
|
+
Useful as a first step to understand what's worth investigating.
|
|
71
|
+
|
|
72
|
+
### `archmind_get_execution_graph`
|
|
73
|
+
Return the full or focused semantic execution graph for a specific route.
|
|
74
|
+
|
|
75
|
+
Use the `focus` parameter to narrow to just the authorization path (`auth`), validation path (`validation`), transaction semantics (`transaction`), or tenant isolation patterns (`isolation`). Focused results use significantly fewer tokens.
|
|
76
|
+
|
|
77
|
+
### `archmind_get_findings`
|
|
78
|
+
Run all static and runtime detectors on an endpoint and return structured findings.
|
|
79
|
+
|
|
80
|
+
**Static findings** — authorization gaps, duplicate checks, event-before-commit, missing tenant scope, and more. No LLM call — these are deterministic.
|
|
81
|
+
|
|
82
|
+
**Runtime findings** (when you provide `trace_session_path`) — N+1 query patterns and slow database queries detected from an actual recorded request trace. These find issues static analysis cannot.
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
// Static only
|
|
86
|
+
archmind_get_findings(project_root, entrypoint, query?)
|
|
87
|
+
|
|
88
|
+
// Static + runtime
|
|
89
|
+
archmind_get_findings(project_root, entrypoint, query?, trace_session_path)
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### `archmind_invalidate_cache`
|
|
93
|
+
Force a fresh parse. Call this after changing PHP source files.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Why MCP matters here
|
|
98
|
+
|
|
99
|
+
Most code analysis tools require you to run a separate CLI, configure a language server, or pipe output through custom scripts. The MCP integration means ArchMind's analysis is available wherever Claude Code is — no context switching, no extra terminals, no output parsing.
|
|
100
|
+
|
|
101
|
+
Ask your AI assistant a question about your code. Get a structured answer with evidence. In the same conversation.
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## What's coming
|
|
106
|
+
|
|
107
|
+
As ArchMind gains more capabilities — event listener tracing, queue job analysis, distributed request reconstruction — they'll all be exposed through the same four tools. The interface stays stable while the intelligence behind it grows.
|