Skill Jack MCP
Integrates Agent Skills into LLMs by discovering skills in a configured directory and progressively loading their instructions and resources on demand through a structured disclosure pattern.
README
Skill Jack MCP
An MCP server that jacks Agent Skills directly into your LLM's brain.
Features
- Dynamic Skill Discovery - Discovers skills from MCP Roots (client workspace) or fallback directory
- Server Instructions - Injects skill metadata into the client's system prompt
- Skill Tool - Load full skill content on demand (progressive disclosure)
- MCP Resources - Access skills via
skill://URIs with batch collection support - Resource Subscriptions - Real-time file watching with
notifications/resources/updated - Live Updates - Re-discovers skills when workspace roots change
Installation
npm install
npm run build
Usage
With MCP Roots (Recommended)
If your MCP client supports Roots, skills are discovered automatically from your workspace:
# No arguments needed - discovers from client workspace
skill-jack-mcp
The server scans .claude/skills/ and skills/ directories in each workspace root.
With Fallback Directory
For clients without Roots support, or to provide a default skills location:
# Pass skills directory as argument
skill-jack-mcp /path/to/skills
# Or use environment variable
SKILLS_DIR=/path/to/skills skill-jack-mcp
Windows note: Use forward slashes in paths when using with MCP Inspector:
skill-jack-mcp "C:/Users/you/skills"
How It Works
The server implements the Agent Skills progressive disclosure pattern with MCP Roots support:
- On connection: Server requests workspace roots from client (or uses fallback directory)
- Discovery: Scans roots for
.claude/skills/andskills/directories - Instructions: Generates
<available_skills>XML with discovered skill metadata - On tool call: Agent calls
skilltool to load full SKILL.md content - Live updates: Re-discovers when client's workspace roots change
┌─────────────────────────────────────────────────────────┐
│ MCP Client connects │
│ ↓ │
│ Server requests roots from client │
│ • Scans .claude/skills/ and skills/ in each root │
│ • Falls back to SKILLS_DIR if roots not supported │
│ ↓ │
│ LLM sees skill metadata in system prompt │
│ ↓ │
│ LLM calls "skill" tool with skill name │
│ ↓ │
│ Server returns full SKILL.md content │
│ ↓ │
│ (Workspace changes → roots/list_changed → re-discover) │
└─────────────────────────────────────────────────────────┘
Tools
skill
Load and activate an Agent Skill by name. Returns the full SKILL.md content.
Input:
{
"name": "skill-name"
}
Output: Full SKILL.md content including frontmatter and instructions.
skill-resource
Read files within a skill's directory (scripts/, references/, assets/, snippets/, etc.).
This follows the Agent Skills spec's progressive disclosure pattern - resources are loaded only when needed.
Input:
{
"skill": "mcp-server-ts",
"path": "snippets/tools/echo.ts"
}
Output: File content.
List available files (pass empty path):
{
"skill": "mcp-server-ts",
"path": ""
}
Security: Path traversal is prevented - only files within the skill directory can be accessed.
Resources
Skills are also accessible via MCP Resources using skill:// URIs.
URI Patterns
| URI | Returns |
|---|---|
skill:// |
All SKILL.md contents (collection) |
skill://{name} |
Single skill's SKILL.md content |
skill://{name}/ |
All files in skill directory (collection) |
skill://{name}/{path} |
Specific file within skill |
Resource Subscriptions
Clients can subscribe to resources for real-time updates when files change.
Capability: resources: { subscribe: true, listChanged: true }
Subscribe to a resource:
→ resources/subscribe { uri: "skill://mcp-server-ts" }
← {} (success)
Receive notifications when files change:
← notifications/resources/updated { uri: "skill://mcp-server-ts" }
Unsubscribe:
→ resources/unsubscribe { uri: "skill://mcp-server-ts" }
← {} (success)
How it works:
- Client subscribes to a
skill://URI - Server resolves URI to file path(s) and starts watching with chokidar
- When files change, server debounces (100ms) and sends notification
- Client can re-read the resource to get updated content
URI to file path resolution:
skill://→ watches all skill directoriesskill://{name}→ watches that skill's SKILL.mdskill://{name}/{path}→ watches specific file
Security
Skills are treated as trusted content. This server reads and serves skill files directly to clients without sanitization. Only configure skills directories containing content you trust.
Protections in place:
- Path traversal prevention (symlink-aware)
- File size limits (10MB max)
- Directory depth limits
- Skill content is confined to configured directories
Not protected against:
- Malicious content within trusted skill directories
- Prompt injection via skill instructions (skills can influence LLM behavior by design)
Server Instructions Format
The server generates instructions that include a usage preamble and skill metadata:
# Skills
When a user's task matches a skill description below: 1) activate it, 2) follow its instructions completely.
<available_skills>
<skill>
<name>mcp-server-ts</name>
<description>Build TypeScript MCP servers with composable code snippets...</description>
<location>C:/path/to/mcp-server-ts/SKILL.md</location>
</skill>
</available_skills>
Skill Discovery
From MCP Roots
When the client supports roots, the server scans each workspace root for:
{root}/.claude/skills/{root}/skills/
From Fallback Directory
When roots aren't available, the server scans the configured directory.
Naming Conflicts
If the same skill name exists in multiple roots, it's prefixed with the root name (e.g., project-a:commit).
Testing
# Build first
npm run build
# Test with MCP Inspector
npx @modelcontextprotocol/inspector@latest node dist/index.js /path/to/skills
Related
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。