swift-patterns-mcp 1.0.2

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 (163) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +377 -0
  3. package/build/cli/auth.d.ts +3 -0
  4. package/build/cli/auth.d.ts.map +1 -0
  5. package/build/cli/auth.js +43 -0
  6. package/build/cli/auth.js.map +1 -0
  7. package/build/cli/setup.d.ts +2 -0
  8. package/build/cli/setup.d.ts.map +1 -0
  9. package/build/cli/setup.js +149 -0
  10. package/build/cli/setup.js.map +1 -0
  11. package/build/cli/source-manager.d.ts +3 -0
  12. package/build/cli/source-manager.d.ts.map +1 -0
  13. package/build/cli/source-manager.js +117 -0
  14. package/build/cli/source-manager.js.map +1 -0
  15. package/build/config/creators.d.ts +11 -0
  16. package/build/config/creators.d.ts.map +1 -0
  17. package/build/config/creators.js +32 -0
  18. package/build/config/creators.js.map +1 -0
  19. package/build/config/sources.d.ts +65 -0
  20. package/build/config/sources.d.ts.map +1 -0
  21. package/build/config/sources.js +184 -0
  22. package/build/config/sources.js.map +1 -0
  23. package/build/config/sources.test.d.ts +2 -0
  24. package/build/config/sources.test.d.ts.map +1 -0
  25. package/build/config/sources.test.js +195 -0
  26. package/build/config/sources.test.js.map +1 -0
  27. package/build/config/swift-keywords.d.ts +21 -0
  28. package/build/config/swift-keywords.d.ts.map +1 -0
  29. package/build/config/swift-keywords.js +67 -0
  30. package/build/config/swift-keywords.js.map +1 -0
  31. package/build/index.d.ts +3 -0
  32. package/build/index.d.ts.map +1 -0
  33. package/build/index.js +295 -0
  34. package/build/index.js.map +1 -0
  35. package/build/integration/mcp-client.test.d.ts +2 -0
  36. package/build/integration/mcp-client.test.d.ts.map +1 -0
  37. package/build/integration/mcp-client.test.js +82 -0
  38. package/build/integration/mcp-client.test.js.map +1 -0
  39. package/build/integration/response-quality.test.d.ts +2 -0
  40. package/build/integration/response-quality.test.d.ts.map +1 -0
  41. package/build/integration/response-quality.test.js +139 -0
  42. package/build/integration/response-quality.test.js.map +1 -0
  43. package/build/integration/test-client.d.ts +25 -0
  44. package/build/integration/test-client.d.ts.map +1 -0
  45. package/build/integration/test-client.js +93 -0
  46. package/build/integration/test-client.js.map +1 -0
  47. package/build/sources/free/rssPatternSource.d.ts +41 -0
  48. package/build/sources/free/rssPatternSource.d.ts.map +1 -0
  49. package/build/sources/free/rssPatternSource.js +122 -0
  50. package/build/sources/free/rssPatternSource.js.map +1 -0
  51. package/build/sources/free/rssPatternSource.test.d.ts +2 -0
  52. package/build/sources/free/rssPatternSource.test.d.ts.map +1 -0
  53. package/build/sources/free/rssPatternSource.test.js +92 -0
  54. package/build/sources/free/rssPatternSource.test.js.map +1 -0
  55. package/build/sources/free/sundell.d.ts +9 -0
  56. package/build/sources/free/sundell.d.ts.map +1 -0
  57. package/build/sources/free/sundell.js +31 -0
  58. package/build/sources/free/sundell.js.map +1 -0
  59. package/build/sources/free/sundell.test.d.ts +2 -0
  60. package/build/sources/free/sundell.test.d.ts.map +1 -0
  61. package/build/sources/free/sundell.test.js +63 -0
  62. package/build/sources/free/sundell.test.js.map +1 -0
  63. package/build/sources/free/vanderlee.d.ts +9 -0
  64. package/build/sources/free/vanderlee.d.ts.map +1 -0
  65. package/build/sources/free/vanderlee.js +71 -0
  66. package/build/sources/free/vanderlee.js.map +1 -0
  67. package/build/sources/free/vanderlee.test.d.ts +2 -0
  68. package/build/sources/free/vanderlee.test.d.ts.map +1 -0
  69. package/build/sources/free/vanderlee.test.js +73 -0
  70. package/build/sources/free/vanderlee.test.js.map +1 -0
  71. package/build/sources/premium/patreon-dl.d.ts +45 -0
  72. package/build/sources/premium/patreon-dl.d.ts.map +1 -0
  73. package/build/sources/premium/patreon-dl.js +189 -0
  74. package/build/sources/premium/patreon-dl.js.map +1 -0
  75. package/build/sources/premium/patreon-fetch.d.ts +3 -0
  76. package/build/sources/premium/patreon-fetch.d.ts.map +1 -0
  77. package/build/sources/premium/patreon-fetch.js +18 -0
  78. package/build/sources/premium/patreon-fetch.js.map +1 -0
  79. package/build/sources/premium/patreon-oauth.d.ts +24 -0
  80. package/build/sources/premium/patreon-oauth.d.ts.map +1 -0
  81. package/build/sources/premium/patreon-oauth.js +207 -0
  82. package/build/sources/premium/patreon-oauth.js.map +1 -0
  83. package/build/sources/premium/patreon-zip.d.ts +17 -0
  84. package/build/sources/premium/patreon-zip.d.ts.map +1 -0
  85. package/build/sources/premium/patreon-zip.js +128 -0
  86. package/build/sources/premium/patreon-zip.js.map +1 -0
  87. package/build/sources/premium/patreon.d.ts +48 -0
  88. package/build/sources/premium/patreon.d.ts.map +1 -0
  89. package/build/sources/premium/patreon.js +248 -0
  90. package/build/sources/premium/patreon.js.map +1 -0
  91. package/build/sources/premium/youtube.d.ts +14 -0
  92. package/build/sources/premium/youtube.d.ts.map +1 -0
  93. package/build/sources/premium/youtube.js +92 -0
  94. package/build/sources/premium/youtube.js.map +1 -0
  95. package/build/tools/extract-cookie.d.ts +2 -0
  96. package/build/tools/extract-cookie.d.ts.map +1 -0
  97. package/build/tools/extract-cookie.js +40 -0
  98. package/build/tools/extract-cookie.js.map +1 -0
  99. package/build/tools/handlers/enableSource.d.ts +3 -0
  100. package/build/tools/handlers/enableSource.d.ts.map +1 -0
  101. package/build/tools/handlers/enableSource.js +39 -0
  102. package/build/tools/handlers/enableSource.js.map +1 -0
  103. package/build/tools/handlers/getSwiftPattern.d.ts +3 -0
  104. package/build/tools/handlers/getSwiftPattern.d.ts.map +1 -0
  105. package/build/tools/handlers/getSwiftPattern.js +78 -0
  106. package/build/tools/handlers/getSwiftPattern.js.map +1 -0
  107. package/build/tools/handlers/handlers.test.d.ts +2 -0
  108. package/build/tools/handlers/handlers.test.d.ts.map +1 -0
  109. package/build/tools/handlers/handlers.test.js +189 -0
  110. package/build/tools/handlers/handlers.test.js.map +1 -0
  111. package/build/tools/handlers/listContentSources.d.ts +3 -0
  112. package/build/tools/handlers/listContentSources.d.ts.map +1 -0
  113. package/build/tools/handlers/listContentSources.js +38 -0
  114. package/build/tools/handlers/listContentSources.js.map +1 -0
  115. package/build/tools/handlers/searchSwiftContent.d.ts +3 -0
  116. package/build/tools/handlers/searchSwiftContent.d.ts.map +1 -0
  117. package/build/tools/handlers/searchSwiftContent.js +44 -0
  118. package/build/tools/handlers/searchSwiftContent.js.map +1 -0
  119. package/build/tools/index.d.ts +3 -0
  120. package/build/tools/index.d.ts.map +1 -0
  121. package/build/tools/index.js +14 -0
  122. package/build/tools/index.js.map +1 -0
  123. package/build/tools/registry.d.ts +14 -0
  124. package/build/tools/registry.d.ts.map +1 -0
  125. package/build/tools/registry.js +21 -0
  126. package/build/tools/registry.js.map +1 -0
  127. package/build/tools/registry.test.d.ts +2 -0
  128. package/build/tools/registry.test.d.ts.map +1 -0
  129. package/build/tools/registry.test.js +54 -0
  130. package/build/tools/registry.test.js.map +1 -0
  131. package/build/tools/types.d.ts +25 -0
  132. package/build/tools/types.d.ts.map +1 -0
  133. package/build/tools/types.js +3 -0
  134. package/build/tools/types.js.map +1 -0
  135. package/build/utils/cache.d.ts +17 -0
  136. package/build/utils/cache.d.ts.map +1 -0
  137. package/build/utils/cache.js +144 -0
  138. package/build/utils/cache.js.map +1 -0
  139. package/build/utils/errors.d.ts +19 -0
  140. package/build/utils/errors.d.ts.map +1 -0
  141. package/build/utils/errors.js +34 -0
  142. package/build/utils/errors.js.map +1 -0
  143. package/build/utils/paths.d.ts +27 -0
  144. package/build/utils/paths.d.ts.map +1 -0
  145. package/build/utils/paths.js +43 -0
  146. package/build/utils/paths.js.map +1 -0
  147. package/build/utils/search.d.ts +29 -0
  148. package/build/utils/search.d.ts.map +1 -0
  149. package/build/utils/search.js +165 -0
  150. package/build/utils/search.js.map +1 -0
  151. package/build/utils/search.test.d.ts +2 -0
  152. package/build/utils/search.test.d.ts.map +1 -0
  153. package/build/utils/search.test.js +199 -0
  154. package/build/utils/search.test.js.map +1 -0
  155. package/build/utils/swift-analysis.d.ts +27 -0
  156. package/build/utils/swift-analysis.d.ts.map +1 -0
  157. package/build/utils/swift-analysis.js +78 -0
  158. package/build/utils/swift-analysis.js.map +1 -0
  159. package/build/utils/swift-analysis.test.d.ts +2 -0
  160. package/build/utils/swift-analysis.test.d.ts.map +1 -0
  161. package/build/utils/swift-analysis.test.js +215 -0
  162. package/build/utils/swift-analysis.test.js.map +1 -0
  163. package/package.json +73 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lasha Efremidze
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,377 @@
1
+ # swift-mcp
2
+
3
+ ### 🎯 Curated Swift/SwiftUI Patterns from Top iOS Developers
4
+
5
+ **An MCP server that provides curated Swift and SwiftUI expertise from top iOS developers like John Sundell and Antoine van der Lee, including patterns, best practices, and real-world code examples.**
6
+
7
+ [Quick Start](#-quick-start) • [Features](#-features) • [Usage](#-usage-examples) • [Contributing](#-contributing)
8
+
9
+ ---
10
+
11
+ ## Why swift-mcp?
12
+
13
+ - ✅ **Curated Content**: Only high-quality patterns from trusted iOS developers
14
+ - ✅ **Always Up-to-Date**: Automatically fetches the latest articles and patterns
15
+ - ✅ **MCP Native**: Works seamlessly with Claude, Cursor, Windsurf, and other MCP-compatible tools
16
+ - ✅ **Privacy First**: Free sources require no authentication
17
+ - ✅ **Extensible**: Optional Patreon integration for premium content
18
+
19
+ ## 🌟 Features
20
+
21
+ ### Core Features
22
+
23
+ - 🎓 **Expert Knowledge Base**: Provides patterns from Swift by Sundell, Antoine van der Lee, and more
24
+ - 🔍 **Intelligent Search**: Query by topic, pattern, or specific iOS concepts
25
+ - 🎯 **Quality Filtering**: Configurable quality thresholds ensure only the best content
26
+ - 📚 **Multiple Sources**: Aggregates knowledge from various trusted educators
27
+ - 🔄 **Auto-Updates**: Content automatically refreshes from RSS feeds
28
+ - ⚡ **Fast Performance**: Efficient caching and indexed search
29
+
30
+ ### Built-in Sources (Free)
31
+ - ✅ **Swift by Sundell** - Articles, patterns, and best practices
32
+ - ✅ **Antoine van der Lee** - Tutorials, tips, and deep dives
33
+ - ✅ **Point-Free** - Open source libraries and patterns
34
+
35
+ ### Premium Sources (Optional)
36
+ - 🔐 **Patreon Integration** - Access premium content from creators you support
37
+
38
+ ## 📋 Prerequisites
39
+
40
+ - **Node.js**: Version 18.0.0 or higher
41
+ - **MCP-Compatible AI Assistant**: Claude Desktop, Cursor, Windsurf, or VS Code with Copilot
42
+
43
+ ## 🚀 Quick Start
44
+
45
+ ### Install
46
+
47
+ ```bash
48
+ npm install -g swift-patterns-mcp
49
+ ```
50
+
51
+ ### Configure Your AI Assistant
52
+
53
+ #### Cursor
54
+
55
+ [![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=swift-patterns&config=eyJjb21tYW5kIjoibnB4IC15IHN3aWZ0LXBhdHRlcm5zLW1jcEBsYXRlc3QifQ==)
56
+
57
+ Or manually add to **Cursor Settings** → **Tools** → **MCP Servers**:
58
+
59
+ `.cursor/mcp.json`:
60
+ ```json
61
+ {
62
+ "mcpServers": {
63
+ "swift-patterns": {
64
+ "command": "npx",
65
+ "args": ["-y", "swift-patterns-mcp@latest"]
66
+ }
67
+ }
68
+ }
69
+ ```
70
+
71
+ Alternatively, add the following to your `~/.cursor/mcp.json` file. To learn more, see the Cursor documentation.
72
+
73
+ #### Claude Code
74
+
75
+ Run this command in your terminal:
76
+
77
+ ```bash
78
+ claude mcp add swift-patterns -- npx -y swift-patterns-mcp@latest
79
+ ```
80
+
81
+ Or manually add to your project's `.mcp.json` file:
82
+
83
+ `.mcp.json`
84
+ ```json
85
+ {
86
+ "mcpServers": {
87
+ "swift-patterns": {
88
+ "command": "npx",
89
+ "args": ["-y", "swift-patterns-mcp@latest"]
90
+ }
91
+ }
92
+ }
93
+ ```
94
+
95
+ After adding the configuration, restart Claude Code and run /mcp to see the swift-patterns MCP server in the list. If you see Connected, you're ready to use it.
96
+
97
+ See the Claude Code MCP documentation for more details.
98
+
99
+ #### Windsurf
100
+
101
+ Add the swift-patterns server to your project's `.windsurf/mcp.json` configuration file:
102
+
103
+ `.windsurf/mcp.json`
104
+ ```json
105
+ {
106
+ "mcpServers": {
107
+ "swift-patterns": {
108
+ "command": "npx",
109
+ "args": ["-y", "swift-patterns-mcp@latest"]
110
+ }
111
+ }
112
+ }
113
+ ```
114
+
115
+ After adding the configuration, restart Windsurf to activate the MCP server.
116
+
117
+ See the Windsurf MCP documentation for more details.
118
+
119
+ #### VS Code
120
+
121
+ To configure MCP in VS Code with GitHub Copilot, add the swift-mcp server to your project's `.vscode/mcp.json` configuration file:
122
+
123
+ `.vscode/mcp.json`
124
+ ```json
125
+ {
126
+ "mcp": {
127
+ "servers": {
128
+ "swift-patterns": {
129
+ "command": "npx",
130
+ "args": ["-y", "swift-patterns-mcp@latest"]
131
+ }
132
+ }
133
+ }
134
+ }
135
+ ```
136
+
137
+ After adding the configuration, open `.vscode/mcp.json` and click Start next to the swift-patterns server.
138
+
139
+ See the VS Code MCP documentation for more details.
140
+
141
+ ### Test It Out
142
+
143
+ Try these queries:
144
+
145
+ ```
146
+ "Show me SwiftUI animation patterns"
147
+ "What does Sundell say about testing?"
148
+ "Explain navigation patterns in SwiftUI"
149
+ ```
150
+
151
+ ## 🔧 Configuration
152
+
153
+ The configuration file is automatically created at `~/.swift-mcp/config.json`:
154
+
155
+ ```json
156
+ {
157
+ "sources": {
158
+ "sundell": { "enabled": true, "quality": 60 },
159
+ "vanderlee": { "enabled": true, "quality": 60 },
160
+ "pointfree": { "enabled": false, "quality": 60 },
161
+ "patreon": { "enabled": false }
162
+ },
163
+ "cache": {
164
+ "ttl": 86400
165
+ }
166
+ }
167
+ ```
168
+
169
+ ### Environment Variables (Optional)
170
+
171
+ For premium features, add to your MCP client config:
172
+
173
+ ```json
174
+ {
175
+ "mcpServers": {
176
+ "swift-patterns": {
177
+ "command": "npx",
178
+ "args": ["-y", "swift-patterns-mcp@latest"],
179
+ "env": {
180
+ "PATREON_CLIENT_ID": "your_client_id",
181
+ "PATREON_CLIENT_SECRET": "your_client_secret"
182
+ }
183
+ }
184
+ }
185
+ }
186
+ ```
187
+
188
+ ## 💡 Usage Examples
189
+
190
+ ### Basic Queries
191
+
192
+ ```
193
+ "Show me best practices for SwiftUI animations"
194
+ "What does Sundell say about testing?"
195
+ "Explain navigation patterns in SwiftUI"
196
+ ```
197
+
198
+ ### Advanced Queries
199
+
200
+ ```
201
+ "Show me performance tips from van der Lee"
202
+ "Find iOS architecture patterns for MVVM + coordinator"
203
+ "Give me examples for SwiftUI infinite scrolling"
204
+ ```
205
+
206
+ ### With Patreon Integration
207
+
208
+ ```
209
+ "Show me advanced SwiftUI patterns"
210
+ "How do I build a photo editor app?"
211
+ ```
212
+
213
+ ## 📚 Content Sources
214
+
215
+ ### Free Sources
216
+
217
+ Currently supported, no authentication needed:
218
+
219
+ | Source | Creator | Content Type | Update Frequency |
220
+ |--------|---------|--------------|------------------|
221
+ | **Swift by Sundell** | John Sundell | Articles, patterns, best practices | Weekly |
222
+ | **Antoine van der Lee** | Antoine van der Lee | Tutorials, tips, deep dives | Weekly |
223
+ | **Point-Free** | Point-Free | Open source libraries, patterns | On release |
224
+
225
+ ### Premium Sources
226
+
227
+ Requires authentication and active subscriptions:
228
+
229
+ | Source | What You Get | Setup Method | Status |
230
+ |--------|--------------|--------------|--------|
231
+ | **Patreon** | Premium content from iOS creators | OAuth 2.0 | ✅ Available |
232
+
233
+ ## 🔐 Premium Integration (Optional)
234
+
235
+ ### Patreon Setup
236
+
237
+ Access premium content from iOS creators you support:
238
+
239
+ ```bash
240
+ swift-mcp setup --patreon
241
+ ```
242
+
243
+ Follow the interactive wizard to:
244
+ 1. Create a Patreon OAuth application
245
+ 2. Configure credentials
246
+ 3. Complete authentication
247
+
248
+ 📖 **Detailed Guide**: [Patreon Setup Documentation](docs/PATREON_SETUP.md)
249
+
250
+ #### Requirements
251
+
252
+ - Active Patreon account with at least one iOS creator subscription
253
+ - Patreon Creator account (free - no need to launch a creator page)
254
+ - 10 minutes for one-time OAuth setup
255
+
256
+ #### Why Creator Account?
257
+
258
+ Patreon requires OAuth apps to be registered by creators. You don't need to launch a creator page or become an active creator - just register as one to create an OAuth app for personal use.
259
+
260
+ #### What You Get
261
+
262
+ - ✅ Access to premium tutorials and patterns from creators you support
263
+ - ✅ Automatic extraction of code from downloadable content
264
+ - ✅ Quality filtering and advanced search
265
+ - ✅ Multi-creator support
266
+ - ✅ Private, secure authentication
267
+
268
+ ## ⚙️ Commands
269
+
270
+ ```bash
271
+ # Source management
272
+ swift-mcp source list
273
+ swift-mcp source enable <source-name>
274
+ swift-mcp source disable <source-name>
275
+
276
+ # Configuration
277
+ swift-mcp setup
278
+ swift-mcp setup --patreon
279
+
280
+ # Authentication
281
+ swift-mcp auth patreon
282
+ swift-mcp auth status
283
+ ```
284
+
285
+ ## 🏗️ How It Works
286
+
287
+ ```mermaid
288
+ graph LR
289
+ A[AI Assistant] --> B[swift-mcp Server]
290
+ B --> C[Free Sources]
291
+ B --> D[Premium Sources]
292
+ C --> E[Swift by Sundell RSS]
293
+ C --> F[van der Lee RSS]
294
+ C --> G[Point-Free GitHub]
295
+ D --> H[Patreon API]
296
+ ```
297
+
298
+ 1. **Query**: Receives a query through the MCP protocol
299
+ 2. **Processing**: Searches enabled sources based on the query
300
+ 3. **Content Retrieval**: Fetches and parses content from RSS feeds, APIs, and cached data
301
+ 4. **Quality Filtering**: Applies configurable quality thresholds
302
+ 5. **Response**: Returns formatted, relevant patterns and examples
303
+
304
+ ## 🔧 Troubleshooting
305
+
306
+ ### Common Issues
307
+
308
+ **Node version incompatible**
309
+ ```bash
310
+ node --version # Should be >= 18.0.0
311
+ ```
312
+
313
+ **Sources not returning results**
314
+ ```bash
315
+ swift-mcp source list
316
+ ls ~/.swift-mcp/config.json
317
+ swift-mcp setup
318
+ ```
319
+
320
+ #### Patreon Integration Issues
321
+
322
+ **OAuth redirect not working**
323
+ - Ensure redirect URI is exactly: `http://localhost:3000/patreon/callback`
324
+ - Check no other process is using port 3000
325
+ - Verify OAuth credentials are correctly set
326
+
327
+ **No premium content showing**
328
+ - Confirm you have active Patreon subscriptions to iOS creators
329
+ - Re-authenticate: `swift-mcp auth patreon`
330
+ - Check Patreon source is enabled: `swift-mcp source list`
331
+
332
+ ### Getting Help
333
+
334
+ - 📖 [Full Documentation](docs/)
335
+ - 🐛 [Report Issues](https://github.com/efremidze/swift-mcp/issues)
336
+ - 💬 [Discussions](https://github.com/efremidze/swift-mcp/discussions)
337
+
338
+ ## 🗺️ Roadmap
339
+
340
+ ### Current (v1.x)
341
+ - [x] Core MCP server
342
+ - [x] Swift by Sundell RSS
343
+ - [x] Antoine van der Lee RSS
344
+ - [x] Patreon OAuth
345
+ - [ ] Point-Free GitHub
346
+ - [ ] Advanced filtering
347
+
348
+ ### Future (v2.x)
349
+ - [ ] Additional premium sources
350
+ - [ ] More free sources
351
+ - [ ] Advanced search (with vector embeddings)
352
+ - [ ] Code validation
353
+
354
+ ## 🤝 Contributing
355
+
356
+ We welcome contributions! See our [contributing guidelines](CONTRIBUTING.md).
357
+
358
+ ## 📄 License
359
+
360
+ MIT License - Copyright (c) 2026 Lasha Efremidze
361
+
362
+ ## 🙏 Credits
363
+
364
+ **Created by** [Lasha Efremidze](https://github.com/efremidze)
365
+
366
+ **Content Sources**
367
+ - [John Sundell](https://swiftbysundell.com) - Swift by Sundell
368
+ - [Antoine van der Lee](https://www.avanderlee.com) - SwiftLee
369
+ - [Point-Free](https://www.pointfree.co) - Advanced Swift education
370
+
371
+ **Built with** [Model Context Protocol](https://modelcontextprotocol.io)
372
+
373
+ ---
374
+
375
+ **Made with ❤️ for the Swift community**
376
+
377
+ [⭐ Star this repo](https://github.com/efremidze/swift-mcp) • [🐛 Report Bug](https://github.com/efremidze/swift-mcp/issues) • [✨ Request Feature](https://github.com/efremidze/swift-mcp/issues)
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import 'dotenv/config';
3
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/cli/auth.ts"],"names":[],"mappings":";AAIA,OAAO,eAAe,CAAC"}
@@ -0,0 +1,43 @@
1
+ #!/usr/bin/env node
2
+ // src/cli/auth.ts
3
+ import 'dotenv/config';
4
+ import { clearPatreonAuth } from "../sources/premium/patreon-oauth.js";
5
+ function print(msg) {
6
+ console.log(msg);
7
+ }
8
+ async function resetAuth() {
9
+ print("\n🔄 Resetting Patreon Authentication");
10
+ print("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n");
11
+ try {
12
+ await clearPatreonAuth();
13
+ print("✅ Authentication data cleared successfully!\n");
14
+ print("Run 'swift-mcp setup --patreon' to re-authenticate.\n");
15
+ }
16
+ catch (err) {
17
+ print(`❌ Failed to clear authentication: ${err instanceof Error ? err.message : String(err)}\n`);
18
+ process.exit(1);
19
+ }
20
+ }
21
+ // Parse args
22
+ const args = process.argv.slice(2);
23
+ if (args.includes("reset") || args.includes("-r")) {
24
+ resetAuth().catch((err) => {
25
+ console.error("Reset failed:", err);
26
+ process.exit(1);
27
+ });
28
+ }
29
+ else if (args.includes("--help") || args.includes("-h")) {
30
+ print("swift-mcp auth\n");
31
+ print("Usage:");
32
+ print(" swift-mcp auth reset Clear all Patreon authentication data");
33
+ print(" swift-mcp auth --help Show this help");
34
+ process.exit(0);
35
+ }
36
+ else {
37
+ print("swift-mcp auth\n");
38
+ print("Available commands:");
39
+ print(" reset Clear all Patreon authentication data");
40
+ print("\nRun: swift-mcp auth reset");
41
+ process.exit(0);
42
+ }
43
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/cli/auth.ts"],"names":[],"mappings":";AAEA,kBAAkB;AAElB,OAAO,eAAe,CAAC;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AAEtE,SAAS,KAAK,CAAC,GAAW;IACxB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAClB,CAAC;AAED,KAAK,UAAU,SAAS;IACtB,KAAK,CAAC,uCAAuC,CAAC,CAAA;IAC9C,KAAK,CAAC,sCAAsC,CAAC,CAAA;IAE7C,IAAI,CAAC;QACH,MAAM,gBAAgB,EAAE,CAAA;QACxB,KAAK,CAAC,+CAA+C,CAAC,CAAA;QACtD,KAAK,CAAC,uDAAuD,CAAC,CAAA;IAChE,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,KAAK,CAAC,qCAAqC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAChG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC;AACH,CAAC;AAED,aAAa;AACb,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AAElC,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;IAClD,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACxB,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,GAAG,CAAC,CAAA;QACnC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC,CAAC,CAAA;AACJ,CAAC;KAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;IAC1D,KAAK,CAAC,kBAAkB,CAAC,CAAA;IACzB,KAAK,CAAC,QAAQ,CAAC,CAAA;IACf,KAAK,CAAC,iEAAiE,CAAC,CAAA;IACxE,KAAK,CAAC,0CAA0C,CAAC,CAAA;IACjD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC;KAAM,CAAC;IACN,KAAK,CAAC,kBAAkB,CAAC,CAAA;IACzB,KAAK,CAAC,qBAAqB,CAAC,CAAA;IAC5B,KAAK,CAAC,kDAAkD,CAAC,CAAA;IACzD,KAAK,CAAC,6BAA6B,CAAC,CAAA;IACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import 'dotenv/config';
2
+ //# sourceMappingURL=setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/cli/setup.ts"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAC"}
@@ -0,0 +1,149 @@
1
+ // src/cli/setup.ts
2
+ import 'dotenv/config';
3
+ import readline from 'readline';
4
+ import { startOAuthFlow, loadTokens } from '../sources/premium/patreon-oauth.js';
5
+ import PatreonSource from '../sources/premium/patreon.js';
6
+ import SourceManager from '../config/sources.js';
7
+ const rl = readline.createInterface({
8
+ input: process.stdin,
9
+ output: process.stdout,
10
+ });
11
+ function question(prompt) {
12
+ return new Promise(resolve => rl.question(prompt, resolve));
13
+ }
14
+ function print(msg) {
15
+ console.log(msg);
16
+ }
17
+ async function setupPatreon() {
18
+ print('\n🔐 Patreon Setup');
19
+ print('━━━━━━━━━━━━━━━━\n');
20
+ const clientId = process.env.PATREON_CLIENT_ID;
21
+ const clientSecret = process.env.PATREON_CLIENT_SECRET;
22
+ if (!clientId || !clientSecret) {
23
+ print('❌ Missing Patreon credentials.\n');
24
+ print('Please set these environment variables:');
25
+ print(' PATREON_CLIENT_ID=your_client_id');
26
+ print(' PATREON_CLIENT_SECRET=your_client_secret\n');
27
+ print('Get credentials at: https://www.patreon.com/portal/registration/register-clients');
28
+ rl.close();
29
+ process.exit(1);
30
+ }
31
+ // Check if already configured
32
+ const existingTokens = await loadTokens();
33
+ if (existingTokens) {
34
+ const answer = await question('Patreon is already configured. Reconfigure? (y/N): ');
35
+ if (answer.toLowerCase() !== 'y') {
36
+ print('\nSetup cancelled.');
37
+ rl.close();
38
+ return;
39
+ }
40
+ }
41
+ // Step 1: OAuth
42
+ print('Step 1/3: Authentication');
43
+ const result = await startOAuthFlow(clientId, clientSecret);
44
+ if (!result.success) {
45
+ print(`\n❌ Authorization failed: ${result.error}`);
46
+ rl.close();
47
+ process.exit(1);
48
+ }
49
+ print('✓ Authenticated successfully!\n');
50
+ // Step 2: Detect creators
51
+ print('Step 2/3: Detecting Swift/iOS Creators');
52
+ print('Scanning your subscriptions...\n');
53
+ const patreon = new PatreonSource();
54
+ const allCreators = await patreon.getSubscribedCreators();
55
+ const swiftCreators = allCreators.filter(c => c.isSwiftRelated);
56
+ if (allCreators.length === 0) {
57
+ print('No Patreon subscriptions found.');
58
+ print('Subscribe to iOS/Swift creators on Patreon, then run setup again.');
59
+ rl.close();
60
+ return;
61
+ }
62
+ // Display creators with pre-selection
63
+ const selected = new Set(swiftCreators.map(c => c.id));
64
+ print(`Found ${allCreators.length} subscriptions:\n`);
65
+ function displayCreators() {
66
+ allCreators.forEach((c, i) => {
67
+ const check = selected.has(c.id) ? '✓' : ' ';
68
+ const swift = c.isSwiftRelated ? ' (Swift/iOS)' : '';
69
+ print(` ${check} [${i + 1}] ${c.name}${swift}`);
70
+ });
71
+ }
72
+ displayCreators();
73
+ print('\nToggle numbers to change selection, or press Enter to confirm.');
74
+ while (true) {
75
+ const input = await question('\nToggle (or Enter to confirm): ');
76
+ if (input.trim() === '') {
77
+ break;
78
+ }
79
+ const nums = input.split(/[\s,]+/).map(s => parseInt(s.trim(), 10)).filter(n => !isNaN(n));
80
+ for (const num of nums) {
81
+ if (num >= 1 && num <= allCreators.length) {
82
+ const creator = allCreators[num - 1];
83
+ if (selected.has(creator.id)) {
84
+ selected.delete(creator.id);
85
+ }
86
+ else {
87
+ selected.add(creator.id);
88
+ }
89
+ }
90
+ }
91
+ print('\nUpdated selection:');
92
+ displayCreators();
93
+ }
94
+ if (selected.size === 0) {
95
+ print('\n⚠️ No creators selected. You can run setup again later.');
96
+ rl.close();
97
+ return;
98
+ }
99
+ // Save selected creators
100
+ patreon.saveEnabledCreators(Array.from(selected));
101
+ // Step 3: Initial sync
102
+ print('\nStep 3/3: Initial Sync');
103
+ print(`Fetching content from ${selected.size} creator(s)...\n`);
104
+ const patterns = await patreon.fetchPatterns();
105
+ const creatorStats = new Map();
106
+ for (const p of patterns) {
107
+ if (!creatorStats.has(p.creator)) {
108
+ creatorStats.set(p.creator, { posts: 0, withCode: 0 });
109
+ }
110
+ const stats = creatorStats.get(p.creator);
111
+ stats.posts++;
112
+ if (p.hasCode)
113
+ stats.withCode++;
114
+ }
115
+ for (const [creatorId, stats] of creatorStats) {
116
+ const creator = allCreators.find(c => c.id === creatorId);
117
+ print(` ${creator?.name || creatorId}: ${stats.posts} posts (${stats.withCode} with code)`);
118
+ }
119
+ // Mark as configured
120
+ const sourceManager = new SourceManager();
121
+ sourceManager.markSourceConfigured('patreon');
122
+ print('\n✅ Setup complete!\n');
123
+ print(`Found ${patterns.length} posts across ${selected.size} creator(s).`);
124
+ print("Use 'get_patreon_patterns' in your AI assistant to search them.\n");
125
+ rl.close();
126
+ }
127
+ // Parse args
128
+ const args = process.argv.slice(2);
129
+ if (args.includes('--patreon') || args.includes('-p')) {
130
+ setupPatreon().catch(err => {
131
+ console.error('Setup failed:', err);
132
+ process.exit(1);
133
+ });
134
+ }
135
+ else if (args.includes('--help') || args.includes('-h')) {
136
+ print('swift-mcp setup\n');
137
+ print('Usage:');
138
+ print(' swift-mcp setup --patreon Set up Patreon integration');
139
+ print(' swift-mcp setup --help Show this help');
140
+ process.exit(0);
141
+ }
142
+ else {
143
+ print('swift-mcp setup\n');
144
+ print('Available options:');
145
+ print(' --patreon Set up Patreon integration');
146
+ print('\nRun: swift-mcp setup --patreon');
147
+ process.exit(0);
148
+ }
149
+ //# sourceMappingURL=setup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.js","sourceRoot":"","sources":["../../src/cli/setup.ts"],"names":[],"mappings":"AAAA,mBAAmB;AAEnB,OAAO,eAAe,CAAC;AAEvB,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAC1D,OAAO,aAAa,MAAM,sBAAsB,CAAC;AAEjD,MAAM,EAAE,GAAG,QAAQ,CAAC,eAAe,CAAC;IAClC,KAAK,EAAE,OAAO,CAAC,KAAK;IACpB,MAAM,EAAE,OAAO,CAAC,MAAM;CACvB,CAAC,CAAC;AAEH,SAAS,QAAQ,CAAC,MAAc;IAC9B,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAC9D,CAAC;AAED,SA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 -0,0 +1 @@
1
+ {"version":3,"file":"source-manager.d.ts","sourceRoot":"","sources":["../../src/cli/source-manager.ts"],"names":[],"mappings":";AAIA,OAAO,eAAe,CAAC"}