@agent-lint/mcp 0.2.1 → 0.3.3
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/CHANGELOG.md +38 -0
- package/README.md +32 -96
- package/dist/bin.d.ts +3 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +1 -1
- package/dist/catalog.d.ts +5 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/{chunk-MNSQOOMH.js → chunk-DYP46E6V.js} +396 -306
- package/dist/chunk-DYP46E6V.js.map +1 -0
- package/dist/http-security.d.ts +73 -0
- package/dist/http-security.d.ts.map +1 -0
- package/dist/http.d.ts +36 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/logger.d.ts +4 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/prompts/register-prompts.d.ts +3 -0
- package/dist/prompts/register-prompts.d.ts.map +1 -0
- package/dist/resources/register-resources.d.ts +3 -0
- package/dist/resources/register-resources.d.ts.map +1 -0
- package/dist/server.d.ts +12 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/stdio.d.ts +2 -0
- package/dist/stdio.d.ts.map +1 -0
- package/dist/tools/emit-maintenance-snippet.d.ts +3 -0
- package/dist/tools/emit-maintenance-snippet.d.ts.map +1 -0
- package/dist/tools/get-guidelines.d.ts +3 -0
- package/dist/tools/get-guidelines.d.ts.map +1 -0
- package/dist/tools/index.d.ts +6 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/plan-workspace-autofix.d.ts +6 -0
- package/dist/tools/plan-workspace-autofix.d.ts.map +1 -0
- package/dist/tools/quick-check.d.ts +3 -0
- package/dist/tools/quick-check.d.ts.map +1 -0
- package/dist/tools/schema-compat.d.ts +13 -0
- package/dist/tools/schema-compat.d.ts.map +1 -0
- package/dist/tools/tool-result.d.ts +4 -0
- package/dist/tools/tool-result.d.ts.map +1 -0
- package/dist/transport-security.d.ts +51 -0
- package/dist/transport-security.d.ts.map +1 -0
- package/package.json +18 -11
- package/dist/chunk-MNSQOOMH.js.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# @agent-lint/mcp Changelog
|
|
2
|
+
|
|
3
|
+
## [0.3.3]
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- GitLab publish jobs now support both plain and file-based `NPM_TOKEN` variables and fail fast on invalid npm auth
|
|
8
|
+
|
|
9
|
+
## [0.3.2]
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- README and npm description now use the current public positioning around structured, current, codebase-aware agent context
|
|
14
|
+
- Public repository cleanup removed internal planning docs from the published surface
|
|
15
|
+
|
|
16
|
+
## [0.3.1]
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- README, npm metadata, and release metadata now match the current 4-tool MCP surface
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- Tool timeout wiring is now attached to the active public tools
|
|
25
|
+
- Server version resolution now prefers the package version instead of unrelated workspace env values
|
|
26
|
+
|
|
27
|
+
## [0.3.0]
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
- Read-only MCP server with 4 tools and 3 resources
|
|
32
|
+
- Stdio and HTTP transports
|
|
33
|
+
- Programmatic server creation helpers
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- Current tool timeout wiring now matches the public tool surface
|
|
38
|
+
- Server version reporting now resolves to the real package version
|
package/README.md
CHANGED
|
@@ -1,109 +1,39 @@
|
|
|
1
1
|
# @agent-lint/mcp
|
|
2
2
|
|
|
3
|
-
MCP server for
|
|
3
|
+
Read-only MCP server for keeping `AGENTS.md`, rules, and skills structured, current, and codebase-aware.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## What It Does
|
|
8
|
-
|
|
9
|
-
Provides a [Model Context Protocol](https://modelcontextprotocol.io/) server that evaluates AI-agent context artifacts:
|
|
10
|
-
|
|
11
|
-
- `AGENTS.md` / `CLAUDE.md`
|
|
12
|
-
- Skills, Rules, Workflows, Plans
|
|
13
|
-
|
|
14
|
-
Reproducible quality scoring across **12 metrics**, evidence-backed assessment, guardrail checks, and repeatable improvement loops — all without calling any LLM.
|
|
15
|
-
|
|
16
|
-
## Quick Start
|
|
5
|
+
## Start the Server
|
|
17
6
|
|
|
18
7
|
```bash
|
|
19
8
|
npx -y @agent-lint/mcp
|
|
20
9
|
```
|
|
21
10
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### Cursor
|
|
25
|
-
|
|
26
|
-
Add to `.cursor/mcp.json`:
|
|
27
|
-
|
|
28
|
-
```json
|
|
29
|
-
{
|
|
30
|
-
"mcpServers": {
|
|
31
|
-
"agent-lint": {
|
|
32
|
-
"command": "npx",
|
|
33
|
-
"args": ["-y", "@agent-lint/mcp"]
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Claude Desktop
|
|
11
|
+
For most users, the fastest setup path is still:
|
|
40
12
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
```json
|
|
44
|
-
{
|
|
45
|
-
"mcpServers": {
|
|
46
|
-
"agent-lint": {
|
|
47
|
-
"command": "npx",
|
|
48
|
-
"args": ["-y", "@agent-lint/mcp"]
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### VS Code
|
|
55
|
-
|
|
56
|
-
Add to your VS Code `settings.json`:
|
|
57
|
-
|
|
58
|
-
```json
|
|
59
|
-
{
|
|
60
|
-
"mcp": {
|
|
61
|
-
"servers": {
|
|
62
|
-
"agent-lint": {
|
|
63
|
-
"command": "npx",
|
|
64
|
-
"args": ["-y", "@agent-lint/mcp"]
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### Windsurf
|
|
72
|
-
|
|
73
|
-
Add to your Windsurf MCP config:
|
|
74
|
-
|
|
75
|
-
```json
|
|
76
|
-
{
|
|
77
|
-
"mcpServers": {
|
|
78
|
-
"agent-lint": {
|
|
79
|
-
"command": "npx",
|
|
80
|
-
"args": ["-y", "@agent-lint/mcp"]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
13
|
+
```bash
|
|
14
|
+
npx @agent-lint/cli init
|
|
84
15
|
```
|
|
85
16
|
|
|
86
|
-
##
|
|
17
|
+
## Current Tool Surface
|
|
87
18
|
|
|
88
|
-
| Tool
|
|
89
|
-
|
|
|
90
|
-
| `
|
|
91
|
-
| `
|
|
92
|
-
| `
|
|
93
|
-
| `
|
|
94
|
-
| `submit_client_assessment` | Submit a client LLM assessment with evidence-backed scores |
|
|
95
|
-
| `quality_gate_artifact` | Check if an artifact meets a target quality score |
|
|
96
|
-
| `suggest_patch` | Generate patch suggestions to improve an artifact |
|
|
97
|
-
| `apply_patches` | Apply patches to local files with hash guard, allowlist, and backup protection |
|
|
98
|
-
| `validate_export` | Validate final artifact output for safety and correctness |
|
|
19
|
+
| Tool | Purpose |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| `agentlint_get_guidelines` | Return artifact guidance before creating or updating context files |
|
|
22
|
+
| `agentlint_plan_workspace_autofix` | Scan a workspace and return a step-by-step fix plan |
|
|
23
|
+
| `agentlint_quick_check` | Decide whether recent code changes require context updates |
|
|
24
|
+
| `agentlint_emit_maintenance_snippet` | Return a reusable maintenance rule snippet for supported IDEs |
|
|
99
25
|
|
|
100
|
-
##
|
|
26
|
+
## Current Resource Surface
|
|
101
27
|
|
|
102
|
-
|
|
28
|
+
| Resource | Purpose |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| `agentlint://guidelines/{type}` | Readable guidelines for one artifact type |
|
|
31
|
+
| `agentlint://template/{type}` | Skeleton template for a new artifact |
|
|
32
|
+
| `agentlint://path-hints/{type}` | IDE-specific file discovery hints |
|
|
103
33
|
|
|
104
34
|
## Programmatic Usage
|
|
105
35
|
|
|
106
|
-
```
|
|
36
|
+
```ts
|
|
107
37
|
import { createAgentLintMcpServer } from "@agent-lint/mcp";
|
|
108
38
|
|
|
109
39
|
const server = createAgentLintMcpServer({
|
|
@@ -117,17 +47,23 @@ const server = createAgentLintMcpServer({
|
|
|
117
47
|
npx @agent-lint/mcp --http --port 3001
|
|
118
48
|
```
|
|
119
49
|
|
|
120
|
-
|
|
50
|
+
Notes:
|
|
51
|
+
|
|
52
|
+
- HTTP mode keeps the public surface read-only.
|
|
53
|
+
- Workspace scanning is disabled in HTTP mode unless you explicitly enable it.
|
|
54
|
+
|
|
55
|
+
## Design Constraints
|
|
121
56
|
|
|
122
|
-
-
|
|
123
|
-
-
|
|
124
|
-
-
|
|
125
|
-
-
|
|
57
|
+
- No server-side LLM calls
|
|
58
|
+
- No database or cache
|
|
59
|
+
- No file writes from the MCP server
|
|
60
|
+
- Local stderr logging only
|
|
126
61
|
|
|
127
62
|
## Related
|
|
128
63
|
|
|
129
|
-
- [
|
|
130
|
-
- [
|
|
64
|
+
- [Root README](https://github.com/samilytu/agentlint)
|
|
65
|
+
- [CLI package](https://www.npmjs.com/package/@agent-lint/cli)
|
|
66
|
+
- [Authoritative publish source](https://gitlab.com/bsamilozturk/agentlint)
|
|
131
67
|
|
|
132
68
|
## License
|
|
133
69
|
|
package/dist/bin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":""}
|
package/dist/bin.js
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const CURRENT_TOOL_IDS: readonly ["agentlint_get_guidelines", "agentlint_plan_workspace_autofix", "agentlint_quick_check", "agentlint_emit_maintenance_snippet"];
|
|
2
|
+
export declare const CURRENT_RESOURCE_URIS: readonly ["agentlint://guidelines/{type}", "agentlint://template/{type}", "agentlint://path-hints/{type}"];
|
|
3
|
+
export declare const CURRENT_TOOL_TIMEOUTS: Record<(typeof CURRENT_TOOL_IDS)[number], number>;
|
|
4
|
+
export declare const LEGACY_TOOL_TIMEOUT_ALIASES: Record<string, number>;
|
|
5
|
+
//# sourceMappingURL=catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,0IAKnB,CAAC;AAEX,eAAO,MAAM,qBAAqB,4GAIxB,CAAC;AAEX,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAKnF,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAU9D,CAAC"}
|