fa-mcp-sdk 0.4.69 → 0.4.70

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.
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: deploy-mcp
3
- description: "Implement an fa-mcp MCP server end-to-end in this already-scaffolded project: verify Agent Tester OpenAI creds, seed dev-time secrets and lenient config, push the scaffold to GitLab (creating a new repo OR reusing an existing one when instructed), draft an implementation plan, implement tools/prompts/resources, iterate via the Agent Tester headless API, then push the finished work. Use when the user asks to develop/implement/deploy the MCP server in this project, mentions 'deploy-mcp', 'развернуть MCP', 'реализовать MCP', or supplies a feature brief."
2
+ name: create-mcp-wizard
3
+ description: "Implement an fa-mcp MCP server end-to-end in this already-scaffolded project: verify Agent Tester OpenAI creds, seed dev-time secrets and lenient config, push the scaffold to GitLab (creating a new repo OR reusing an existing one when instructed), draft an implementation plan, implement tools/prompts/resources, iterate via the Agent Tester headless API, then push the finished work. Use when the user asks to develop/implement/deploy the MCP server in this project, mentions 'create-mcp-wizard', 'развернуть MCP', 'реализовать MCP', or supplies a feature brief."
4
4
  disable-model-invocation: true
5
5
  allowed-tools: Bash(node *), Bash(yarn *), Bash(npm *), Bash(git *), Bash(pwd), Bash(cd *), Bash(curl *), Read, Write, Edit, Glob, Grep
6
6
  ---
@@ -34,6 +34,13 @@ All supporting scripts live in `${CLAUDE_SKILL_DIR}/scripts/` and are invoked wi
34
34
  by the CLI / skill infrastructure and by the SDK maintainer. Do NOT modify, add, or delete files
35
35
  inside them unless the accompanying text explicitly instructs you to. This applies to every step
36
36
  below — implementation, tests, dev report, everything.
37
+ - **Reporting language**. Language for all generated artifacts (`claudedocs/*.md`, commit
38
+ messages, user-facing summaries) is resolved in this order:
39
+ 1. Explicit directive in the feature brief.
40
+ 2. Else, contents of `preferred-language.txt` in the project root, if it exists.
41
+ 3. Else — English.
42
+ Translate prose — headings and body text — to the resolved language; leave code, paths, YAML
43
+ keys, and CLI commands as-is. Report the resolved language and its source in the Step 1 summary.
37
44
 
38
45
  ## Step 1 — Scan the accompanying text for requirements
39
46
 
@@ -50,8 +57,10 @@ Before touching code, read every message/file the user attached and extract:
50
57
  - **Agent Tester OpenAI creds** — `apiKey` (required for Step 2) and `baseURL` (optional — Azure /
51
58
  proxy / local LLM). If the text already supplies them, use those. If `config/local.yaml` already
52
59
  has a working `agentTester.openAi.apiKey`, re-use it instead of asking again.
60
+ - **Reporting language** — resolve per the Ground rule above; record it for later steps.
53
61
 
54
- Summarize what you found to the user in 3-6 bullets and get a one-line confirmation before proceeding.
62
+ Summarize what you found to the user in 3-6 bullets (including the resolved reporting language
63
+ and its source) and get a one-line confirmation before proceeding.
55
64
 
56
65
  ## Step 2 — Verify Agent Tester OpenAI credentials
57
66
 
@@ -128,7 +137,7 @@ what belongs in the initial commit. If the tree contains scratch notes, local-on
128
137
  anything the user flagged as not-for-commit, stash it with an untracked-inclusive stash:
129
138
 
130
139
  ```
131
- git stash push -u -m "deploy-mcp: pre-initial-push stash" -- <paths>
140
+ git stash push -u -m "create-mcp-wizard: pre-initial-push stash" -- <paths>
132
141
  ```
133
142
 
134
143
  Announce what you stashed so the user can recover it later via `git stash list` / `git stash pop`.
@@ -205,7 +214,8 @@ OR switch to branch 4a if the "collision" is in fact the already-existing target
205
214
 
206
215
  ## Step 6 — Draft and commit to a plan
207
216
 
208
- Create `claudedocs/impl-plan.md` (create the directory if needed). Structure:
217
+ Create `claudedocs/impl-plan.md` (create the directory if needed) in the reporting language.
218
+ Structure:
209
219
 
210
220
  ```markdown
211
221
  # Implementation Plan — <project name>
@@ -245,7 +255,9 @@ Create `claudedocs/impl-plan.md` (create the directory if needed). Structure:
245
255
  - [ ] `yarn typecheck` clean
246
256
  - [ ] `yarn test:mcp`, `:mcp-http`, `:mcp-sse` all green
247
257
  - [ ] Agent Tester iterations done, `claudedocs/test-log.md` has entries
248
- - [ ] `claudedocs/dev-report.md` written
258
+ - [ ] `claudedocs/dev-report.md` written (full report)
259
+ - [ ] `claudedocs/breef-report.md` written (brief of work + problems — same content echoed to console)
260
+ - [ ] `claudedocs/dev-problems.md` written (blockers, failed checks, open questions)
249
261
  - [ ] Final GitLab push (Step 10) complete
250
262
  ```
251
263
 
@@ -353,8 +365,9 @@ agent prompt, handler logic, error message — per `FA-MCP-SDK-DOC/08-agent-test
353
365
  fix, rebuild (`yarn cb`), restart, and re-run the scenario. After restart, in-memory sessions on
354
366
  the server are wiped — delete the stale `claudedocs/.agent-session` file before re-running.
355
367
 
356
- Log every iteration in `claudedocs/test-log.md` (session header + per-scenario: sent / expected /
357
- received / tools used / result / diagnosis / fix). This is the audit trail.
368
+ Log every iteration in `claudedocs/test-log.md` in the reporting language (session header +
369
+ per-scenario: sent / expected / received / tools used / result / diagnosis / fix). This is the
370
+ audit trail.
358
371
 
359
372
  Stop the server with `node scripts/kill-port.js <port>` (or Ctrl+C) when you're done iterating.
360
373
 
@@ -373,9 +386,22 @@ yarn test:mcp-sse
373
386
 
374
387
  Zero errors, zero warnings that matter, all transport tests green.
375
388
 
376
- Write `claudedocs/dev-report.md` per the structure in `CLAUDE.md` "Development Report"
377
- (what was built, architecture decisions, agent prompt rationale, test coverage, Agent Tester findings,
378
- configuration, known limitations).
389
+ Write `claudedocs/dev-report.md` in the reporting language, following the structure in
390
+ `CLAUDE.md` → "Development Report" (what was built, architecture decisions, agent prompt rationale,
391
+ test coverage, Agent Tester findings, configuration, known limitations).
392
+
393
+ Alongside the full report, produce two companion files in the reporting language:
394
+
395
+ - **`claudedocs/breef-report.md`** — a brief of the work done and problems encountered. Keep it
396
+ short and scannable (not a duplicate of `dev-report.md`): what was implemented, what passed,
397
+ what failed, the key problems in 1–2 lines each. The same content is echoed verbatim to the
398
+ console as part of the "Final report" step below — that is the primary way the user sees it.
399
+ - **`claudedocs/dev-problems.md`** — a focused list of what could NOT be done / tested / connected
400
+ to during this session, plus any open questions, unresolved blockers, or decisions the user
401
+ needs to make. Include: failed external connections (DB, upstream API, AD, Consul, etc.),
402
+ tests that were skipped or disabled and why, missing creds, ambiguous requirements from the
403
+ brief, anything deferred. If there are no problems, write the file anyway with a single
404
+ "No outstanding issues." line so the user can see the check was done.
379
405
 
380
406
  ## Step 10 — Final GitLab push
381
407
 
@@ -386,7 +412,7 @@ implemented feature and pushes it on top of the scaffold commit.
386
412
  content that shouldn't ship to the remote, stash it first:
387
413
 
388
414
  ```
389
- git stash push -u -m "deploy-mcp: pre-final-push stash" -- <paths>
415
+ git stash push -u -m "create-mcp-wizard: pre-final-push stash" -- <paths>
390
416
  ```
391
417
 
392
418
  Leave anything stashed from Step 5 still stashed — if it shouldn't be in the initial commit, it
@@ -423,8 +449,14 @@ Tell the user:
423
449
  (Step 5) and the feature push (Step 10) landed on `main`.
424
450
  3. Summary of tools/resources/prompts/endpoints that were implemented.
425
451
  4. Any flagged limitations from the dev report.
426
- 5. Link to `claudedocs/impl-plan.md`, `claudedocs/test-log.md`, `claudedocs/dev-report.md`.
452
+ 5. Links to `claudedocs/impl-plan.md`, `claudedocs/test-log.md`, `claudedocs/dev-report.md`,
453
+ `claudedocs/breef-report.md`, `claudedocs/dev-problems.md`.
427
454
  6. Anything still stashed from Step 5 / Step 10 (so the user remembers to `git stash pop` or drop).
455
+ 7. **Echo the full contents of `claudedocs/breef-report.md` to the console** (in the reporting
456
+ language, as written). This is the brief of work done + problems — it must appear inline in
457
+ the chat, not only as a file link, so the user can read it without opening the file. If
458
+ `claudedocs/dev-problems.md` contains anything other than "No outstanding issues.", also call
459
+ that out explicitly and point at the file.
428
460
 
429
461
  ## Troubleshooting
430
462
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * Thin wrapper around POST /agent-tester/api/chat/test — used by the deploy-mcp skill
3
+ * Thin wrapper around POST /agent-tester/api/chat/test — used by the create-mcp-wizard skill
4
4
  * to exercise the freshly-built MCP server through the full agent loop.
5
5
  *
6
6
  * Usage:
@@ -107,4 +107,4 @@ const req = http.request({
107
107
  req.on('error', (e) => { console.error(`request error: ${e.message}`); process.exit(1); });
108
108
  req.on('timeout', () => { req.destroy(new Error('timeout')); });
109
109
  req.write(payload);
110
- req.end();
110
+ req.end();
@@ -90,3 +90,4 @@ glm.sh
90
90
  /.serena/
91
91
  /.playwright-mcp/
92
92
  /claudedocs/
93
+ preferred-language.txt
@@ -50,7 +50,7 @@
50
50
  "dependencies": {
51
51
  "@modelcontextprotocol/sdk": "^1.29.0",
52
52
  "dotenv": "^17.4.1",
53
- "fa-mcp-sdk": "^0.4.69"
53
+ "fa-mcp-sdk": "^0.4.70"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/express": "^5.0.6",
@@ -140,7 +140,7 @@ Characteristics:
140
140
 
141
141
  ---
142
142
 
143
- ### `/deploy-mcp` — End-to-End MCP Server Implementation
143
+ ### `/create-mcp-wizard` — End-to-End MCP Server Implementation
144
144
 
145
145
  Orchestrates the full implementation workflow from feature brief to a live GitLab repo. The project
146
146
  must already be scaffolded by the `fa-mcp` CLI — this skill picks up from `yarn install` onwards.
@@ -169,20 +169,25 @@ Pipeline (10 steps):
169
169
 
170
170
  Characteristics:
171
171
 
172
- - **Launch**: **command-only** via `/deploy-mcp`. `disable-model-invocation: true` — does NOT
172
+ - **Launch**: **command-only** via `/create-mcp-wizard`. `disable-model-invocation: true` — does NOT
173
173
  trigger on implicit mentions
174
174
  - **Input**: feature brief comes from the accompanying user message(s) and attached files. OpenAI
175
175
  and GitLab creds may be supplied inline or asked interactively
176
176
  - **Ground rules**: every step explicit and verified; free-form inputs asked in plain prose (never
177
177
  predefined options); exclusions from the brief honoured; dev defaults intentionally lenient;
178
178
  `.claude/`, `deploy/`, `FA-MCP-SDK-DOC/` are NOT modified unless the brief explicitly says to
179
+ - **Reporting language**: all generated artifacts (`claudedocs/*.md`, commit messages, user-facing
180
+ summaries) are written in a language resolved in this order: (1) explicit directive in the
181
+ feature brief, else (2) contents of `preferred-language.txt` in the project root, else
182
+ (3) English. Prose (headings + body) is translated; code, paths, YAML keys, and CLI commands
183
+ stay as-is
179
184
  - **Output**: implemented project + `claudedocs/{impl-plan,test-log,dev-report}.md`, GitLab repo
180
185
  with two commits on `main` (scaffold + feature)
181
186
 
182
187
  **Examples:**
183
188
 
184
189
  ```
185
- /deploy-mcp
186
- /deploy-mcp реализуй инструменты из task.md, OpenAI key sk-..., GitLab group mcp-servers
187
- /deploy-mcp implement tools from the message; repo уже существует, push to git@gitlab.example:ai/mcp-foo.git
190
+ /create-mcp-wizard
191
+ /create-mcp-wizard реализуй инструменты из task.md, OpenAI key sk-..., GitLab group mcp-servers
192
+ /create-mcp-wizard implement tools from the message; repo уже существует, push to git@gitlab.example:ai/mcp-foo.git
188
193
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fa-mcp-sdk",
3
3
  "productName": "FA MCP SDK",
4
- "version": "0.4.69",
4
+ "version": "0.4.70",
5
5
  "description": "Core infrastructure and templates for building Model Context Protocol (MCP) servers with TypeScript",
6
6
  "type": "module",
7
7
  "main": "dist/core/index.js",