skillmesh-mcp 1.0.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.
- package/README.md +174 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2090 -0
- package/dist/index.js.map +1 -0
- package/package.json +59 -0
package/README.md
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# SkillMesh MCP Server
|
|
2
|
+
|
|
3
|
+
> The intelligent mesh between your codebase and every AI agent.
|
|
4
|
+
|
|
5
|
+
SkillMesh is a **fully local** MCP (Model Context Protocol) server that gives AI coding agents the ability to discover, fetch, and install **Agent Skills** — SKILL.md files that permanently enrich the agent's knowledge of your project.
|
|
6
|
+
|
|
7
|
+
## What Are Agent Skills?
|
|
8
|
+
|
|
9
|
+
Agent Skills are SKILL.md files that live in your agent's skill directory. Every agent reads all SKILL.md files at the start of every session — skills are always present when you prompt. Installing a skill permanently teaches the agent project-specific rules, patterns, conventions, and best practices.
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
- **8 MCP Tools** for complete skill lifecycle management
|
|
14
|
+
- **Supports 11 AI Agents**: Claude Code, Antigravity, Cursor, Windsurf, Gemini CLI, Codex CLI, Kilo Code, Trae AI, Void Editor, Continue.dev, Cline
|
|
15
|
+
- **Triple Installation Path**: npx command → direct GitHub fetch → LLM generation
|
|
16
|
+
- **Quality Filtering**: Searches skills.sh for skills with ≥50 GitHub stars
|
|
17
|
+
- **Multi-Provider LLM**: Supports Anthropic, Google, and OpenAI for skill generation
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
### Quick Start
|
|
22
|
+
|
|
23
|
+
Add SkillMesh to your AI agent's MCP configuration:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"mcpServers": {
|
|
28
|
+
"skillmesh": {
|
|
29
|
+
"command": "npx",
|
|
30
|
+
"args": ["-y", "skillmesh-mcp"],
|
|
31
|
+
"env": {
|
|
32
|
+
"TAVILY_API_KEY": "tvly-your-key-here",
|
|
33
|
+
"ANTHROPIC_API_KEY": "sk-ant-your-key-here",
|
|
34
|
+
"GITHUB_TOKEN": "ghp_your-token-here"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Config File Locations
|
|
42
|
+
|
|
43
|
+
| Agent | Config Path |
|
|
44
|
+
|-------|-------------|
|
|
45
|
+
| **Claude Code** | `~/.claude/claude_mcp_config.json` |
|
|
46
|
+
| **Cursor** | `~/.cursor/mcp.json` |
|
|
47
|
+
| **Windsurf** | `~/.codeium/windsurf/mcp_config.json` |
|
|
48
|
+
| **Antigravity** | Agent-specific config path |
|
|
49
|
+
|
|
50
|
+
### Environment Variables
|
|
51
|
+
|
|
52
|
+
| Variable | Required | Description |
|
|
53
|
+
|----------|----------|-------------|
|
|
54
|
+
| `TAVILY_API_KEY` | **Yes** | Web search for finding skills on skills.sh |
|
|
55
|
+
| `ANTHROPIC_API_KEY` | No* | LLM for skill generation (preferred) |
|
|
56
|
+
| `GOOGLE_API_KEY` | No* | Alternative LLM provider |
|
|
57
|
+
| `OPENAI_API_KEY` | No* | Alternative LLM provider |
|
|
58
|
+
| `GITHUB_TOKEN` | Recommended | Higher rate limits (60 → 5000 requests/hour) |
|
|
59
|
+
|
|
60
|
+
*At least one LLM API key required for `generate_skill` tool.
|
|
61
|
+
|
|
62
|
+
## Available Tools
|
|
63
|
+
|
|
64
|
+
### 1. `detect_installed_agents`
|
|
65
|
+
Scans project root and home directory for installed AI coding agents. Returns list of detected agents with their skill directory paths.
|
|
66
|
+
|
|
67
|
+
### 2. `create_skills_folder`
|
|
68
|
+
Initializes skill directory structure for selected agents. Creates `.claude/skills/`, `.cursor/skills/`, etc.
|
|
69
|
+
|
|
70
|
+
### 3. `search_skills`
|
|
71
|
+
Searches skills.sh via Tavily for skills matching a keyword. Fetches GitHub star count and recency. Returns ranked list filtered by quality.
|
|
72
|
+
|
|
73
|
+
### 4. `fetch_skill_content`
|
|
74
|
+
Fetches full SKILL.md content from a GitHub repository. Validates YAML frontmatter and required sections.
|
|
75
|
+
|
|
76
|
+
### 5. `install_skill`
|
|
77
|
+
Core installation tool with triple-path strategy:
|
|
78
|
+
- **PATH A**: Returns `npx skills add` command for agent execution
|
|
79
|
+
- **PATH B**: Fetches from GitHub raw URLs, writes directly to disk
|
|
80
|
+
- **PATH C**: Calls LLM to generate skill when none found
|
|
81
|
+
|
|
82
|
+
### 6. `generate_skill`
|
|
83
|
+
LLM-powered skill generation. Searches web for best practices, generates a gold-standard SKILL.md file.
|
|
84
|
+
|
|
85
|
+
### 7. `list_installed_skills`
|
|
86
|
+
Lists all installed skills across agent directories with metadata.
|
|
87
|
+
|
|
88
|
+
### 8. `delete_skill`
|
|
89
|
+
Removes a specific SKILL.md from one or all agent directories.
|
|
90
|
+
|
|
91
|
+
## Usage
|
|
92
|
+
|
|
93
|
+
Once configured, simply tell your AI agent:
|
|
94
|
+
|
|
95
|
+
- "Set up skills for this project"
|
|
96
|
+
- "Install skills for my codebase"
|
|
97
|
+
- "Add relevant skills"
|
|
98
|
+
- "Analyze my project and install skills"
|
|
99
|
+
|
|
100
|
+
The agent will automatically:
|
|
101
|
+
1. Detect installed agents
|
|
102
|
+
2. Create skill folders
|
|
103
|
+
3. Analyze your codebase
|
|
104
|
+
4. Search for relevant skills
|
|
105
|
+
5. Install or generate skills as needed
|
|
106
|
+
|
|
107
|
+
## Development
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# Install dependencies
|
|
111
|
+
npm install
|
|
112
|
+
|
|
113
|
+
# Build
|
|
114
|
+
npm run build
|
|
115
|
+
|
|
116
|
+
# Run tests
|
|
117
|
+
npm test
|
|
118
|
+
|
|
119
|
+
# Development mode
|
|
120
|
+
npm run dev
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Project Structure
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
skillmesh-mcp/
|
|
127
|
+
├── src/
|
|
128
|
+
│ ├── index.ts # MCP server entry point
|
|
129
|
+
│ ├── tools/ # 8 MCP tool implementations
|
|
130
|
+
│ │ ├── detect-agents.ts
|
|
131
|
+
│ │ ├── create-folder.ts
|
|
132
|
+
│ │ ├── search-skills.ts
|
|
133
|
+
│ │ ├── fetch-skill.ts
|
|
134
|
+
│ │ ├── install-skill.ts
|
|
135
|
+
│ │ ├── generate-skill.ts
|
|
136
|
+
│ │ ├── list-skills.ts
|
|
137
|
+
│ │ └── delete-skill.ts
|
|
138
|
+
│ ├── lib/ # Shared utilities
|
|
139
|
+
│ │ ├── agent-paths.ts # Agent directory mappings
|
|
140
|
+
│ │ ├── config.ts # Config file management
|
|
141
|
+
│ │ ├── github.ts # GitHub API utilities
|
|
142
|
+
│ │ ├── llm.ts # Multi-provider LLM
|
|
143
|
+
│ │ ├── skill-parser.ts # SKILL.md parsing
|
|
144
|
+
│ │ ├── skill-sanitizer.ts
|
|
145
|
+
│ │ └── tavily.ts # Web search
|
|
146
|
+
│ └── prompts/
|
|
147
|
+
│ └── system-prompt.ts
|
|
148
|
+
├── tests/
|
|
149
|
+
│ └── tools/ # Vitest test files
|
|
150
|
+
├── dist/ # Built output
|
|
151
|
+
├── package.json
|
|
152
|
+
├── tsconfig.json
|
|
153
|
+
└── tsup.config.ts
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## Supported Agents
|
|
157
|
+
|
|
158
|
+
| Agent | Project Path | Global Path |
|
|
159
|
+
|-------|--------------|-------------|
|
|
160
|
+
| Claude Code | `.claude/skills/` | `~/.claude/skills/` |
|
|
161
|
+
| Antigravity | `.agent/skills/` | `~/.gemini/antigravity/global_skills/` |
|
|
162
|
+
| Cursor | `.cursor/skills/` | `~/.cursor/skills/` |
|
|
163
|
+
| Windsurf | `.windsurf/skills/` | `~/.codeium/windsurf/skills/` |
|
|
164
|
+
| Gemini CLI | `.gemini/skills/` | `~/.gemini/skills/` |
|
|
165
|
+
| Codex CLI | `.codex/skills/` | `~/.codex/skills/` |
|
|
166
|
+
| Kilo Code | `.kilocode/skills/` | `~/.kilocode/skills/` |
|
|
167
|
+
| Trae AI | `.trae/skills/` | `~/.trae/skills/` |
|
|
168
|
+
| Void Editor | `.void/skills/` | `~/.void/skills/` |
|
|
169
|
+
| Continue.dev | `.continue/skills/` | `~/.continue/skills/` |
|
|
170
|
+
| Cline | `.cline/skills/` | `~/.cline/skills/` |
|
|
171
|
+
|
|
172
|
+
## License
|
|
173
|
+
|
|
174
|
+
MIT
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|