lintbase-mcp 0.1.3 → 0.1.5
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/README.md +14 -0
- package/dist/server.js +0 -0
- package/package.json +1 -1
- package/skill/install-skill.js +10 -11
package/README.md
CHANGED
|
@@ -51,6 +51,20 @@ No hallucinations. No drift. Ground-truth schema, every time.
|
|
|
51
51
|
|
|
52
52
|
---
|
|
53
53
|
|
|
54
|
+
## 🤖 Agent Skill
|
|
55
|
+
|
|
56
|
+
Install the LintBase **Agent Skill** into any project so your AI agent automatically uses LintBase before writing Firestore code — no prompting required:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npx -p lintbase-mcp lintbase-mcp-install-skill
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
This copies a `SKILL.md` file into `.agent/skills/lintbase/` in your project. Cursor, Claude Code, Gemini CLI, and other MCP-compatible agents read this file on startup and follow its instructions automatically.
|
|
63
|
+
|
|
64
|
+
Same format as the [Firebase official Agent Skills](https://firebase.blog/posts/2025/02/firebase-agent-skills). ✅
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
54
68
|
## Setup
|
|
55
69
|
|
|
56
70
|
You'll need a [Firebase service account JSON key](https://firebase.google.com/docs/admin/setup#initialize_the_sdk_in_non-google_environments) for your project.
|
package/dist/server.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/skill/install-skill.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// install-skill.js
|
|
2
|
+
// install-skill.js — CommonJS compatible
|
|
3
3
|
// Installs the LintBase SKILL.md into the current project's .agent/skills/ directory.
|
|
4
|
-
// Run via: npx lintbase-mcp
|
|
5
|
-
// or: node install-skill.js
|
|
4
|
+
// Run via: npx lintbase-mcp-install-skill
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { fileURLToPath } from 'url';
|
|
10
|
-
|
|
11
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
6
|
+
const fs = require('fs');
|
|
7
|
+
const path = require('path');
|
|
12
8
|
|
|
13
9
|
const SKILL_SRC = path.join(__dirname, 'SKILL.md');
|
|
14
10
|
const TARGET_DIR = path.join(process.cwd(), '.agent', 'skills', 'lintbase');
|
|
@@ -20,10 +16,13 @@ fs.mkdirSync(TARGET_DIR, { recursive: true });
|
|
|
20
16
|
// Copy SKILL.md
|
|
21
17
|
fs.copyFileSync(SKILL_SRC, TARGET_FILE);
|
|
22
18
|
|
|
23
|
-
console.log(`✅ LintBase skill installed to ${TARGET_FILE}`);
|
|
24
19
|
console.log('');
|
|
25
|
-
console.log('
|
|
26
|
-
console.log('
|
|
20
|
+
console.log('✅ LintBase skill installed to:');
|
|
21
|
+
console.log(' ' + TARGET_FILE);
|
|
22
|
+
console.log('');
|
|
23
|
+
console.log('Your AI agent will now automatically check the real Firestore schema');
|
|
24
|
+
console.log('before writing any database code.');
|
|
27
25
|
console.log('');
|
|
28
26
|
console.log('Make sure lintbase-mcp is configured in your IDE:');
|
|
29
27
|
console.log(' → https://www.npmjs.com/package/lintbase-mcp');
|
|
28
|
+
console.log('');
|