@open-skills-hub/mcp-server 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/CHANGELOG-PLATFORM.md +255 -0
- package/EXAMPLES.md +506 -0
- package/PLATFORM-SUPPORT.md +385 -0
- package/QUICK-REFERENCE-PLATFORMS.md +128 -0
- package/README.md +370 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1490 -0
- package/dist/index.js.map +1 -0
- package/dist/queue.d.ts +56 -0
- package/dist/queue.d.ts.map +1 -0
- package/dist/queue.js +232 -0
- package/dist/queue.js.map +1 -0
- package/package.json +45 -0
- package/src/index.ts +1756 -0
- package/src/queue.ts +278 -0
- package/tsconfig.json +13 -0
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# Platform Support Update - Changelog
|
|
2
|
+
|
|
3
|
+
## v2.0.0 - Multi-Platform Support (2026-02-05)
|
|
4
|
+
|
|
5
|
+
### ๐ Major Features
|
|
6
|
+
|
|
7
|
+
#### Automatic Platform Detection
|
|
8
|
+
- **Auto-detect** current AI platform (Cursor, Codex, CodeBuddy, Claude, Anthropic)
|
|
9
|
+
- **Smart fallback** to `~/.skills` when platform cannot be determined
|
|
10
|
+
- **Environment variable detection** for reliable platform identification
|
|
11
|
+
|
|
12
|
+
#### Simplified Installation
|
|
13
|
+
- `targetDir` parameter is now **optional** (was required)
|
|
14
|
+
- Just provide skill name: `{ "name": "@official/skill" }`
|
|
15
|
+
- System automatically handles directory creation and placement
|
|
16
|
+
|
|
17
|
+
#### Multi-Platform Support
|
|
18
|
+
- **5 built-in platforms**: Cursor, Codex, CodeBuddy, Claude, Anthropic
|
|
19
|
+
- **Platform-specific defaults**:
|
|
20
|
+
- Cursor: `~/.cursor/skills`
|
|
21
|
+
- Codex: `~/.codex/skills`
|
|
22
|
+
- CodeBuddy: `~/.codebuddy/skills`
|
|
23
|
+
- Claude: `~/.claude/skills`
|
|
24
|
+
- Anthropic: `~/.anthropic/skills`
|
|
25
|
+
- **Generic fallback**: `~/.skills`
|
|
26
|
+
|
|
27
|
+
#### Automatic Directory Creation
|
|
28
|
+
- All directories created automatically if they don't exist
|
|
29
|
+
- Nested subdirectories supported (scripts/, references/, etc.)
|
|
30
|
+
- Proper permissions handling
|
|
31
|
+
|
|
32
|
+
### ๐ API Changes
|
|
33
|
+
|
|
34
|
+
#### `skills_install` Tool
|
|
35
|
+
|
|
36
|
+
**Before:**
|
|
37
|
+
```typescript
|
|
38
|
+
{
|
|
39
|
+
name: string; // Required
|
|
40
|
+
targetDir: string; // Required
|
|
41
|
+
version?: string; // Optional
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**After:**
|
|
46
|
+
```typescript
|
|
47
|
+
{
|
|
48
|
+
name: string; // Required
|
|
49
|
+
targetDir?: string; // Optional (auto-detected)
|
|
50
|
+
platform?: string; // Optional (auto-detected)
|
|
51
|
+
version?: string; // Optional
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
#### New Parameters
|
|
56
|
+
|
|
57
|
+
- **`platform`** (optional): Explicitly specify target platform
|
|
58
|
+
- Valid values: `"cursor"`, `"codex"`, `"codebuddy"`, `"claude"`, `"anthropic"`
|
|
59
|
+
- Auto-detected if omitted
|
|
60
|
+
|
|
61
|
+
#### Modified Parameters
|
|
62
|
+
|
|
63
|
+
- **`targetDir`** (optional): Custom installation directory
|
|
64
|
+
- Was: Required parameter
|
|
65
|
+
- Now: Optional, auto-detected if omitted
|
|
66
|
+
- Still accepts custom paths when specified
|
|
67
|
+
|
|
68
|
+
### ๐ Migration Guide
|
|
69
|
+
|
|
70
|
+
#### No Breaking Changes
|
|
71
|
+
|
|
72
|
+
Existing code continues to work:
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
// โ
Old code - still works
|
|
76
|
+
await skills_install({
|
|
77
|
+
name: "@official/skill",
|
|
78
|
+
targetDir: "/custom/path"
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
// โ
New code - simpler
|
|
82
|
+
await skills_install({
|
|
83
|
+
name: "@official/skill"
|
|
84
|
+
});
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
#### Recommended Updates
|
|
88
|
+
|
|
89
|
+
For cleaner code, you can remove explicit `targetDir`:
|
|
90
|
+
|
|
91
|
+
```typescript
|
|
92
|
+
// Before
|
|
93
|
+
{
|
|
94
|
+
"name": "@official/pdf-parser",
|
|
95
|
+
"targetDir": "/Users/george/.cursor/skills"
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// After
|
|
99
|
+
{
|
|
100
|
+
"name": "@official/pdf-parser"
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### ๐ Documentation Updates
|
|
105
|
+
|
|
106
|
+
#### New Documents
|
|
107
|
+
- โจ `PLATFORM-SUPPORT.md` - Comprehensive platform support guide
|
|
108
|
+
- ๐ Updated `README.md` - Reflects new auto-detection features
|
|
109
|
+
- ๐ Updated `EXAMPLES.md` - Shows simplified usage patterns
|
|
110
|
+
|
|
111
|
+
#### Updated Sections
|
|
112
|
+
- Tool descriptions - Clarified optional parameters
|
|
113
|
+
- Usage examples - Added auto-detection examples
|
|
114
|
+
- Troubleshooting - Added platform-specific guidance
|
|
115
|
+
- Best practices - Emphasized auto-detection
|
|
116
|
+
|
|
117
|
+
### ๐ ๏ธ Technical Implementation
|
|
118
|
+
|
|
119
|
+
#### New Functions
|
|
120
|
+
```typescript
|
|
121
|
+
detectPlatform(): string
|
|
122
|
+
- Detects current platform from environment
|
|
123
|
+
- Returns platform name or 'unknown'
|
|
124
|
+
|
|
125
|
+
getDefaultSkillsDir(platform?: string): string
|
|
126
|
+
- Returns default directory for platform
|
|
127
|
+
- Handles ~ expansion and path resolution
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
#### New Constants
|
|
131
|
+
```typescript
|
|
132
|
+
PLATFORM_SKILLS_DIRS: Record<string, string>
|
|
133
|
+
- Maps platform names to default directories
|
|
134
|
+
- Used for auto-detection and resolution
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
#### Modified Functions
|
|
138
|
+
```typescript
|
|
139
|
+
handleInstall(storage, args)
|
|
140
|
+
- Now accepts optional targetDir
|
|
141
|
+
- Auto-detects platform when not specified
|
|
142
|
+
- Creates directories automatically
|
|
143
|
+
- Enhanced response with detection info
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### ๐ฏ User Experience Improvements
|
|
147
|
+
|
|
148
|
+
#### For AI Agents
|
|
149
|
+
- โ
Simpler tool calls - just provide skill name
|
|
150
|
+
- โ
No need to ask users for installation directory
|
|
151
|
+
- โ
Automatic platform detection reduces errors
|
|
152
|
+
- โ
Clear feedback about where skills were installed
|
|
153
|
+
|
|
154
|
+
#### For End Users
|
|
155
|
+
- โ
Skills installed in correct platform location automatically
|
|
156
|
+
- โ
No manual directory creation needed
|
|
157
|
+
- โ
Clear indication of auto-detected platform
|
|
158
|
+
- โ
Works out-of-the-box on all supported platforms
|
|
159
|
+
|
|
160
|
+
### ๐งช Testing Recommendations
|
|
161
|
+
|
|
162
|
+
When testing this update:
|
|
163
|
+
|
|
164
|
+
1. **Test auto-detection**:
|
|
165
|
+
```json
|
|
166
|
+
{ "name": "@official/test-skill" }
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
2. **Test platform override**:
|
|
170
|
+
```json
|
|
171
|
+
{ "name": "@official/test-skill", "platform": "cursor" }
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
3. **Test custom directory** (backward compatibility):
|
|
175
|
+
```json
|
|
176
|
+
{ "name": "@official/test-skill", "targetDir": "/custom/path" }
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
4. **Test with non-existent directories**:
|
|
180
|
+
- Verify automatic creation
|
|
181
|
+
- Check permissions
|
|
182
|
+
|
|
183
|
+
5. **Test on multiple platforms**:
|
|
184
|
+
- Cursor, Codex, CodeBuddy, etc.
|
|
185
|
+
- Verify correct directory used
|
|
186
|
+
|
|
187
|
+
### ๐ Impact Analysis
|
|
188
|
+
|
|
189
|
+
#### Code Changes
|
|
190
|
+
- **Modified files**: 3
|
|
191
|
+
- `src/index.ts` - Core implementation
|
|
192
|
+
- `README.md` - Documentation
|
|
193
|
+
- `EXAMPLES.md` - Usage examples
|
|
194
|
+
- **New files**: 2
|
|
195
|
+
- `PLATFORM-SUPPORT.md` - Platform guide
|
|
196
|
+
- `CHANGELOG-PLATFORM.md` - This file
|
|
197
|
+
|
|
198
|
+
#### Backward Compatibility
|
|
199
|
+
- โ
100% backward compatible
|
|
200
|
+
- โ
All existing code continues to work
|
|
201
|
+
- โ
No breaking changes to API
|
|
202
|
+
|
|
203
|
+
#### Performance
|
|
204
|
+
- โ
Minimal overhead (< 1ms for detection)
|
|
205
|
+
- โ
Directory creation only when needed
|
|
206
|
+
- โ
No impact on other operations
|
|
207
|
+
|
|
208
|
+
### ๐ฎ Future Enhancements
|
|
209
|
+
|
|
210
|
+
Potential improvements for future releases:
|
|
211
|
+
|
|
212
|
+
1. **More platforms**:
|
|
213
|
+
- VSCode with Continue.dev
|
|
214
|
+
- JetBrains AI Assistant
|
|
215
|
+
- Aider
|
|
216
|
+
- Cody (Sourcegraph)
|
|
217
|
+
|
|
218
|
+
2. **Smart detection**:
|
|
219
|
+
- Read platform config files
|
|
220
|
+
- Detect based on running processes
|
|
221
|
+
- User preference storage
|
|
222
|
+
|
|
223
|
+
3. **Advanced features**:
|
|
224
|
+
- Multi-platform symlinks
|
|
225
|
+
- Skill migration between platforms
|
|
226
|
+
- Per-project skill directories
|
|
227
|
+
- Platform-specific skill variants
|
|
228
|
+
|
|
229
|
+
### ๐ Acknowledgments
|
|
230
|
+
|
|
231
|
+
This feature was inspired by the need to support multiple AI agent platforms with different directory conventions, making skill installation seamless regardless of which platform users prefer.
|
|
232
|
+
|
|
233
|
+
### ๐ Support
|
|
234
|
+
|
|
235
|
+
If you encounter issues with platform detection:
|
|
236
|
+
|
|
237
|
+
1. Check platform-specific troubleshooting in `PLATFORM-SUPPORT.md`
|
|
238
|
+
2. Explicitly specify platform: `{ "platform": "cursor" }`
|
|
239
|
+
3. Use custom directory: `{ "targetDir": "/custom/path" }`
|
|
240
|
+
4. Report issues with platform details
|
|
241
|
+
|
|
242
|
+
### ๐ References
|
|
243
|
+
|
|
244
|
+
- [Platform Support Guide](./PLATFORM-SUPPORT.md)
|
|
245
|
+
- [Main README](./README.md)
|
|
246
|
+
- [Usage Examples](./EXAMPLES.md)
|
|
247
|
+
- [SkillsHub Documentation](../../README.md)
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
**Version**: 2.0.0
|
|
252
|
+
**Date**: 2026-02-05
|
|
253
|
+
**Author**: SkillsHub Team
|
|
254
|
+
**Type**: Feature Release
|
|
255
|
+
**Compatibility**: Backward Compatible
|