@agent-lint/mcp 0.3.0 → 0.3.4
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 +44 -0
- package/README.md +32 -108
- package/dist/bin.js +1 -1
- package/dist/catalog.d.ts +5 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/{chunk-ZYDIOQXE.js → chunk-GNY7X6J5.js} +320 -209
- package/dist/chunk-GNY7X6J5.js.map +1 -0
- package/dist/http.d.ts +2 -1
- package/dist/http.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/tools/emit-maintenance-snippet.d.ts.map +1 -1
- package/dist/tools/get-guidelines.d.ts.map +1 -1
- package/dist/tools/plan-workspace-autofix.d.ts.map +1 -1
- package/dist/tools/quick-check.d.ts.map +1 -1
- package/dist/tools/schema-compat.d.ts +0 -5
- package/dist/tools/schema-compat.d.ts.map +1 -1
- package/dist/transport-security.d.ts +1 -1
- package/dist/transport-security.d.ts.map +1 -1
- package/package.json +14 -10
- package/dist/chunk-ZYDIOQXE.js.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# @agent-lint/mcp Changelog
|
|
2
|
+
|
|
3
|
+
## 0.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a4047fa: Fix doctor workspace discovery and report persistence regressions, and align cross-platform fixture coverage for CLI and MCP outputs.
|
|
8
|
+
|
|
9
|
+
## [0.3.3]
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- GitLab publish jobs now support both plain and file-based `NPM_TOKEN` variables and fail fast on invalid npm auth
|
|
14
|
+
|
|
15
|
+
## [0.3.2]
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- README and npm description now use the current public positioning around structured, current, codebase-aware agent context
|
|
20
|
+
- Public repository cleanup removed internal planning docs from the published surface
|
|
21
|
+
|
|
22
|
+
## [0.3.1]
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- README, npm metadata, and release metadata now match the current 4-tool MCP surface
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- Tool timeout wiring is now attached to the active public tools
|
|
31
|
+
- Server version resolution now prefers the package version instead of unrelated workspace env values
|
|
32
|
+
|
|
33
|
+
## [0.3.0]
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
|
|
37
|
+
- Read-only MCP server with 4 tools and 3 resources
|
|
38
|
+
- Stdio and HTTP transports
|
|
39
|
+
- Programmatic server creation helpers
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- Current tool timeout wiring now matches the public tool surface
|
|
44
|
+
- Server version reporting now resolves to the real package version
|
package/README.md
CHANGED
|
@@ -1,121 +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 guides your coding agent in creating, maintaining, and improving AI-agent context artifacts:
|
|
10
|
-
|
|
11
|
-
- `AGENTS.md` / `CLAUDE.md`
|
|
12
|
-
- Skills, Rules, Workflows, Plans
|
|
13
|
-
|
|
14
|
-
Comprehensive guidelines, workspace scanning, maintenance rules, 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
|
-
"agentlint": {
|
|
32
|
-
"command": "npx",
|
|
33
|
-
"args": ["-y", "@agent-lint/mcp"]
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Claude Desktop
|
|
40
|
-
|
|
41
|
-
Add to `claude_desktop_config.json`:
|
|
42
|
-
|
|
43
|
-
```json
|
|
44
|
-
{
|
|
45
|
-
"mcpServers": {
|
|
46
|
-
"agentlint": {
|
|
47
|
-
"command": "npx",
|
|
48
|
-
"args": ["-y", "@agent-lint/mcp"]
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### VS Code
|
|
55
|
-
|
|
56
|
-
Add to `.vscode/mcp.json`:
|
|
57
|
-
|
|
58
|
-
```json
|
|
59
|
-
{
|
|
60
|
-
"servers": {
|
|
61
|
-
"agentlint": {
|
|
62
|
-
"type": "stdio",
|
|
63
|
-
"command": "npx",
|
|
64
|
-
"args": ["-y", "@agent-lint/mcp"]
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
```
|
|
11
|
+
For most users, the fastest setup path is still:
|
|
69
12
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
Add to `.windsurf/mcp_config.json`:
|
|
73
|
-
|
|
74
|
-
```json
|
|
75
|
-
{
|
|
76
|
-
"mcpServers": {
|
|
77
|
-
"agentlint": {
|
|
78
|
-
"command": "npx",
|
|
79
|
-
"args": ["-y", "@agent-lint/mcp"]
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
13
|
+
```bash
|
|
14
|
+
npx @agent-lint/cli init
|
|
83
15
|
```
|
|
84
16
|
|
|
85
|
-
##
|
|
17
|
+
## Current Tool Surface
|
|
86
18
|
|
|
87
|
-
| Tool |
|
|
88
|
-
|
|
|
89
|
-
| `agentlint_get_guidelines` |
|
|
90
|
-
| `agentlint_plan_workspace_autofix` |
|
|
91
|
-
| `agentlint_quick_check` |
|
|
92
|
-
| `agentlint_emit_maintenance_snippet` |
|
|
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 |
|
|
93
25
|
|
|
94
|
-
##
|
|
26
|
+
## Current Resource Surface
|
|
95
27
|
|
|
96
|
-
| Resource |
|
|
97
|
-
|
|
|
98
|
-
| `agentlint://guidelines/{type}` |
|
|
99
|
-
| `agentlint://template/{type}` | Skeleton template for
|
|
100
|
-
| `agentlint://path-hints/{type}` |
|
|
101
|
-
|
|
102
|
-
## Supported Artifact Types
|
|
103
|
-
|
|
104
|
-
| Type | File Patterns |
|
|
105
|
-
| ---- | ------------- |
|
|
106
|
-
| **Agents** | `AGENTS.md`, `CLAUDE.md`, `.github/copilot-instructions.md` |
|
|
107
|
-
| **Rules** | `.cursor/rules/*.md`, `.windsurf/rules/*.md` |
|
|
108
|
-
| **Skills** | `.cursor/skills/*/SKILL.md`, `.windsurf/skills/*/SKILL.md` |
|
|
109
|
-
| **Workflows** | `.cursor/workflows/*.md`, `.windsurf/workflows/*.md` |
|
|
110
|
-
| **Plans** | `docs/*.md`, `.windsurf/plans/*.md` |
|
|
111
|
-
|
|
112
|
-
## Quality Metrics (12)
|
|
113
|
-
|
|
114
|
-
`clarity` · `specificity` · `scope-control` · `completeness` · `actionability` · `verifiability` · `safety` · `injection-resistance` · `secret-hygiene` · `token-efficiency` · `platform-fit` · `maintainability`
|
|
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 |
|
|
115
33
|
|
|
116
34
|
## Programmatic Usage
|
|
117
35
|
|
|
118
|
-
```
|
|
36
|
+
```ts
|
|
119
37
|
import { createAgentLintMcpServer } from "@agent-lint/mcp";
|
|
120
38
|
|
|
121
39
|
const server = createAgentLintMcpServer({
|
|
@@ -129,17 +47,23 @@ const server = createAgentLintMcpServer({
|
|
|
129
47
|
npx @agent-lint/mcp --http --port 3001
|
|
130
48
|
```
|
|
131
49
|
|
|
132
|
-
|
|
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
|
|
133
56
|
|
|
134
|
-
-
|
|
135
|
-
-
|
|
136
|
-
-
|
|
137
|
-
-
|
|
57
|
+
- No server-side LLM calls
|
|
58
|
+
- No database or cache
|
|
59
|
+
- No file writes from the MCP server
|
|
60
|
+
- Local stderr logging only
|
|
138
61
|
|
|
139
62
|
## Related
|
|
140
63
|
|
|
141
|
-
- [
|
|
142
|
-
- [
|
|
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)
|
|
143
67
|
|
|
144
68
|
## License
|
|
145
69
|
|
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"}
|