@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 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 AI agent context artifact orchestration.
3
+ Read-only MCP server for keeping `AGENTS.md`, rules, and skills structured, current, and codebase-aware.
4
4
 
5
- **Zero LLM dependencies.** Fully deterministic. Local-first. No database. No auth.
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
- ## MCP Client Configuration
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
- ### Windsurf
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
- ## Available Tools (4)
17
+ ## Current Tool Surface
86
18
 
87
- | Tool | Description |
88
- | ---- | ----------- |
89
- | `agentlint_get_guidelines` | Returns comprehensive guidelines for creating or updating any artifact type — mandatory sections, do/don't lists, anti-patterns, templates, and quality checklist |
90
- | `agentlint_plan_workspace_autofix` | Scans your workspace, discovers all context artifacts, identifies missing files and incomplete sections, and returns a step-by-step fix plan |
91
- | `agentlint_quick_check` | After structural changes (new modules, config changes, dependency updates), checks if context artifacts need updating |
92
- | `agentlint_emit_maintenance_snippet` | Returns a persistent rule snippet for your IDE that keeps your agent maintaining context automatically |
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
- ## MCP Resources (3)
26
+ ## Current Resource Surface
95
27
 
96
- | Resource | Content |
97
- | -------- | ------- |
98
- | `agentlint://guidelines/{type}` | Full guidelines for an artifact type |
99
- | `agentlint://template/{type}` | Skeleton template for creating a new artifact |
100
- | `agentlint://path-hints/{type}` | File discovery patterns per IDE client |
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
- ```typescript
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
- ## Design Principles
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
- - **No LLM**: Fully deterministic. No API calls, no tokens, no cost.
135
- - **No State**: Every call is stateless. No database, no cache.
136
- - **No File Writes**: Read-only. Agent Lint provides guidance — your coding agent does the work.
137
- - **Minimum Dependencies**: Published package under 500 KB packed.
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
- - [`@agent-lint/cli`](https://www.npmjs.com/package/@agent-lint/cli) — CLI interface
142
- - [Repository](https://gitlab.com/bsamilozturk/agentlint)
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
@@ -4,7 +4,7 @@ import {
4
4
  logMcp,
5
5
  runHttpServer,
6
6
  runStdioServer
7
- } from "./chunk-ZYDIOQXE.js";
7
+ } from "./chunk-GNY7X6J5.js";
8
8
 
9
9
  // src/bin.ts
10
10
  var nodeVersion = parseInt(process.versions.node.split(".")[0], 10);
@@ -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"}