@agent-lint/mcp 0.2.0 → 0.3.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.
Files changed (41) hide show
  1. package/README.md +39 -27
  2. package/dist/bin.d.ts +3 -0
  3. package/dist/bin.d.ts.map +1 -0
  4. package/dist/bin.js +1 -1
  5. package/dist/{chunk-VAI3GWJA.js → chunk-ZYDIOQXE.js} +263 -209
  6. package/dist/chunk-ZYDIOQXE.js.map +1 -0
  7. package/dist/http-security.d.ts +73 -0
  8. package/dist/http-security.d.ts.map +1 -0
  9. package/dist/http.d.ts +35 -0
  10. package/dist/http.d.ts.map +1 -0
  11. package/dist/index.d.ts +9 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +1 -1
  14. package/dist/logger.d.ts +4 -0
  15. package/dist/logger.d.ts.map +1 -0
  16. package/dist/prompts/register-prompts.d.ts +3 -0
  17. package/dist/prompts/register-prompts.d.ts.map +1 -0
  18. package/dist/resources/register-resources.d.ts +3 -0
  19. package/dist/resources/register-resources.d.ts.map +1 -0
  20. package/dist/server.d.ts +12 -0
  21. package/dist/server.d.ts.map +1 -0
  22. package/dist/stdio.d.ts +2 -0
  23. package/dist/stdio.d.ts.map +1 -0
  24. package/dist/tools/emit-maintenance-snippet.d.ts +3 -0
  25. package/dist/tools/emit-maintenance-snippet.d.ts.map +1 -0
  26. package/dist/tools/get-guidelines.d.ts +3 -0
  27. package/dist/tools/get-guidelines.d.ts.map +1 -0
  28. package/dist/tools/index.d.ts +6 -0
  29. package/dist/tools/index.d.ts.map +1 -0
  30. package/dist/tools/plan-workspace-autofix.d.ts +6 -0
  31. package/dist/tools/plan-workspace-autofix.d.ts.map +1 -0
  32. package/dist/tools/quick-check.d.ts +3 -0
  33. package/dist/tools/quick-check.d.ts.map +1 -0
  34. package/dist/tools/schema-compat.d.ts +13 -0
  35. package/dist/tools/schema-compat.d.ts.map +1 -0
  36. package/dist/tools/tool-result.d.ts +4 -0
  37. package/dist/tools/tool-result.d.ts.map +1 -0
  38. package/dist/transport-security.d.ts +51 -0
  39. package/dist/transport-security.d.ts.map +1 -0
  40. package/package.json +6 -3
  41. package/dist/chunk-VAI3GWJA.js.map +0 -1
package/README.md CHANGED
@@ -1,17 +1,17 @@
1
1
  # @agent-lint/mcp
2
2
 
3
- MCP server for AI agent context artifact analysis and quality scoring.
3
+ MCP server for AI agent context artifact orchestration.
4
4
 
5
5
  **Zero LLM dependencies.** Fully deterministic. Local-first. No database. No auth.
6
6
 
7
7
  ## What It Does
8
8
 
9
- Provides a [Model Context Protocol](https://modelcontextprotocol.io/) server that evaluates AI-agent context artifacts:
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
10
 
11
11
  - `AGENTS.md` / `CLAUDE.md`
12
12
  - Skills, Rules, Workflows, Plans
13
13
 
14
- Reproducible quality scoring across **12 metrics**, evidence-backed assessment, guardrail checks, and repeatable improvement loops — all without calling any LLM.
14
+ Comprehensive guidelines, workspace scanning, maintenance rules, and repeatable improvement loops — all without calling any LLM.
15
15
 
16
16
  ## Quick Start
17
17
 
@@ -28,7 +28,7 @@ Add to `.cursor/mcp.json`:
28
28
  ```json
29
29
  {
30
30
  "mcpServers": {
31
- "agent-lint": {
31
+ "agentlint": {
32
32
  "command": "npx",
33
33
  "args": ["-y", "@agent-lint/mcp"]
34
34
  }
@@ -43,7 +43,7 @@ Add to `claude_desktop_config.json`:
43
43
  ```json
44
44
  {
45
45
  "mcpServers": {
46
- "agent-lint": {
46
+ "agentlint": {
47
47
  "command": "npx",
48
48
  "args": ["-y", "@agent-lint/mcp"]
49
49
  }
@@ -53,16 +53,15 @@ Add to `claude_desktop_config.json`:
53
53
 
54
54
  ### VS Code
55
55
 
56
- Add to your VS Code `settings.json`:
56
+ Add to `.vscode/mcp.json`:
57
57
 
58
58
  ```json
59
59
  {
60
- "mcp": {
61
- "servers": {
62
- "agent-lint": {
63
- "command": "npx",
64
- "args": ["-y", "@agent-lint/mcp"]
65
- }
60
+ "servers": {
61
+ "agentlint": {
62
+ "type": "stdio",
63
+ "command": "npx",
64
+ "args": ["-y", "@agent-lint/mcp"]
66
65
  }
67
66
  }
68
67
  }
@@ -70,12 +69,12 @@ Add to your VS Code `settings.json`:
70
69
 
71
70
  ### Windsurf
72
71
 
73
- Add to your Windsurf MCP config:
72
+ Add to `.windsurf/mcp_config.json`:
74
73
 
75
74
  ```json
76
75
  {
77
76
  "mcpServers": {
78
- "agent-lint": {
77
+ "agentlint": {
79
78
  "command": "npx",
80
79
  "args": ["-y", "@agent-lint/mcp"]
81
80
  }
@@ -83,19 +82,32 @@ Add to your Windsurf MCP config:
83
82
  }
84
83
  ```
85
84
 
86
- ## Available Tools
85
+ ## Available Tools (4)
86
+
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 |
93
+
94
+ ## MCP Resources (3)
95
+
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
87
103
 
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 |
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` |
99
111
 
100
112
  ## Quality Metrics (12)
101
113
 
@@ -121,7 +133,7 @@ npx @agent-lint/mcp --http --port 3001
121
133
 
122
134
  - **No LLM**: Fully deterministic. No API calls, no tokens, no cost.
123
135
  - **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.
136
+ - **No File Writes**: Read-only. Agent Lint provides guidance your coding agent does the work.
125
137
  - **Minimum Dependencies**: Published package under 500 KB packed.
126
138
 
127
139
  ## Related
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-VAI3GWJA.js";
7
+ } from "./chunk-ZYDIOQXE.js";
8
8
 
9
9
  // src/bin.ts
10
10
  var nodeVersion = parseInt(process.versions.node.split(".")[0], 10);