connectry-architect-mcp 0.1.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/README.md ADDED
@@ -0,0 +1,751 @@
1
+ <p align="center">
2
+ <br />
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Connectry-io/connectrylab-architect-cert-mcp/master/.github/assets/logo-dark.svg">
5
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/Connectry-io/connectrylab-architect-cert-mcp/master/.github/assets/logo-light.svg">
6
+ <img alt="Architect Cert" src="https://raw.githubusercontent.com/Connectry-io/connectrylab-architect-cert-mcp/master/.github/assets/logo-dark.svg" width="420">
7
+ </picture>
8
+ <br />
9
+ </p>
10
+
11
+ <h3 align="center">
12
+ Ace the Claude Certified Architect exam
13
+ </h3>
14
+
15
+ <p align="center">
16
+ Adaptive certification prep powered by the Model Context Protocol.<br />
17
+ 390 questions. Guided capstone build. 30 concept handouts. 6 reference projects. Practice exams. Spaced repetition. Zero sycophancy.
18
+ </p>
19
+
20
+ <p align="center">
21
+ <a href="https://www.npmjs.com/package/connectry-architect-mcp"><img src="https://img.shields.io/npm/v/connectry-architect-mcp?style=flat&colorA=18181B&colorB=E8784A" alt="npm version"></a>
22
+ <a href="https://www.npmjs.com/package/connectry-architect-mcp"><img src="https://img.shields.io/npm/dm/connectry-architect-mcp?style=flat&colorA=18181B&colorB=E8784A" alt="npm downloads"></a>
23
+ <a href="https://github.com/Connectry-io/connectrylab-architect-cert-mcp"><img src="https://img.shields.io/github/stars/Connectry-io/connectrylab-architect-cert-mcp?style=flat&colorA=18181B&colorB=E8784A" alt="GitHub stars"></a>
24
+ <a href="https://github.com/Connectry-io/connectrylab-architect-cert-mcp/blob/master/LICENSE"><img src="https://img.shields.io/github/license/Connectry-io/connectrylab-architect-cert-mcp?style=flat&colorA=18181B&colorB=E8784A" alt="License"></a>
25
+ </p>
26
+
27
+ <p align="center">
28
+ <a href="#-quick-start">Quick Start</a> •
29
+ <a href="#-features">Features</a> •
30
+ <a href="#-how-it-works">How It Works</a> •
31
+ <a href="#-study-modes">Study Modes</a> •
32
+ <a href="#-guided-capstone-build">Capstone Build</a> •
33
+ <a href="#-reference-projects">Reference Projects</a> •
34
+ <a href="#-concept-handouts">Concept Handouts</a> •
35
+ <a href="#-exam-domains">Exam Domains</a> •
36
+ <a href="#-tools">Tools</a> •
37
+ <a href="#-architecture">Architecture</a>
38
+ </p>
39
+
40
+ ---
41
+
42
+ ## What is Architect Cert?
43
+
44
+ Architect Cert is a free, open-source [MCP](https://modelcontextprotocol.io/) server that turns Claude into your personal certification tutor for the **Claude Certified Architect — Foundations** exam. No courses, no slides, no video lectures — just ask Claude and study.
45
+
46
+ It ships with:
47
+ - **390 scenario-based questions** across all 5 exam domains and 30 task statements
48
+ - **Guided capstone build** — shape your own project, then build it step-by-step while learning every task statement hands-on
49
+ - **30 concept handouts** — one per task statement, with code examples and common mistakes
50
+ - **6 reference projects** — runnable TypeScript codebases demonstrating each domain in practice
51
+ - **Practice exams** — 60-question weighted exams with history tracking and improvement trends
52
+ - **Interactive follow-ups** — wrong answer? Dive into code examples, concept lessons, handouts, or reference projects before moving on
53
+ - **PDF generation** — branded handout PDFs with the Architect Cert logo for offline study
54
+ - **Spaced repetition** — SM-2 algorithm schedules reviews at optimal intervals
55
+ - **Deterministic grading** — pure function grading, no LLM judgment, zero sycophancy
56
+
57
+ Everything runs locally. No cloud, no accounts, no telemetry.
58
+
59
+ <br />
60
+
61
+ ## Quick Start
62
+
63
+ ### 1. Install
64
+
65
+ ```bash
66
+ npm install -g connectry-architect-mcp
67
+ ```
68
+
69
+ ### 2. Configure Your MCP Client
70
+
71
+ <details>
72
+ <summary><b>Claude Code</b> (VS Code / Cursor / Terminal)</summary>
73
+
74
+ Add to `.mcp.json` in your project or `~/.claude.json` globally:
75
+
76
+ ```json
77
+ {
78
+ "mcpServers": {
79
+ "connectry-architect": {
80
+ "command": "connectry-architect-mcp"
81
+ }
82
+ }
83
+ }
84
+ ```
85
+
86
+ Then restart Claude Code. The server starts automatically when Claude loads.
87
+
88
+ </details>
89
+
90
+ <details>
91
+ <summary><b>Claude Desktop</b> — macOS</summary>
92
+
93
+ Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
94
+
95
+ ```json
96
+ {
97
+ "mcpServers": {
98
+ "connectry-architect": {
99
+ "command": "connectry-architect-mcp"
100
+ }
101
+ }
102
+ }
103
+ ```
104
+
105
+ Restart Claude Desktop. You'll see the MCP tools icon appear in the chat input.
106
+
107
+ </details>
108
+
109
+ <details>
110
+ <summary><b>Claude Desktop</b> — Windows</summary>
111
+
112
+ Add to `%APPDATA%\Claude\claude_desktop_config.json`:
113
+
114
+ ```json
115
+ {
116
+ "mcpServers": {
117
+ "connectry-architect": {
118
+ "command": "connectry-architect-mcp"
119
+ }
120
+ }
121
+ }
122
+ ```
123
+
124
+ Restart Claude Desktop. You'll see the MCP tools icon appear in the chat input.
125
+
126
+ </details>
127
+
128
+ <details>
129
+ <summary><b>Any MCP-compatible client</b></summary>
130
+
131
+ Architect Cert works with any client that supports the [Model Context Protocol](https://modelcontextprotocol.io/). Configure it as a stdio server:
132
+
133
+ - **Command:** `connectry-architect-mcp`
134
+ - **Arguments:** none
135
+ - **Transport:** stdio
136
+
137
+ The server exposes 17 tools, 8 prompts, and 3 resource types.
138
+
139
+ </details>
140
+
141
+ ### 3. Start Studying
142
+
143
+ Restart your MCP client and start chatting:
144
+
145
+ | What you want | What to ask Claude |
146
+ |---------------|-------------------|
147
+ | Find your weak areas | *"Start an assessment to figure out where I stand"* |
148
+ | Practice questions | *"Give me a practice question"* |
149
+ | Focus on a domain | *"Give me a question about agentic architecture"* |
150
+ | Learn a concept first | *"Teach me about task 2.3 — tool provisioning"* |
151
+ | Build your own capstone | *"I want to start a guided capstone build"* |
152
+ | Take a practice exam | *"I want to take a practice exam"* |
153
+ | Check your progress | *"Show my study progress"* |
154
+ | Get a study plan | *"What should I study next?"* |
155
+ | Explore a reference project | *"Show me a reference project for domain 1"* |
156
+ | Generate PDF handouts | Run `npm run generate:pdfs` in the project directory |
157
+ | Reset and start over | *"Reset my progress"* |
158
+
159
+ <br />
160
+
161
+ ## Features
162
+
163
+ <table>
164
+ <tr>
165
+ <td width="50%">
166
+
167
+ ### Adaptive Learning
168
+ SM-2 spaced repetition resurfaces weak areas at optimal intervals. Questions you get wrong come back sooner — questions you master fade away.
169
+
170
+ ### 390 Exam Questions
171
+ 13 scenario-based questions per task statement across all 30 topics. Easy, medium, and hard difficulties with balanced answer distributions across A/B/C/D.
172
+
173
+ ### Deterministic Grading
174
+ Pure function grading — no LLM judgment calls. Your answer is checked against a verified key. Right is right, wrong is wrong. Every wrong answer includes a specific explanation.
175
+
176
+ </td>
177
+ <td width="50%">
178
+
179
+ ### Zero Sycophancy
180
+ Claude won't sugarcoat wrong answers. Anti-sycophancy rules are enforced at the protocol level. Wrong means wrong — no "you were on the right track."
181
+
182
+ ### Progress Tracking
183
+ Persistent SQLite database tracks every answer, mastery level, and review schedule. Pick up exactly where you left off across sessions, devices, and MCP clients.
184
+
185
+ ### Smart Question Selection
186
+ Three-priority algorithm: overdue reviews first, then weak areas, then new material. You always work on what matters most for exam readiness.
187
+
188
+ </td>
189
+ </tr>
190
+ <tr>
191
+ <td width="50%">
192
+
193
+ ### Interactive Follow-Ups
194
+ After every answer, you get follow-up options. Got it wrong? Choose to see a code example, read the concept lesson, open the handout, or explore the relevant reference project — then jump back to your quiz.
195
+
196
+ ### Guided Capstone Build
197
+ Shape your own project idea, then build it file-by-file across 18 steps. Each step: quiz on the relevant task statements, Claude generates themed code, then a walkthrough explains how every section maps to exam concepts. Learn by doing.
198
+
199
+ </td>
200
+ <td width="50%">
201
+
202
+ ### 30 Concept Handouts
203
+ Every task statement has a structured handout: concept explanation, TypeScript code example, common mistakes, and documentation references. Available as markdown in Claude or as branded PDFs for offline study.
204
+
205
+ ### 6 Reference Projects
206
+ Runnable TypeScript codebases that demonstrate each domain in practice. A capstone project ties all 5 domains together. Each file maps to specific task statements so you can see concepts in real code.
207
+
208
+ ### Practice Exams
209
+ Full 60-question exams weighted by domain — just like the real certification. Fresh questions each time (no repetition from your last attempt). Scored out of 1000, passing at 720. All attempts saved with per-domain breakdowns.
210
+
211
+ ### PDF Handouts
212
+ Generate branded PDFs for all 30 handouts with `npm run generate:pdfs`. Each PDF includes the Architect Cert logo, domain label, and clean formatting for printing or tablet reading.
213
+
214
+ </td>
215
+ </tr>
216
+ </table>
217
+
218
+ <br />
219
+
220
+ ## How It Works
221
+
222
+ ```
223
+ ┌──────────────────────────────────────────────────────────────────┐
224
+ │ YOUR MACHINE │
225
+ │ │
226
+ │ ┌──────────────┐ ┌──────────────────────────┐ │
227
+ │ │ Claude Desktop│ │ Architect Cert MCP │ │
228
+ │ │ Claude Code │◄─────►│ │ │
229
+ │ │ Any MCP client│ stdio │ 17 tools │ │
230
+ │ └──────────────┘ │ 8 prompts │ │
231
+ │ │ 3 resource types │ │
232
+ │ └──────────┬───────────────┘ │
233
+ │ │ │
234
+ │ ┌─────────────────┼─────────────────┐ │
235
+ │ │ │ │ │
236
+ │ ~/.connectry- 390 questions 6 reference │
237
+ │ architect/ 30 handouts projects │
238
+ │ progress.db (bundled JSON/MD) (bundled TS) │
239
+ │ │
240
+ └──────────────────────────────────────────────────────────────────┘
241
+ ```
242
+
243
+ **The study loop:**
244
+
245
+ 1. **Assessment** — 15 diagnostic questions baseline your knowledge across all 5 domains
246
+ 2. **Path assignment** — Score < 60% gets the beginner-friendly track; score >= 60% gets the exam-weighted track
247
+ 3. **Learn first** — Read the concept handout for a topic before tackling questions (or skip straight to practice)
248
+ 4. **Smart selection** — Each question chosen by priority: overdue reviews > weak areas > new material
249
+ 5. **Deterministic grading** — Pure function checks your answer against the verified key
250
+ 6. **Interactive follow-up** — Wrong answer? Dive into code examples, concept lessons, or reference projects
251
+ 7. **Spaced repetition** — SM-2 algorithm schedules reviews: 1 day > 3 days > 6 days > ...
252
+ 8. **Practice exams** — Take full 60-question exams when you're ready, track improvement over time
253
+
254
+ **Data storage:**
255
+
256
+ - Progress is stored locally at `~/.connectry-architect/progress.db` (SQLite, WAL mode)
257
+ - Your user config lives at `~/.connectry-architect/config.json` (auto-created on first run)
258
+ - No cloud, no accounts, no telemetry — everything stays on your machine
259
+
260
+ <br />
261
+
262
+ ## Study Modes
263
+
264
+ ### Initial Assessment
265
+
266
+ Start with 15 questions across all domains. Based on your score:
267
+
268
+ - **< 60% accuracy** — **Beginner-Friendly Path**: Starts with fundamentals, builds up gradually through each domain. Focuses on easy and medium questions first.
269
+ - **>= 60% accuracy** — **Exam-Weighted Path**: Focuses on high-weight domains first (D1 at 27%, D3 & D4 at 20% each). Targets weak areas aggressively.
270
+
271
+ ### Learn-First Mode
272
+
273
+ Before tackling questions on any topic, you can read the concept handout first:
274
+
275
+ ```
276
+ You: "Teach me about task 1.5 — tool-use hooks"
277
+
278
+ Claude: [loads the concept handout with key concepts, code examples,
279
+ common mistakes, and documentation references]
280
+
281
+ Ready to test your understanding? I have 13 questions
282
+ on this topic ranging from easy to hard.
283
+ ```
284
+
285
+ The server tracks which handouts you've viewed. You can always come back to them later.
286
+
287
+ ### Interactive Follow-Ups
288
+
289
+ After every answer, you get contextual follow-up options:
290
+
291
+ **After a wrong answer:**
292
+ ```
293
+ The correct answer is B. [explanation]
294
+
295
+ > Got it, next question
296
+ > Explain with a code example
297
+ > Show me the concept lesson
298
+ > Show me the handout
299
+ > Show me in the reference project
300
+ ```
301
+
302
+ **After a correct answer:**
303
+ ```
304
+ Correct!
305
+
306
+ > Next question
307
+ > Explain why the others are wrong
308
+ ```
309
+
310
+ Each option dives deeper into the concept — then brings you right back to your quiz. This means you never have to leave your study flow to look something up.
311
+
312
+ ### Adaptive Practice
313
+
314
+ Every question is selected by a three-priority algorithm:
315
+
316
+ 1. **Overdue reviews** — Spaced repetition items due for review today
317
+ 2. **Weak areas** — Topics where your mastery is below 50%
318
+ 3. **New material** — Fresh questions from your recommended domain
319
+
320
+ ### Practice Exams
321
+
322
+ Full 60-question exams that simulate the real certification:
323
+
324
+ | Detail | Value |
325
+ |--------|-------|
326
+ | Total questions | 60 |
327
+ | D1: Agentic Architecture | 16 questions (27%) |
328
+ | D2: Tool Design & MCP | 11 questions (18%) |
329
+ | D3: Claude Code Config | 12 questions (20%) |
330
+ | D4: Prompt Engineering | 12 questions (20%) |
331
+ | D5: Context & Reliability | 9 questions (15%) |
332
+ | Scoring | 0–1000, passing at 720 |
333
+ | Question selection | Fresh set each time — avoids repeating your most recent attempt |
334
+
335
+ All attempts are saved with per-domain score breakdowns and improvement trends.
336
+
337
+ ### Mastery Levels
338
+
339
+ Each of the 30 task statements has an independent mastery level:
340
+
341
+ | Level | Criteria | What it means |
342
+ |-------|----------|---------------|
343
+ | **Unassessed** | No attempts yet | You haven't seen questions on this topic |
344
+ | **Weak** | < 50% accuracy | Needs significant study — questions resurface frequently |
345
+ | **Developing** | 50–69% accuracy | Making progress — keep practicing |
346
+ | **Strong** | 70–89% accuracy | Good understanding — review intervals are longer |
347
+ | **Mastered** | >= 90% accuracy, 5+ attempts, 3+ consecutive correct | Exam-ready — rare reviews |
348
+
349
+ ### Spaced Repetition (SM-2)
350
+
351
+ The [SM-2 algorithm](https://en.wikipedia.org/wiki/SuperMemo#Description_of_SM-2_algorithm) schedules review intervals:
352
+
353
+ - **First review:** 1 day after answering
354
+ - **Second review:** 3 days after first review
355
+ - **Subsequent reviews:** Previous interval x ease factor (starts at 2.5)
356
+ - **Wrong answer:** Interval resets, ease factor decreases by 0.2 (floor: 1.3)
357
+ - **Correct answer:** Ease factor increases by 0.1
358
+
359
+ Difficult questions come back often. Easy ones space out to weeks or months.
360
+
361
+ <br />
362
+
363
+ ## Guided Capstone Build
364
+
365
+ The most hands-on way to learn — build your own project from scratch while covering all 30 task statements. Instead of just answering questions, you architect a real system themed to your own idea.
366
+
367
+ ### How it works
368
+
369
+ The capstone build has three phases:
370
+
371
+ **Phase 1 — Project Shaping**
372
+
373
+ You describe a project idea (e.g., "a multi-agent code review system"). Claude analyzes your idea against all 30 architectural criteria and identifies gaps. You refine together until every task statement is covered.
374
+
375
+ ```
376
+ You: "I want to start a guided capstone build"
377
+
378
+ Claude: [presents the 30 criteria across all 5 domains]
379
+ Describe your project idea and I'll analyze coverage.
380
+
381
+ You: "A multi-agent code review system that analyzes PRs"
382
+
383
+ Claude: Your idea naturally covers 24/30 criteria. To cover the
384
+ remaining 6, I'd suggest adding: [specific suggestions
385
+ mapped to task statements]
386
+ ```
387
+
388
+ **Phase 2 — Interleaved Build (18 steps)**
389
+
390
+ Each step follows the same pattern:
391
+
392
+ 1. **Quiz** — 2-3 questions on the task statements you're about to build
393
+ 2. **Build** — Claude generates the file's code, themed to your project
394
+ 3. **Walkthrough** — Line-by-line explanation mapping code to task statements
395
+
396
+ The 18 steps build incrementally:
397
+
398
+ | Steps | What you build | Task Statements |
399
+ |-------|---------------|-----------------|
400
+ | 1-2 | Project config (CLAUDE.md, package.json) | 3.1-3.4 |
401
+ | 3-5 | MCP server, tools, error handling | 2.1-2.5 |
402
+ | 6-10 | Agentic loop, subagents, hooks, workflows, sessions | 1.1-1.7 |
403
+ | 11-13 | Prompts: system, extraction, batch processing | 4.1-4.6 |
404
+ | 14-18 | Context: preservation, triggers, propagation, scratchpad, confidence | 5.1-5.6 |
405
+
406
+ Every quiz answer feeds into the same spaced repetition and mastery tracking as regular practice.
407
+
408
+ **Phase 3 — Final Review**
409
+
410
+ After step 18, you get a complete coverage map: all 30 task statements, where each is demonstrated in your project, and your quiz performance per domain. Weak areas are flagged for further study.
411
+
412
+ ### Capstone build tools
413
+
414
+ | Tool | What it does |
415
+ |------|-------------|
416
+ | `start_capstone_build` | See the 30 criteria, describe your theme, refine until coverage is complete |
417
+ | `capstone_build_step` | Drive the build: confirm, quiz, build, next, status, or abandon |
418
+ | `capstone_build_status` | Check your progress — current step, criteria coverage, quiz performance |
419
+
420
+ ### How it connects to everything else
421
+
422
+ - Quiz answers during the build use the same `submit_answer` grading and SM-2 scheduling
423
+ - After any quiz question, you can use the same follow-up options (code example, concept lesson, handout, reference project)
424
+ - The reference projects show how the capstone structure looks when complete
425
+ - Progress persists across sessions — pick up where you left off
426
+
427
+ <br />
428
+
429
+ ## Reference Projects
430
+
431
+ Architect Cert includes **6 complete reference projects** — runnable TypeScript codebases that demonstrate certification concepts in real code. Every file has a header comment mapping it to specific task statements.
432
+
433
+ | Project | Focus | Files | What You'll See |
434
+ |---------|-------|-------|-----------------|
435
+ | **Capstone** | All 5 domains | 24 | Full multi-agent support system with MCP server, coordinator, subagents, prompt engineering, context management, and hooks |
436
+ | **D1 — Agentic Loop** | Domain 1 | 10 | Multi-agent research coordinator with agentic loops, subagent spawning, hooks, session management, and task decomposition |
437
+ | **D2 — Tool Design** | Domain 2 | 12 | MCP server with split tools, structured errors, agent-scoped tool distribution, resources, and built-in tool patterns |
438
+ | **D3 — Claude Code Config** | Domain 3 | 14 | Complete config reference: CLAUDE.md hierarchy, slash commands, path rules, CI/CD workflows — not runnable code, but a real config layout |
439
+ | **D4 — Prompt Engineering** | Domain 4 | 11 | Data extraction pipeline with explicit criteria, few-shot, structured output, validation-retry, batch processing, and multi-pass review |
440
+ | **D5 — Context Manager** | Domain 5 | 14 | Long-session patterns: context preservation, scratchpad, subagent delegation, escalation, error propagation, confidence calibration, provenance |
441
+
442
+ ### How to access them
443
+
444
+ Ask Claude:
445
+
446
+ ```
447
+ You: "Show me a reference project for domain 1"
448
+
449
+ Claude: [calls scaffold_project, returns the project README,
450
+ file listing, and architecture walkthrough]
451
+ ```
452
+
453
+ Or browse them directly in the repo under `projects/`.
454
+
455
+ ### How they connect to the study flow
456
+
457
+ When you get a question wrong, one of the follow-up options is **"Show me in the reference project"** — this takes you straight to the relevant domain project so you can see the concept implemented in real code. Then you jump back to your quiz.
458
+
459
+ <br />
460
+
461
+ ## Concept Handouts
462
+
463
+ Every task statement has a **concept handout** — a structured study document (~500-800 words) that covers:
464
+
465
+ - **Concept** — The core idea, mental model, and when/why to use it
466
+ - **Code Example** — Realistic TypeScript demonstrating the pattern
467
+ - **Common Mistakes** — The 3-5 most frequent errors (which map to exam wrong answers)
468
+ - **References** — Links to Anthropic's official documentation
469
+
470
+ ### Reading handouts in Claude
471
+
472
+ ```
473
+ You: "Show me the handout for task 2.3"
474
+
475
+ Claude: [loads the full handout with concept, code, mistakes, references]
476
+ ```
477
+
478
+ ### Generating PDF handouts
479
+
480
+ You can generate branded PDFs for all 30 handouts for offline study:
481
+
482
+ ```bash
483
+ cd connectrylab-architect-cert-mcp
484
+ npm run generate:pdfs
485
+ ```
486
+
487
+ This creates 30 PDFs in `generated/handouts/` with:
488
+ - Architect Cert logo and domain label in the header
489
+ - Clean formatting with syntax-highlighted code blocks
490
+ - "Connectry LABS — Claude Certified Architect Exam Prep — Free & Open Source" footer
491
+
492
+ <br />
493
+
494
+ ## Exam Domains
495
+
496
+ The Claude Certified Architect — Foundations exam covers 5 domains:
497
+
498
+ | # | Domain | Weight | Tasks | Questions |
499
+ |---|--------|--------|-------|-----------|
500
+ | 1 | Agentic Architecture & Orchestration | 27% | 7 | 91 |
501
+ | 2 | Tool Design & MCP Integration | 18% | 5 | 65 |
502
+ | 3 | Claude Code Configuration & Workflows | 20% | 6 | 78 |
503
+ | 4 | Prompt Engineering & Structured Output | 20% | 6 | 78 |
504
+ | 5 | Context Management & Reliability | 15% | 6 | 78 |
505
+ | | **Total** | **100%** | **30** | **390** |
506
+
507
+ ### 30 Task Statements
508
+
509
+ <details>
510
+ <summary><b>Domain 1 — Agentic Architecture & Orchestration</b> (7 tasks, 91 questions)</summary>
511
+
512
+ | Task | Description |
513
+ |------|-------------|
514
+ | 1.1 | Design and implement agentic loops for autonomous task execution |
515
+ | 1.2 | Orchestrate multi-agent systems with coordinator-subagent patterns |
516
+ | 1.3 | Configure subagent invocation, context passing, and spawning |
517
+ | 1.4 | Implement multi-step workflows with enforcement and handoff patterns |
518
+ | 1.5 | Apply Agent SDK hooks for tool call interception and data normalization |
519
+ | 1.6 | Design task decomposition strategies for complex workflows |
520
+ | 1.7 | Manage session state, resumption, and forking |
521
+
522
+ </details>
523
+
524
+ <details>
525
+ <summary><b>Domain 2 — Tool Design & MCP Integration</b> (5 tasks, 65 questions)</summary>
526
+
527
+ | Task | Description |
528
+ |------|-------------|
529
+ | 2.1 | Design effective tool interfaces with clear descriptions and boundaries |
530
+ | 2.2 | Implement structured error responses for MCP tools |
531
+ | 2.3 | Distribute tools appropriately across agents and configure tool choice |
532
+ | 2.4 | Integrate MCP servers into Claude Code and agent workflows |
533
+ | 2.5 | Select and apply built-in tools effectively |
534
+
535
+ </details>
536
+
537
+ <details>
538
+ <summary><b>Domain 3 — Claude Code Configuration & Workflows</b> (6 tasks, 78 questions)</summary>
539
+
540
+ | Task | Description |
541
+ |------|-------------|
542
+ | 3.1 | Configure CLAUDE.md files with appropriate hierarchy and scoping |
543
+ | 3.2 | Create and configure custom slash commands and skills |
544
+ | 3.3 | Apply path-specific rules for conditional convention loading |
545
+ | 3.4 | Determine when to use plan mode vs direct execution |
546
+ | 3.5 | Apply iterative refinement techniques for progressive improvement |
547
+ | 3.6 | Integrate Claude Code into CI/CD pipelines |
548
+
549
+ </details>
550
+
551
+ <details>
552
+ <summary><b>Domain 4 — Prompt Engineering & Structured Output</b> (6 tasks, 78 questions)</summary>
553
+
554
+ | Task | Description |
555
+ |------|-------------|
556
+ | 4.1 | Design prompts with explicit criteria to improve precision |
557
+ | 4.2 | Apply few-shot prompting to improve output consistency |
558
+ | 4.3 | Enforce structured output using tool use and JSON schemas |
559
+ | 4.4 | Implement validation, retry, and feedback loops |
560
+ | 4.5 | Design efficient batch processing strategies |
561
+ | 4.6 | Design multi-instance and multi-pass review architectures |
562
+
563
+ </details>
564
+
565
+ <details>
566
+ <summary><b>Domain 5 — Context Management & Reliability</b> (6 tasks, 78 questions)</summary>
567
+
568
+ | Task | Description |
569
+ |------|-------------|
570
+ | 5.1 | Manage conversation context to preserve critical information |
571
+ | 5.2 | Design effective escalation and ambiguity resolution patterns |
572
+ | 5.3 | Implement error propagation strategies across multi-agent systems |
573
+ | 5.4 | Manage context effectively in large codebase exploration |
574
+ | 5.5 | Design human review workflows and confidence calibration |
575
+ | 5.6 | Preserve information provenance and handle uncertainty in synthesis |
576
+
577
+ </details>
578
+
579
+ <br />
580
+
581
+ ## Tools
582
+
583
+ Architect Cert provides **17 MCP tools** that Claude uses to deliver the study experience:
584
+
585
+ | Tool | Description |
586
+ |------|-------------|
587
+ | `start_assessment` | Begin with 15 diagnostic questions to determine your learning path |
588
+ | `get_practice_question` | Get the next adaptive question (reviews > weak areas > new material) |
589
+ | `submit_answer` | Grade your answer deterministically — includes interactive follow-up options |
590
+ | `follow_up` | Handle post-answer actions: code examples, concept lessons, handouts, reference projects |
591
+ | `get_progress` | View overall study progress with mastery percentages per domain |
592
+ | `get_curriculum` | Browse all 5 domains and 30 task statements with current mastery levels |
593
+ | `get_section_details` | Deep dive into a specific task statement with concept lesson |
594
+ | `get_weak_areas` | Identify topics that need the most work, ranked by weakness |
595
+ | `get_study_plan` | Get personalized recommendations based on performance and exam weights |
596
+ | `start_practice_exam` | Take a full 60-question practice exam simulating the real certification |
597
+ | `submit_exam_answer` | Submit and grade answers during a practice exam |
598
+ | `get_exam_history` | View all past exam attempts with scores, trends, and per-domain comparison |
599
+ | `scaffold_project` | Access reference projects for hands-on practice with real code |
600
+ | `start_capstone_build` | Start a guided capstone build — shape your project and validate criteria coverage |
601
+ | `capstone_build_step` | Drive the capstone build: confirm, quiz, build, next, status, or abandon |
602
+ | `capstone_build_status` | Check capstone build progress — current step, coverage, quiz performance |
603
+ | `reset_progress` | Start over — requires explicit confirmation to prevent accidents |
604
+
605
+ The server also registers **8 interactive prompts** and **3 resource types** (concept handouts, reference projects, exam overview).
606
+
607
+ <br />
608
+
609
+ ## Architecture
610
+
611
+ ```
612
+ Claude (UI) <-> MCP Server (stdio) <-> Core Engine <-> SQLite
613
+ ```
614
+
615
+ | Component | Technology | Purpose |
616
+ |-----------|-----------|---------|
617
+ | MCP Server | `@modelcontextprotocol/sdk` v1 | Registers tools, prompts, resources over stdio |
618
+ | Grading Engine | Pure TypeScript functions | Deterministic answer verification |
619
+ | Spaced Repetition | SM-2 algorithm | Optimal review scheduling |
620
+ | Follow-Up System | State-driven tool chain | Interactive post-answer detours |
621
+ | Capstone Build Engine | 18-step interleaved builder | Guided learn-build-explain flow with LLM validation |
622
+ | Question Bank | 390 bundled JSON questions | Scenario-based, verified against docs |
623
+ | Concept Handouts | 30 bundled markdown files | Structured study materials per task statement |
624
+ | Reference Projects | 6 bundled TypeScript projects | Runnable code demonstrating each domain |
625
+ | PDF Generator | `pdfkit` | Branded handout PDFs for offline study |
626
+ | Progress Store | `better-sqlite3` (WAL mode) | Persistent mastery, answers, schedules |
627
+
628
+ ### Anti-Sycophancy Design
629
+
630
+ This server enforces honest grading at the protocol level — not just in prompts:
631
+
632
+ 1. **Deterministic grading** — `gradeAnswer()` is a pure function. No LLM is involved in judging correctness.
633
+ 2. **Tool-level enforcement** — The `submit_answer` tool description instructs Claude to relay results verbatim.
634
+ 3. **No partial credit** — Multiple choice, one correct answer. No "you were on the right track."
635
+ 4. **Wrong answer explanations** — Every incorrect option has a specific `whyWrongMap` entry explaining the misconception.
636
+ 5. **System prompt rules** — Five anti-sycophancy directives prevent Claude from softening incorrect results.
637
+
638
+ <br />
639
+
640
+ ## Question Bank Details
641
+
642
+ | Metric | Value |
643
+ |--------|-------|
644
+ | Total questions | 390 |
645
+ | Domains covered | 5 |
646
+ | Task statements covered | 30 |
647
+ | Questions per task statement | 13 |
648
+ | Difficulty distribution | ~4 easy, 5 medium, ~4 hard per task |
649
+ | Answer key balance | Distributed across A/B/C/D |
650
+ | Question format | Scenario-based multiple choice |
651
+ | Each question includes | Scenario, question, 4 options, explanation, why-wrong-map, references |
652
+ | Source material | Anthropic official documentation |
653
+
654
+ <br />
655
+
656
+ ## Contributing
657
+
658
+ We welcome contributions! Here's how to get started:
659
+
660
+ ```bash
661
+ # Clone the repo
662
+ git clone https://github.com/Connectry-io/connectrylab-architect-cert-mcp.git
663
+ cd connectrylab-architect-cert-mcp
664
+
665
+ # Install dependencies
666
+ npm install
667
+
668
+ # Build
669
+ npm run build
670
+
671
+ # Run tests (30 tests across 6 test files)
672
+ npm test
673
+
674
+ # Generate PDF handouts
675
+ npm run generate:pdfs
676
+
677
+ # Run locally
678
+ node dist/index.js
679
+ ```
680
+
681
+ ### Project Structure
682
+
683
+ ```
684
+ src/
685
+ ├── index.ts # MCP server entry point
686
+ ├── config.ts # User config management
687
+ ├── types.ts # All TypeScript interfaces
688
+ ├── data/
689
+ │ ├── loader.ts # Lazy-cached data loading
690
+ │ ├── curriculum.json # 30 task statements
691
+ │ ├── questions/ # 390 questions (5 domain files)
692
+ │ ├── handouts/ # 30 concept handouts (markdown)
693
+ │ ├── criteria.ts # 30 task statement criteria for capstone validation
694
+ │ ├── build-steps.ts # 18 capstone build step definitions
695
+ │ └── system-prompt.ts # Anti-sycophancy rules
696
+ ├── db/
697
+ │ ├── schema.ts # SQLite schema (9 tables)
698
+ │ ├── store.ts # Database initialization
699
+ │ ├── mastery.ts # Mastery level calculations
700
+ │ ├── answers.ts # Answer recording
701
+ │ ├── capstone.ts # Capstone build CRUD operations
702
+ │ └── exam-attempts.ts # Practice exam tracking
703
+ ├── engine/
704
+ │ ├── grading.ts # Deterministic grading
705
+ │ ├── spaced-repetition.ts # SM-2 algorithm
706
+ │ ├── question-selector.ts # Priority-based selection
707
+ │ ├── exam-builder.ts # Practice exam generation
708
+ │ └── adaptive-path.ts # Learning path recommendations
709
+ ├── tools/ # 17 MCP tool handlers
710
+ ├── prompts/ # 8 MCP prompt definitions
711
+ └── resources/ # 3 MCP resource types
712
+
713
+ projects/
714
+ ├── capstone/ # All 5 domains — multi-agent support system
715
+ ├── d1-agentic/ # Domain 1 — agentic loop research coordinator
716
+ ├── d2-tools/ # Domain 2 — MCP server with tool patterns
717
+ ├── d3-config/ # Domain 3 — Claude Code configuration layout
718
+ ├── d4-prompts/ # Domain 4 — extraction & prompt engineering
719
+ └── d5-context/ # Domain 5 — context management & reliability
720
+
721
+ scripts/
722
+ └── generate-pdfs.ts # PDF handout generator
723
+ ```
724
+
725
+ <br />
726
+
727
+ ## License
728
+
729
+ MIT © [Connectry Labs](https://connectry.io/labs)
730
+
731
+ <br />
732
+
733
+ ## Credits
734
+
735
+ - [Anthropic](https://anthropic.com) — Claude & the Claude Certified Architect certification program
736
+ - [Model Context Protocol](https://modelcontextprotocol.io/) — The protocol that makes this possible
737
+ - [better-sqlite3](https://github.com/WiseLibs/better-sqlite3) — Fast, synchronous SQLite for Node.js
738
+
739
+ <br />
740
+
741
+ ---
742
+
743
+ <p align="center">
744
+ <sub>Built with care by <a href="https://connectry.io/labs">Connectry Labs</a></sub>
745
+ </p>
746
+
747
+ <p align="center">
748
+ <a href="https://github.com/Connectry-io/connectrylab-architect-cert-mcp">GitHub</a> •
749
+ <a href="https://www.npmjs.com/package/connectry-architect-mcp">npm</a> •
750
+ <a href="https://connectry.io/labs">Website</a>
751
+ </p>