fa-mcp-sdk 0.4.51 → 0.4.53

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 (47) hide show
  1. package/README.md +1 -1
  2. package/cli-template/.claude/settings.json +3 -1
  3. package/cli-template/.claude/skills/edit-claude-files/SKILL.md +46 -0
  4. package/cli-template/.claude/skills/feature-generator/SKILL.md +364 -0
  5. package/cli-template/.claude/skills/readme-generator/README.md +1 -0
  6. package/cli-template/.claude/skills/readme-generator/SKILL.md +237 -0
  7. package/cli-template/.claude/skills/readme-generator/reference/best-practices.md +218 -0
  8. package/cli-template/.claude/skills/readme-generator/reference/satellite-templates.md +534 -0
  9. package/cli-template/.claude/skills/readme-generator/reference/templates.md +385 -0
  10. package/cli-template/CLAUDE.md +5 -19
  11. package/cli-template/FA-MCP-SDK-DOC/00-FA-MCP-SDK-index.md +1 -1
  12. package/cli-template/FA-MCP-SDK-DOC/02-1-tools-and-api.md +60 -0
  13. package/cli-template/FA-MCP-SDK-DOC/04-authentication.md +10 -8
  14. package/cli-template/README.md +72 -22
  15. package/cli-template/SKILL_README.md +139 -0
  16. package/cli-template/package.json +1 -1
  17. package/cli-template/prompt-example-new-MCP.md +3 -2
  18. package/config/custom-environment-variables.yaml +4 -3
  19. package/config/default.yaml +20 -18
  20. package/config/local-test.yaml +44 -0
  21. package/dist/core/_types_/config.d.ts +8 -5
  22. package/dist/core/_types_/config.d.ts.map +1 -1
  23. package/dist/core/auth/admin-auth.d.ts +12 -5
  24. package/dist/core/auth/admin-auth.d.ts.map +1 -1
  25. package/dist/core/auth/admin-auth.js +37 -25
  26. package/dist/core/auth/admin-auth.js.map +1 -1
  27. package/dist/core/bootstrap/startup-info.d.ts.map +1 -1
  28. package/dist/core/bootstrap/startup-info.js +13 -5
  29. package/dist/core/bootstrap/startup-info.js.map +1 -1
  30. package/dist/core/mcp/readme-assembler.d.ts +20 -0
  31. package/dist/core/mcp/readme-assembler.d.ts.map +1 -0
  32. package/dist/core/mcp/readme-assembler.js +88 -0
  33. package/dist/core/mcp/readme-assembler.js.map +1 -0
  34. package/dist/core/mcp/resources.d.ts.map +1 -1
  35. package/dist/core/mcp/resources.js +2 -1
  36. package/dist/core/mcp/resources.js.map +1 -1
  37. package/dist/core/web/admin-router.js +2 -2
  38. package/dist/core/web/admin-router.js.map +1 -1
  39. package/dist/core/web/home-api.d.ts.map +1 -1
  40. package/dist/core/web/home-api.js +13 -5
  41. package/dist/core/web/home-api.js.map +1 -1
  42. package/dist/core/web/server-http.d.ts.map +1 -1
  43. package/dist/core/web/server-http.js +1 -2
  44. package/dist/core/web/server-http.js.map +1 -1
  45. package/dist/core/web/static/home/index.html +2 -2
  46. package/dist/core/web/static/home/script.js +2 -2
  47. package/package.json +1 -1
@@ -0,0 +1,218 @@
1
+ # Documentation Best Practices
2
+
3
+ ## Writing Style
4
+
5
+ ### Be Clear and Concise
6
+
7
+ **Good:**
8
+ > Install the package using npm.
9
+
10
+ **Bad:**
11
+ > You can install this package by utilizing the npm package manager which is included with Node.js.
12
+
13
+ ### Use Active Voice
14
+
15
+ **Good:**
16
+ > The function returns a promise.
17
+
18
+ **Bad:**
19
+ > A promise is returned by the function.
20
+
21
+ ### Write for Your Audience
22
+
23
+ - **Developers**: Include technical details, API references
24
+ - **End Users**: Focus on features, benefits, screenshots
25
+ - **Contributors**: Explain architecture, setup, testing
26
+
27
+ ## Structure
28
+
29
+ ### Start with the Most Important Information
30
+
31
+ 1. What is it?
32
+ 2. Why should I use it?
33
+ 3. How do I get started?
34
+
35
+ ### Use Headings Effectively
36
+
37
+ ```markdown
38
+ # Main Title (H1) - Only one per document
39
+
40
+ ## Major Sections (H2)
41
+
42
+ ### Subsections (H3)
43
+
44
+ #### Details (H4) - Use sparingly
45
+ ```
46
+
47
+ ### Keep Paragraphs Short
48
+
49
+ - 2-4 sentences per paragraph
50
+ - One idea per paragraph
51
+ - Use bullet points for lists
52
+
53
+ ## Code Examples
54
+
55
+ ### Make Examples Runnable
56
+
57
+ **Good:**
58
+ ```javascript
59
+ const api = require('my-api');
60
+ api.connect('https://api.example.com');
61
+ const users = await api.getUsers();
62
+ console.log(users);
63
+ ```
64
+
65
+ **Bad:**
66
+ ```javascript
67
+ // Connect to API
68
+ api.connect(url);
69
+ // Get users
70
+ getUsers();
71
+ ```
72
+
73
+ ### Show Expected Output
74
+
75
+ ```javascript
76
+ const result = add(2, 3);
77
+ console.log(result);
78
+ // Output: 5
79
+ ```
80
+
81
+ ### Include Error Handling
82
+
83
+ ```javascript
84
+ try {
85
+ const data = await fetchData();
86
+ } catch (error) {
87
+ console.error('Failed to fetch:', error.message);
88
+ }
89
+ ```
90
+
91
+ ## Formatting
92
+
93
+ ### Use Consistent Terminology
94
+
95
+ Pick one term and stick with it:
96
+ - "function" not "function/method/procedure"
97
+ - "parameter" not "parameter/argument/input"
98
+
99
+ ### Format Code Inline
100
+
101
+ Use backticks for:
102
+ - Function names: `getData()`
103
+ - Variables: `userId`
104
+ - File names: `config.json`
105
+ - Commands: `npm install`
106
+
107
+ ### Use Tables for Comparisons
108
+
109
+ | Feature | Option A | Option B |
110
+ |---------|----------|----------|
111
+ | Speed | Fast | Slow |
112
+ | Memory | Low | High |
113
+
114
+ ## Common Sections
115
+
116
+ ### Installation
117
+
118
+ Always include:
119
+ - Prerequisites (if any)
120
+ - Installation command
121
+ - Verification step
122
+
123
+ ```markdown
124
+ ## Installation
125
+
126
+ **Prerequisites:** Node.js 18+
127
+
128
+ \`\`\`bash
129
+ npm install package-name
130
+ \`\`\`
131
+
132
+ Verify installation:
133
+ \`\`\`bash
134
+ package-name --version
135
+ \`\`\`
136
+ ```
137
+
138
+ ### Configuration
139
+
140
+ Show default values:
141
+
142
+ ```markdown
143
+ ## Configuration
144
+
145
+ \`\`\`json
146
+ {
147
+ "timeout": 5000, // Default: 5000ms
148
+ "retries": 3, // Default: 3
149
+ "debug": false // Default: false
150
+ }
151
+ \`\`\`
152
+ ```
153
+
154
+ ### Troubleshooting
155
+
156
+ Address common issues:
157
+
158
+ ```markdown
159
+ ## Troubleshooting
160
+
161
+ ### Error: "Module not found"
162
+
163
+ **Cause:** Package not installed
164
+
165
+ **Solution:**
166
+ \`\`\`bash
167
+ npm install missing-package
168
+ \`\`\`
169
+ ```
170
+
171
+ ## Maintenance
172
+
173
+ ### Keep Documentation Updated
174
+
175
+ - Update docs with code changes
176
+ - Review docs during code review
177
+ - Mark deprecated features clearly
178
+
179
+ ### Version Documentation
180
+
181
+ ```markdown
182
+ ## Version 2.0.0 (Breaking Changes)
183
+
184
+ - Removed: `oldFunction()`
185
+ - Changed: `newFunction()` now returns Promise
186
+ - Added: `anotherFunction()`
187
+ ```
188
+
189
+ ### Link to External Resources
190
+
191
+ ```markdown
192
+ For more information, see:
193
+ - [Official Docs](https://example.com/docs)
194
+ - [API Reference](https://example.com/api)
195
+ - [Tutorial](https://example.com/tutorial)
196
+ ```
197
+
198
+ ## Accessibility
199
+
200
+ ### Use Descriptive Link Text
201
+
202
+ **Good:**
203
+ > See the [installation guide](link) for details.
204
+
205
+ **Bad:**
206
+ > Click [here](link) for more information.
207
+
208
+ ### Provide Alt Text for Images
209
+
210
+ ```markdown
211
+ ![Dashboard showing user analytics with graphs](screenshot.png)
212
+ ```
213
+
214
+ ### Use Semantic Markdown
215
+
216
+ - Use proper heading hierarchy
217
+ - Use lists for lists
218
+ - Use code blocks for code