@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.
Files changed (44) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +32 -96
  3. package/dist/bin.d.ts +3 -0
  4. package/dist/bin.d.ts.map +1 -0
  5. package/dist/bin.js +1 -1
  6. package/dist/catalog.d.ts +5 -0
  7. package/dist/catalog.d.ts.map +1 -0
  8. package/dist/{chunk-MNSQOOMH.js → chunk-DYP46E6V.js} +396 -306
  9. package/dist/chunk-DYP46E6V.js.map +1 -0
  10. package/dist/http-security.d.ts +73 -0
  11. package/dist/http-security.d.ts.map +1 -0
  12. package/dist/http.d.ts +36 -0
  13. package/dist/http.d.ts.map +1 -0
  14. package/dist/index.d.ts +9 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +1 -1
  17. package/dist/logger.d.ts +4 -0
  18. package/dist/logger.d.ts.map +1 -0
  19. package/dist/prompts/register-prompts.d.ts +3 -0
  20. package/dist/prompts/register-prompts.d.ts.map +1 -0
  21. package/dist/resources/register-resources.d.ts +3 -0
  22. package/dist/resources/register-resources.d.ts.map +1 -0
  23. package/dist/server.d.ts +12 -0
  24. package/dist/server.d.ts.map +1 -0
  25. package/dist/stdio.d.ts +2 -0
  26. package/dist/stdio.d.ts.map +1 -0
  27. package/dist/tools/emit-maintenance-snippet.d.ts +3 -0
  28. package/dist/tools/emit-maintenance-snippet.d.ts.map +1 -0
  29. package/dist/tools/get-guidelines.d.ts +3 -0
  30. package/dist/tools/get-guidelines.d.ts.map +1 -0
  31. package/dist/tools/index.d.ts +6 -0
  32. package/dist/tools/index.d.ts.map +1 -0
  33. package/dist/tools/plan-workspace-autofix.d.ts +6 -0
  34. package/dist/tools/plan-workspace-autofix.d.ts.map +1 -0
  35. package/dist/tools/quick-check.d.ts +3 -0
  36. package/dist/tools/quick-check.d.ts.map +1 -0
  37. package/dist/tools/schema-compat.d.ts +13 -0
  38. package/dist/tools/schema-compat.d.ts.map +1 -0
  39. package/dist/tools/tool-result.d.ts +4 -0
  40. package/dist/tools/tool-result.d.ts.map +1 -0
  41. package/dist/transport-security.d.ts +51 -0
  42. package/dist/transport-security.d.ts.map +1 -0
  43. package/package.json +18 -11
  44. 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 AI agent context artifact analysis and quality scoring.
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 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
- ## MCP Client Configuration
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
- Add to `claude_desktop_config.json`:
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
- ## Available Tools
17
+ ## Current Tool Surface
87
18
 
88
- | Tool | Description |
89
- | ------------------------------ | ------------------------------------------------------------------------------------ |
90
- | `analyze_artifact` | Analyze a single artifact returns scores across 12 metrics with findings and hints |
91
- | `analyze_workspace_artifacts` | Scan a workspace directory for AI agent artifacts with framework detection |
92
- | `analyze_context_bundle` | Analyze multiple artifacts together for cross-artifact consistency |
93
- | `prepare_artifact_fix_context` | Prepare context for an artifact improvement loop |
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
- ## Quality Metrics (12)
26
+ ## Current Resource Surface
101
27
 
102
- `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 |
103
33
 
104
34
  ## Programmatic Usage
105
35
 
106
- ```typescript
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
- ## 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
121
56
 
122
- - **No LLM**: Fully deterministic. No API calls, no tokens, no cost.
123
- - **No State**: Every call is stateless. No database, no cache.
124
- - **No File Writes**: Read-only by default. `apply_patches` requires explicit flags + hash guard.
125
- - **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
126
61
 
127
62
  ## Related
128
63
 
129
- - [`@agent-lint/cli`](https://www.npmjs.com/package/@agent-lint/cli) — CLI interface
130
- - [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)
131
67
 
132
68
  ## License
133
69
 
package/dist/bin.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=bin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":""}
package/dist/bin.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  logMcp,
5
5
  runHttpServer,
6
6
  runStdioServer
7
- } from "./chunk-MNSQOOMH.js";
7
+ } from "./chunk-DYP46E6V.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"}