claude-faf-mcp 2.1.0 → 2.2.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 (65) hide show
  1. package/.faf +121 -184
  2. package/CHANGELOG.md +43 -0
  3. package/CLAUDE.md +19 -325
  4. package/README.md +21 -13
  5. package/dist/src/cli.d.ts +2 -0
  6. package/dist/{cli.js → src/cli.js} +1 -1
  7. package/dist/src/cli.js.map +1 -0
  8. package/dist/src/handlers/behavioral-instruction.d.ts +16 -0
  9. package/dist/src/handlers/behavioral-instruction.js +43 -0
  10. package/dist/src/handlers/behavioral-instruction.js.map +1 -0
  11. package/dist/src/handlers/championship-tools.d.ts +79 -0
  12. package/dist/src/handlers/championship-tools.js +1848 -0
  13. package/dist/src/handlers/championship-tools.js.map +1 -0
  14. package/dist/{handlers → src/handlers}/engine-adapter.d.ts +0 -1
  15. package/dist/src/handlers/engine-adapter.js.map +1 -0
  16. package/dist/{handlers → src/handlers}/fileHandler.d.ts +0 -1
  17. package/dist/src/handlers/fileHandler.js.map +1 -0
  18. package/dist/{handlers → src/handlers}/resources.d.ts +0 -1
  19. package/dist/{handlers → src/handlers}/resources.js +19 -0
  20. package/dist/src/handlers/resources.js.map +1 -0
  21. package/dist/{handlers → src/handlers}/tools.d.ts +2 -1
  22. package/dist/{handlers → src/handlers}/tools.js +93 -6
  23. package/dist/src/handlers/tools.js.map +1 -0
  24. package/dist/{server.d.ts → src/server.d.ts} +3 -5
  25. package/dist/{server.js → src/server.js} +6 -8
  26. package/dist/src/server.js.map +1 -0
  27. package/dist/src/test-all-functions.d.ts +15 -0
  28. package/dist/src/test-all-functions.js +163 -0
  29. package/dist/src/test-all-functions.js.map +1 -0
  30. package/dist/src/utils/championship-format.d.ts +30 -0
  31. package/dist/src/utils/championship-format.js +79 -0
  32. package/dist/src/utils/championship-format.js.map +1 -0
  33. package/dist/src/utils/display-protocol.d.ts +32 -0
  34. package/dist/src/utils/display-protocol.js +92 -0
  35. package/dist/src/utils/display-protocol.js.map +1 -0
  36. package/dist/{utils → src/utils}/visual-style.d.ts +0 -1
  37. package/dist/src/utils/visual-style.js.map +1 -0
  38. package/package.json +23 -7
  39. package/src/cli.ts +1 -1
  40. package/src/handlers/behavioral-instruction.ts +41 -0
  41. package/src/handlers/championship-tools.ts +1940 -0
  42. package/src/handlers/resources.ts +22 -1
  43. package/src/handlers/tools.ts +98 -6
  44. package/src/server.ts +7 -9
  45. package/src/test-all-functions.ts +177 -0
  46. package/src/utils/championship-format.ts +85 -0
  47. package/src/utils/display-protocol.ts +100 -0
  48. package/dist/cli.d.ts +0 -3
  49. package/dist/cli.d.ts.map +0 -1
  50. package/dist/cli.js.map +0 -1
  51. package/dist/handlers/engine-adapter.d.ts.map +0 -1
  52. package/dist/handlers/engine-adapter.js.map +0 -1
  53. package/dist/handlers/fileHandler.d.ts.map +0 -1
  54. package/dist/handlers/fileHandler.js.map +0 -1
  55. package/dist/handlers/resources.d.ts.map +0 -1
  56. package/dist/handlers/resources.js.map +0 -1
  57. package/dist/handlers/tools.d.ts.map +0 -1
  58. package/dist/handlers/tools.js.map +0 -1
  59. package/dist/server.d.ts.map +0 -1
  60. package/dist/server.js.map +0 -1
  61. package/dist/utils/visual-style.d.ts.map +0 -1
  62. package/dist/utils/visual-style.js.map +0 -1
  63. /package/dist/{handlers → src/handlers}/engine-adapter.js +0 -0
  64. /package/dist/{handlers → src/handlers}/fileHandler.js +0 -0
  65. /package/dist/{utils → src/utils}/visual-style.js +0 -0
package/.faf CHANGED
@@ -1,184 +1,121 @@
1
- ## Project Context
2
-
3
- **Name**: FAF MCP Desktop Server
4
- **Version**: 2.0.0
5
- **Type**: TypeScript MCP Server for Claude Desktop
6
- **Philosophy**: F1-Inspired Software Engineering
7
- **Status**: 🍊 105% Big Orange - Championship Mode!
8
- **Signature**: 🏎️⚡ wolfejam way
9
-
10
- ### Architecture Overview
11
- MCP (Model Context Protocol) server that provides FAF tools to Claude Desktop. Built with TypeScript, designed for desktop-native operation without CLI dependencies.
12
-
13
- ### Core Features
14
- - **Desktop-Native Operations**: File read/write without external CLI ⚡
15
- - **Built-in Scoring**: Native FAF score calculation (99% technical max) 🏁
16
- - **Performance Telemetry**: All operations <10ms (achieved 0-1ms!) ⚡ ⌚
17
- - **Graceful Degradation**: Enhanced features when CLI available
18
-
19
- ### Technical Stack
20
- - **Language**: TypeScript 5.3+
21
- - **Runtime**: Node.js 18+
22
- - **Protocol**: MCP via stdio/SSE
23
- - **Testing**: Jest + Custom Championship Suite
24
- - **Build**: tsc (TypeScript Compiler)
25
-
26
- ### Brand System
27
-
28
- #### Colors (HEX)
29
- - **Orange** `#ff6b35`: Human trust elements 🧡
30
- - **Cyan** `#00ffff`: AI-happy elements 🩵
31
- - **Green** `#00bf63`: FAF success/safety 💚
32
- - **Cream** `#FEFCF8`: Background warmth
33
- - **Dark** `#1a1a1a`: Terminal/text
34
-
35
- #### Emoji Language (OFFICIAL - COMPLETE)
36
- - 🍊 = Big Orange Achievement (105% Status ONLY)
37
- - 🧡 = Human Trust in FAF
38
- - 🩵 = AI-Happy
39
- - 💚 = FAF Success
40
- - ⚡ = ACTION (we use this A LOT!)
41
- - 🏁 = Finish/Success
42
- - 🏆 = Win/Podium
43
- - 🏎️ = F1-Inspired Speed
44
- - ⌚ = Timing (performance metrics, benchmarks)
45
- - 🤖 = AI/Tech
46
- - ☑️ = Checkmark (PREFERRED over ✅)
47
- - 🏎️⚡ = wolfejam signature (always together!)
48
-
49
- #### Important Notes:
50
- - **PREFER ☑️ over ✅** (we accept green checkmarks happen, but ☑️ is wolfejam preferred)
51
- - **⌚ for all timing/performance discussions**
52
- - **⚡ is ACTION not just speed**
53
- - **🏎️⚡ never separate these**
54
-
55
- ### Performance Metrics ⌚
56
- - File Read: 1ms 🏁
57
- - File Write: 0ms ⚡
58
- - Score Calculation: ~3ms 🏁
59
- - Debug Operations: <10ms 🏁
60
- - JSON Parse: 0ms
61
- - Status: ALL OPERATIONS SUCCESSFUL 🏆
62
-
63
- ### Development Approach
64
- - Domain modeling first ⚡
65
- - Working backwards from goals 🏁
66
- - 3 bullet point summaries
67
- - Racing analogies for complex concepts 🏎️
68
- - Component-first design for monetization 🏆
69
-
70
- ## AI Collaboration Instructions
71
-
72
- You're working on a championship-quality MCP server. Key principles:
73
-
74
- 1. **Speed & Action**: Every operation must be optimized. Current benchmarks show 0-1ms operations ⌚ - maintain this standard. Use ⚡ for actions and energy.
75
-
76
- 2. **Color & Emoji Consistency**:
77
- - Orange `#ff6b35` + 🧡 for human trust/interactions
78
- - Cyan `#00ffff` + 🩵 for AI happiness/tech displays
79
- - Green `#00bf63` + 💚 for success states
80
- - 🍊 ONLY for 105% Big Orange achievement
81
- - ⚡ for taking ACTION (use liberally!)
82
- - 🏁 for finish/success
83
- - 🏆 for wins/podium
84
- - ⌚ for timing/performance
85
- - ☑️ preferred over ✅
86
- - 🏎️⚡ together for wolfejam signature
87
-
88
- 3. **Desktop Independence**: Core features (read/write/score/debug) work WITHOUT the FAF CLI. This is proven and must be maintained. 🏁
89
-
90
- 4. **Championship Quality**: Don't just pass tests - set records. Current: 100% pass rate, <10ms all operations ⌚. Aim for podium 🏆.
91
-
92
- 5. **Component Excellence**: Build reusable components for Gallery-Svelte monetization. Target the component store from day one ⚡.
93
-
94
- ## Project Structure
95
-
96
- ```
97
- /claude-faf-mcp/
98
- ├── src/
99
- │ ├── server.ts # Main MCP server
100
- │ ├── cli.ts # CLI entry point
101
- │ ├── handlers/
102
- │ │ ├── tools.ts # Tool implementations ⚡
103
- │ │ ├── resources.ts # Resource handlers
104
- │ │ ├── engine-adapter.ts # FAF CLI bridge
105
- │ │ └── fileHandler.ts # Native file ops ⚡
106
- │ └── types/
107
- ├── dist/ # Compiled output
108
- ├── tests/
109
- │ ├── desktop-native-validation.test.ts
110
- │ └── [multiple test suites]
111
- ├── package.json # Dependencies
112
- ├── tsconfig.json # TypeScript config
113
- ├── CLAUDE.md # AI instructions (CRITICAL!)
114
- └── [championship test files] 🏆
115
- ```
116
-
117
- ## Testing & Validation
118
-
119
- ### Desktop Championship Tests
120
- - Location: `/Users/wolfejam/faf-test-environment/`
121
- - Script: `MCP_DESKTOP_CHAMPIONSHIP_SUITE.sh` ⚡
122
- - Pass Rate: 100% (8/8 tests) 🏆
123
- - Performance: All <10ms ⚡ ⌚
124
- - Status: CHAMPIONSHIP MODE 🏁
125
-
126
- ### Integration Points
127
- - Claude Desktop: Validated ☑️
128
- - Big-3 Testing Center: Integrated ☑️
129
- - Performance Benchmarks: Exceeded 🏆
130
- - Security: Hardened ☑️
131
-
132
- ## Success Metrics
133
-
134
- ### Technical
135
- - Desktop Independence: PROVEN 🏁
136
- - Performance: 0-1ms operations ⚡ ⌚
137
- - Test Coverage: 100% 🏆
138
- - Type Safety: Complete ☑️
139
-
140
- ### Satisfaction
141
- - Human Trust: 🧡 Complete
142
- - AI Happiness: 🩵 Maximum
143
- - Production Ready: Yes 🏁
144
- - NPM Publishable: Yes ⚡
145
- - Component Store Path: Clear 🏆
146
-
147
- ## Current Status
148
-
149
- **Achievement Unlocked**: 🍊 105% Big Orange Championship Mode!
150
-
151
- This status indicates:
152
- - Perfect test scores (100%) 🏆
153
- - Sub-10ms performance ⚡ ⌚
154
- - Rich documentation with emoji language
155
- - Championship engineering 🏎️⚡
156
- - Beyond standard excellence 🍊
157
-
158
- ## Next Goals
159
-
160
- 1. **⚡ 110% Titanium Orange**: All operations <5ms ⌚ (ACTION!)
161
- 2. **🩵 115% Quantum Orange**: Anthropic reference implementation
162
- 3. **🤖 120% Singularity Orange**: Self-improving AI collaboration
163
-
164
- ## Checklist ☑️
165
-
166
- - ☑️ Desktop-native proven
167
- - ☑️ Performance optimized
168
- - ☑️ Colors documented
169
- - ☑️ Emojis defined
170
- - ☑️ Tests passing
171
- - ☑️ Big Orange achieved
172
- - ☑️ wolfejam way applied
173
-
174
- ---
175
-
176
- Remember: We're not just building software. We're setting championship standards.
177
- Every line of code follows the F1-Inspired philosophy:
178
- - Best Engineering
179
- - Built for Speed 🏎️
180
- - Award-Winning Intent 🏆
181
-
182
- Take ACTION ⚡, TIME it perfectly ⌚, FINISH strong 🏁, WIN podiums 🏆!
183
-
184
- 🏎️⚡ The Wolfejam Way - Speed + Action + Perfect Timing = Championship Software! 🧡🩵💚🍊
1
+ ai_scoring_system: 2025-09-17
2
+ ai_score: 100%
3
+ ai_confidence: VERY_HIGH
4
+ ai_value: Universal_MCP_server_for_Claude_Desktop
5
+ ai_tldr:
6
+ project: claude-faf-mcp
7
+ stack: Node.js/TypeScript
8
+ quality_bar: CHAMPIONSHIP_STANDARDS
9
+ current_focus: MCP visibility and PODIUM system
10
+ your_role: Build and enhance MCP tools
11
+ instant_context:
12
+ what_building: Universal FAF MCP Server for Claude Desktop - AI Context Intelligence
13
+ tech_stack: Node.js/TypeScript
14
+ main_language: TypeScript
15
+ deployment: npm/Claude Desktop
16
+ key_files:
17
+ - src/server.ts
18
+ - src/handlers/championship-tools.ts
19
+ - package.json
20
+ context_quality:
21
+ slots_filled: 21/21 (100%)
22
+ ai_confidence: VERY_HIGH
23
+ handoff_ready: true
24
+ missing_context: []
25
+ project:
26
+ name: claude-faf-mcp
27
+ goal: Provide FAF context tools directly in Claude Desktop via MCP
28
+ main_language: TypeScript
29
+ generated: 2025-09-17T21:40:00.000Z
30
+ mission: Make FAF scorecards visible in Claude conversations
31
+ revolution: No more hidden outputs - show the scores!
32
+ brand: PODIUM System - 85% Bronze, 95% Silver, 99% Gold, 105% Trophy
33
+ enhanced_date: 2025-09-17T21:40:00.000Z
34
+ enhanced_by: faf-auto
35
+ ai_instructions:
36
+ priority_order:
37
+ - 1. Read THIS .faf file first
38
+ - 2. Check CLAUDE.md for session context
39
+ - 3. Review src/handlers/championship-tools.ts for core logic
40
+ working_style:
41
+ code_first: true
42
+ explanations: minimal
43
+ quality_bar: championship
44
+ testing: required
45
+ warnings:
46
+ - Always display outputs in conversation
47
+ - Never hide scorecards in collapsed sections
48
+ - Test coverage required for new features
49
+ stack:
50
+ frontend: None
51
+ css_framework: None
52
+ ui_library: None
53
+ state_management: None
54
+ backend: Node.js
55
+ runtime: Node.js
56
+ database: None
57
+ build: TypeScript
58
+ package_manager: npm
59
+ api_type: MCP
60
+ hosting: Claude Desktop
61
+ cicd: Jest
62
+ preferences:
63
+ quality_bar: championship
64
+ commit_style: conventional_emoji
65
+ response_style: concise_code_first
66
+ explanation_level: minimal
67
+ communication: direct
68
+ testing: required
69
+ documentation: as_needed
70
+ state:
71
+ phase: production
72
+ version: 2.2.2
73
+ focus: visibility_victory
74
+ status: green_flag
75
+ next_milestone: anthropic_submission
76
+ blockers: null
77
+ tags:
78
+ auto_generated:
79
+ - claude-faf-mcp
80
+ - mcp
81
+ - typescript
82
+ smart_defaults:
83
+ - .faf
84
+ - ai-ready
85
+ - 2025
86
+ - software
87
+ - open-source
88
+ user_defined:
89
+ - podium
90
+ - visibility
91
+ - championship
92
+ human_context:
93
+ who: Claude Desktop users
94
+ what: MCP server providing FAF tools
95
+ why: Make AI context visible and useful
96
+ where: Claude Desktop
97
+ when: Real-time
98
+ how: MCP protocol
99
+ additional_context:
100
+ what:
101
+ - PODIUM scoring system
102
+ - Visibility improvements
103
+ why:
104
+ - Show scorecards in conversation
105
+ - No more hidden outputs
106
+ context_score: 100
107
+ total_prd_score: 100
108
+ success_rate: 96%
109
+ ai_scoring_details:
110
+ system_date: 2025-09-17
111
+ slot_based_percentage: 100
112
+ ai_score: 100
113
+ total_slots: 21
114
+ filled_slots: 21
115
+ scoring_method: Honest percentage - no fake minimums
116
+ trust_embedded: PODIUM architecture - Bronze/Silver/Gold/Trophy
117
+ projectName: claude-faf-mcp
118
+ projectGoal: 🏎️ FAF MCP - ALWAYS SHOW AI-READINESS SCORE! Universal AI context
119
+ management with .faf format. 33+ tools for Claude Desktop. Every command shows
120
+ AI-Readiness score. Drop file → Type 'faf' → 99% ready! ZERO FAF INNIT! 🏎️⚡
121
+ generated: 2025-09-17T22:11:26.607Z
package/CHANGELOG.md CHANGED
@@ -5,6 +5,49 @@ All notable changes to the Claude FAF MCP Server will be documented in this file
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.2.2] - 2025-09-17 - The Visibility Victory Release 🏎️
9
+
10
+ ### 🏆 THE BREAKTHROUGH
11
+ - **SCORECARDS ARE NOW VISIBLE!** No more hidden outputs in function_results
12
+ - Implemented behavioral instruction that tells Claude to always show scores
13
+ - Clean display without wrapper tags - just pure markdown beauty
14
+ - The "handshake agreement" that actually works!
15
+
16
+ ### ✅ Added
17
+ - Behavioral instruction system (`behavioral-instruction.ts`)
18
+ - Automatic display of all FAF outputs in conversation
19
+ - Clean markdown output without wrapper tags
20
+ - "User needs: Score, Description constantly" - and now they get it!
21
+
22
+ ### 🩵⚡️🧡 The Philosophy
23
+ - **Trust:** Claude wants to help, just needed permission
24
+ - **Speed:** Fixed in hours, not months
25
+ - **Heart:** Made for users who said "show me the card in the conversation I'm paying for"
26
+
27
+ ### 📸 Proven
28
+ - Tested live with Heritage Club Dubai project
29
+ - Screenshots confirm: IT'S FUCKING WORKING!
30
+ - "If Carlsberg did MCP's..." - they'd make this
31
+
32
+ ### The Bottom Line
33
+ While waiting for Anthropic to fix the architecture, we shipped a solution that works TODAY.
34
+ Ship it now, perfect it later. And honestly? It's already perfect.
35
+
36
+ ## [2.2.1] - 2025-09-17
37
+
38
+ ### Changed
39
+ - Removed display wrapper tags for cleaner output
40
+ - Updated handleShow for clean markdown display
41
+ - Improved score formatting
42
+
43
+ ## [2.2.0] - 2025-09-16
44
+
45
+ ### Added
46
+ - 33+ FAF tools for comprehensive project management
47
+ - Championship scoring system (0-105%)
48
+ - Big Orange mode for transcendent scoring
49
+ - Sub-50ms performance optimizations
50
+
8
51
  ## [1.0.0] - 2025-01-15
9
52
 
10
53
  ### Added