claude-faf-mcp 2.0.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/.faf +184 -0
- package/CHANGELOG.md +52 -0
- package/CLAUDE.md +336 -0
- package/LICENSE +22 -0
- package/README.md +276 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +30 -0
- package/dist/cli.js.map +1 -0
- package/dist/handlers/engine-adapter.d.ts +19 -0
- package/dist/handlers/engine-adapter.d.ts.map +1 -0
- package/dist/handlers/engine-adapter.js +191 -0
- package/dist/handlers/engine-adapter.js.map +1 -0
- package/dist/handlers/fileHandler.d.ts +37 -0
- package/dist/handlers/fileHandler.d.ts.map +1 -0
- package/dist/handlers/fileHandler.js +246 -0
- package/dist/handlers/fileHandler.js.map +1 -0
- package/dist/handlers/resources.d.ts +19 -0
- package/dist/handlers/resources.d.ts.map +1 -0
- package/dist/handlers/resources.js +59 -0
- package/dist/handlers/resources.js.map +1 -0
- package/dist/handlers/tools.d.ts +20 -0
- package/dist/handlers/tools.d.ts.map +1 -0
- package/dist/handlers/tools.js +595 -0
- package/dist/handlers/tools.js.map +1 -0
- package/dist/server.d.ts +30 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +175 -0
- package/dist/server.js.map +1 -0
- package/dist/utils/visual-style.d.ts +56 -0
- package/dist/utils/visual-style.d.ts.map +1 -0
- package/dist/utils/visual-style.js +167 -0
- package/dist/utils/visual-style.js.map +1 -0
- package/package.json +88 -0
- package/src/cli.ts +31 -0
- package/src/handlers/engine-adapter.ts +177 -0
- package/src/handlers/fileHandler.ts +235 -0
- package/src/handlers/resources.ts +60 -0
- package/src/handlers/tools.ts +627 -0
- package/src/server.ts +201 -0
- package/src/utils/visual-style.ts +174 -0
package/.faf
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
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! ๐งก๐ฉต๐๐
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to the Claude FAF MCP Server will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [1.0.0] - 2025-01-15
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- ๐ Initial release of Claude FAF MCP Server
|
|
12
|
+
- ๐ ๏ธ 9 comprehensive FAF tools for Claude integration:
|
|
13
|
+
- `faf_status` - Project health and AI readiness metrics
|
|
14
|
+
- `faf_score` - AI collaboration scoring with detailed breakdown
|
|
15
|
+
- `faf_init` - Intelligent project initialization with stack detection
|
|
16
|
+
- `faf_trust` - Context integrity validation and trust metrics
|
|
17
|
+
- `faf_sync` - .faf to claude.md synchronization
|
|
18
|
+
- `faf_enhance` - Claude-optimized AI enhancement with multi-model support
|
|
19
|
+
- `faf_bi_sync` - Bi-directional sync with real-time file watching
|
|
20
|
+
- `faf_clear` - Cache and state management
|
|
21
|
+
- `faf_debug` - Comprehensive debugging and diagnostics
|
|
22
|
+
- ๐ก Full MCP (Model Context Protocol) compliance
|
|
23
|
+
- ๐ stdio transport support for Claude Desktop integration
|
|
24
|
+
- ๐ง Universal FAF CLI integration with intelligent path detection
|
|
25
|
+
- ๐ Resource endpoints for context and status access
|
|
26
|
+
- โก High-performance engine adapter with timeout and error handling
|
|
27
|
+
- ๐ Robust error handling with TypeScript strict mode compliance
|
|
28
|
+
- ๐ฆ NPM package ready with global CLI installation
|
|
29
|
+
- ๐ Comprehensive documentation and usage examples
|
|
30
|
+
|
|
31
|
+
### Technical Details
|
|
32
|
+
- Built with TypeScript 5.3+ for type safety
|
|
33
|
+
- Uses MCP SDK 1.0.0 for protocol compliance
|
|
34
|
+
- Node.js 18+ compatibility
|
|
35
|
+
- Universal PATH detection for FAF CLI discovery
|
|
36
|
+
- Graceful fallback for working directory resolution
|
|
37
|
+
- JSON and plain text output parsing
|
|
38
|
+
- Comprehensive input validation and sanitization
|
|
39
|
+
|
|
40
|
+
### Configuration
|
|
41
|
+
- Flexible engine path configuration (global 'faf' or custom paths)
|
|
42
|
+
- Debug mode support for development
|
|
43
|
+
- Future HTTP-SSE transport preparation
|
|
44
|
+
- Environment-aware PATH enhancement
|
|
45
|
+
- Working directory auto-detection
|
|
46
|
+
|
|
47
|
+
### Documentation
|
|
48
|
+
- Complete README with quick start guide
|
|
49
|
+
- MIT License for open source distribution
|
|
50
|
+
- Changelog following semantic versioning
|
|
51
|
+
- TypeScript definitions included
|
|
52
|
+
- Usage examples for all tools
|
package/CLAUDE.md
ADDED
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
# ๐๏ธ CLAUDE.md - AI Collaboration Guide
|
|
2
|
+
|
|
3
|
+
## ๐ Project: FAF MCP Desktop Server
|
|
4
|
+
|
|
5
|
+
**Philosophy**: F1-Inspired Software Engineering - Best Engineering, Built for Speed, Award-Winning Intent
|
|
6
|
+
**Status**: ๐ 105% Big Orange - Championship Mode Achieved!
|
|
7
|
+
**Owner**: @wolfejam ๐๏ธโก
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## ๐จ FAF Brand System - COLORS & EMOJIS
|
|
12
|
+
|
|
13
|
+
### The Championship Color Trinity:
|
|
14
|
+
|
|
15
|
+
```css
|
|
16
|
+
/* ๐งก FAF Orange - Human Trust Elements */
|
|
17
|
+
--faf-orange: #ff6b35; /* Primary Orange */
|
|
18
|
+
--faf-orange-dark: #e55a00; /* Orange hover state */
|
|
19
|
+
|
|
20
|
+
/* ๐ฉต FAF Cyan - AI-Happy Elements */
|
|
21
|
+
--faf-cyan: #00ffff; /* Terminal accents, tech values */
|
|
22
|
+
|
|
23
|
+
/* ๐ FAF Green - Success/Safety/FAF */
|
|
24
|
+
--faf-green: #00bf63; /* The "really nice green"! */
|
|
25
|
+
--faf-green-bright: #00ff88; /* Bright accent */
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### The Championship Emoji Language - OFFICIAL DEFINITIONS:
|
|
29
|
+
|
|
30
|
+
| Emoji | Meaning | Usage Context |
|
|
31
|
+
|-------|---------|---------------|
|
|
32
|
+
| ๐ | **Big Orange Achievement** | 105% Championship Status - THE ultimate achievement |
|
|
33
|
+
| ๐งก | **Human Trust in FAF** | Human confidence, manual actions, trust signals |
|
|
34
|
+
| ๐ฉต | **AI-Happy** | AI loves this, optimal for AI, tech happiness |
|
|
35
|
+
| ๐ | **FAF Success** | Success states, safety, FAF scores |
|
|
36
|
+
| โก | **ACTION** | Taking action, doing something, movement, energy (we use this A LOT!) |
|
|
37
|
+
| ๐ | **Finish/Success** | Task completed, goal achieved, successful outcome |
|
|
38
|
+
| ๐ | **Win/Podium** | Victory, championship, top placement, excellence |
|
|
39
|
+
| ๐๏ธ | **F1-Inspired Speed** | Performance, optimization, racing philosophy |
|
|
40
|
+
| โ | **Timing** | Time-related, performance metrics, benchmarks |
|
|
41
|
+
| ๐ค | **AI/Tech** | Technical elements, automation, AI features |
|
|
42
|
+
| โ๏ธ | **Checkmark (Preferred)** | Task done, item complete (PREFER over โ
) |
|
|
43
|
+
| ๐๏ธโก | **wolfejam signature** | The wolfejam way - speed + action combined! |
|
|
44
|
+
|
|
45
|
+
### Important Emoji Notes:
|
|
46
|
+
- **PREFER โ๏ธ over โ
** - We accept that green checkmarks appear sometimes, but โ๏ธ is the wolfejam preference
|
|
47
|
+
- **โ for timing** - Use when discussing performance metrics, benchmarks, time measurements
|
|
48
|
+
- **โก is ACTION** - Not just speed, but any action, movement, or energy
|
|
49
|
+
- **๐๏ธโก always together** - This is the wolfejam signature, never separate them
|
|
50
|
+
|
|
51
|
+
### Color + Emoji Combinations:
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
Human Actions: ๐งก + #ff6b35 (Orange) + โก (action!)
|
|
55
|
+
AI Excellence: ๐ฉต + #00ffff (Cyan)
|
|
56
|
+
FAF Success: ๐ + #00bf63 (Green) + ๐ (finish!)
|
|
57
|
+
Big Orange Status: ๐ + Championship Mode!
|
|
58
|
+
Victory: ๐ + ๐ (Win + Finish)
|
|
59
|
+
Timing/Perf: โ + metrics (<10ms)
|
|
60
|
+
Completion: โ๏ธ (preferred checkmark)
|
|
61
|
+
wolfejam way: ๐๏ธโก (Always together!)
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Foundation Colors:
|
|
65
|
+
```css
|
|
66
|
+
--faf-cream: #FEFCF8; /* Background (NEVER pure white) */
|
|
67
|
+
--faf-dark: #1a1a1a; /* Terminal/Text */
|
|
68
|
+
--faf-gray: #666666; /* Secondary text */
|
|
69
|
+
--faf-light-gray: #e5e5e5; /* Borders */
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Usage Rules:
|
|
73
|
+
- **Orange** `#ff6b35` + ๐งก: Human interactions, manual actions, trust signals
|
|
74
|
+
- **Cyan** `#00ffff` + ๐ฉต: AI happiness, technical excellence, automation
|
|
75
|
+
- **Green** `#00bf63` + ๐: Success states, FAF scores, safety indicators
|
|
76
|
+
- **Big Orange** ๐: Reserved for 105% achievement only!
|
|
77
|
+
- **Action** โก: Use liberally for any action/movement/energy
|
|
78
|
+
- **Finish** ๐: Mark completions and successes
|
|
79
|
+
- **Win** ๐: Celebrate victories and podium finishes
|
|
80
|
+
- **Timing** โ: Performance metrics and benchmarks
|
|
81
|
+
- **Checkmarks** โ๏ธ: Prefer over โ
when possible
|
|
82
|
+
- **wolfejam** ๐๏ธโก: Always use together as signature
|
|
83
|
+
- **NO GRADIENTS**: Championship flat colors only!
|
|
84
|
+
- **Dark backgrounds** make colors POP
|
|
85
|
+
- **Cream** not white for warmth
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## ๐ Development Philosophy
|
|
90
|
+
|
|
91
|
+
### The Wolfejam Way ๐๏ธโก:
|
|
92
|
+
1. **Best Engineering** - Every line optimized, no bloat
|
|
93
|
+
2. **Built for Speed** - Target <10ms operations (achieved: 0-1ms!) โ
|
|
94
|
+
3. **Award-Winning Intent** - Don't just pass tests, set records ๐
|
|
95
|
+
|
|
96
|
+
### Performance Standards โ:
|
|
97
|
+
- File operations: **<1ms** ๐
|
|
98
|
+
- Score calculations: **<5ms** ๐
|
|
99
|
+
- Debug operations: **<10ms** ๐
|
|
100
|
+
- All operations: **<100ms** ๐
|
|
101
|
+
|
|
102
|
+
### Architecture Principles:
|
|
103
|
+
- **Desktop-Native First**: Core features work WITHOUT CLI โก
|
|
104
|
+
- **Graceful Degradation**: Advanced features when CLI available
|
|
105
|
+
- **TypeScript Throughout**: Type safety is non-negotiable โ๏ธ
|
|
106
|
+
- **Svelte Preference**: Component-first design
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## ๐ฆ Technical Context
|
|
111
|
+
|
|
112
|
+
### Core Capabilities (No CLI Required):
|
|
113
|
+
- `faf_read` - Native file system access โก
|
|
114
|
+
- `faf_write` - Direct file writing โก
|
|
115
|
+
- `faf_score` - Built-in project scoring (99% max technical, ๐ 105% Big Orange!)
|
|
116
|
+
- `faf_debug` - Environment inspection โก
|
|
117
|
+
|
|
118
|
+
### CLI-Enhanced Features:
|
|
119
|
+
- `faf_status` - Project status with FAF CLI
|
|
120
|
+
- `faf_init` - Initialize .faf files โก
|
|
121
|
+
- `faf_enhance` - AI-powered improvements ๐ฉต
|
|
122
|
+
- `faf_sync` - Bi-directional sync โก
|
|
123
|
+
|
|
124
|
+
### Project Structure:
|
|
125
|
+
```
|
|
126
|
+
/claude-faf-mcp/
|
|
127
|
+
โโโ src/ # TypeScript source
|
|
128
|
+
โ โโโ server.ts # Main MCP server
|
|
129
|
+
โ โโโ handlers/ # Tool implementations
|
|
130
|
+
โ โโโ cli.ts # CLI entry point
|
|
131
|
+
โโโ dist/ # Compiled JavaScript
|
|
132
|
+
โโโ tests/ # Championship test suites
|
|
133
|
+
โโโ docs/ # Documentation
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## ๐ Easter Eggs & Achievements
|
|
139
|
+
|
|
140
|
+
### Current Status: **๐ 105% Big Orange** ๐
|
|
141
|
+
Triggered when:
|
|
142
|
+
- Rich .faf file (500+ chars with sections) โ๏ธ
|
|
143
|
+
- Rich CLAUDE.md file (this file!) โ๏ธ
|
|
144
|
+
- README.md present โ๏ธ
|
|
145
|
+
- Project file detected โ๏ธ
|
|
146
|
+
- Excellence in execution โ๏ธ
|
|
147
|
+
|
|
148
|
+
### Achievement Levels:
|
|
149
|
+
- **99%**: Maximum Technical (Claude grants 100%)
|
|
150
|
+
- **๐ 105%**: Big Orange (Championship Mode!) ๐
|
|
151
|
+
- **โก 110%**: Titanium Orange (All ops <5ms) โ
|
|
152
|
+
- **๐ฉต 115%**: Quantum Orange (Anthropic adoption)
|
|
153
|
+
- **๐ค 120%**: Singularity Orange (Self-improving AI)
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## ๐ฏ AI Collaboration Instructions
|
|
158
|
+
|
|
159
|
+
### When Working on This Project:
|
|
160
|
+
|
|
161
|
+
1. **Always Use Brand System**:
|
|
162
|
+
- Orange `#ff6b35` + ๐งก for human trust elements
|
|
163
|
+
- Cyan `#00ffff` + ๐ฉต for AI-happy elements
|
|
164
|
+
- Green `#00bf63` + ๐ for success/FAF elements
|
|
165
|
+
- ๐ ONLY for 105% Big Orange achievement
|
|
166
|
+
- โก for ANY action or energy (use liberally!)
|
|
167
|
+
- ๐ for finish/success
|
|
168
|
+
- ๐ for wins/podium
|
|
169
|
+
- โ for timing and performance metrics
|
|
170
|
+
- โ๏ธ for checkmarks (not โ
when possible)
|
|
171
|
+
- ๐๏ธโก together for wolfejam signature
|
|
172
|
+
|
|
173
|
+
2. **Performance First** โ:
|
|
174
|
+
- Measure everything in milliseconds
|
|
175
|
+
- Target <10ms for all operations โก
|
|
176
|
+
- Celebrate achievements with ๐
|
|
177
|
+
- Mark victories with ๐
|
|
178
|
+
|
|
179
|
+
3. **Component Design**:
|
|
180
|
+
- Build for Gallery-Svelte monetization โก
|
|
181
|
+
- Create reusable, sellable components
|
|
182
|
+
- Follow Svelte best practices โ๏ธ
|
|
183
|
+
- Aim for podium quality ๐
|
|
184
|
+
|
|
185
|
+
4. **Testing Philosophy**:
|
|
186
|
+
- Don't just test, VALIDATE โก
|
|
187
|
+
- Create telemetry, not just pass/fail โ
|
|
188
|
+
- Build championship-quality tests ๐
|
|
189
|
+
- Mark completion with ๐
|
|
190
|
+
|
|
191
|
+
5. **Documentation Style**:
|
|
192
|
+
- Use 3 bullet points for summaries
|
|
193
|
+
- Include racing analogies ๐๏ธ
|
|
194
|
+
- Show metrics with < symbols (<10ms) โ
|
|
195
|
+
- Use emojis with PURPOSE (see emoji language above)
|
|
196
|
+
- Always sign with ๐๏ธโก for wolfejam way
|
|
197
|
+
- Prefer โ๏ธ over โ
for checkmarks
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## ๐ ๏ธ Development Workflow
|
|
202
|
+
|
|
203
|
+
### For New Features:
|
|
204
|
+
1. **Domain Model First** - Understand the problem space โก
|
|
205
|
+
2. **Work Backwards** - Start from desired outcome ๐
|
|
206
|
+
3. **F1-Inspired Speed** - Optimize from the start ๐๏ธ
|
|
207
|
+
4. **Test Like Champions** - Comprehensive validation ๐
|
|
208
|
+
|
|
209
|
+
### For Bug Fixes:
|
|
210
|
+
1. **Reproduce** - Create failing test โก
|
|
211
|
+
2. **Fix** - Minimal, elegant solution โก
|
|
212
|
+
3. **Validate** - Ensure <10ms performance โ ๐
|
|
213
|
+
4. **Document** - Update tests and docs โ๏ธ
|
|
214
|
+
|
|
215
|
+
### For Optimizations:
|
|
216
|
+
1. **Measure** - Current performance baseline โ
|
|
217
|
+
2. **Optimize** - Apply F1-Inspired engineering ๐๏ธโก
|
|
218
|
+
3. **Validate** - Confirm improvements ๐
|
|
219
|
+
4. **Celebrate** - Share the metrics! ๐
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## ๐ Success Metrics
|
|
224
|
+
|
|
225
|
+
### Technical Excellence:
|
|
226
|
+
- Test Coverage: **>95%** โ๏ธ
|
|
227
|
+
- Performance: **<10ms all operations** โก โ
|
|
228
|
+
- Type Safety: **100% TypeScript** โ๏ธ
|
|
229
|
+
- Zero Dependencies: **Core features** โ๏ธ
|
|
230
|
+
|
|
231
|
+
### Business Impact:
|
|
232
|
+
- Desktop Independence: **PROVEN** ๐
|
|
233
|
+
- User Satisfaction: **๐ 105% (Big Orange!)**
|
|
234
|
+
- AI Happiness: **๐ฉต Maximum**
|
|
235
|
+
- Human Trust: **๐งก Complete**
|
|
236
|
+
- Adoption Ready: **npm publishable** โก
|
|
237
|
+
- Monetization Path: **Component store** ๐
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## ๐ง Common Tasks
|
|
242
|
+
|
|
243
|
+
### Running Tests:
|
|
244
|
+
```bash
|
|
245
|
+
# Desktop Championship Suite โก
|
|
246
|
+
cd /Users/wolfejam/faf-test-environment
|
|
247
|
+
./MCP_DESKTOP_CHAMPIONSHIP_SUITE.sh
|
|
248
|
+
|
|
249
|
+
# Unit Tests โก
|
|
250
|
+
npm test
|
|
251
|
+
|
|
252
|
+
# Performance Benchmarks ๐๏ธโก โ
|
|
253
|
+
node test-desktop-championship.js
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### Building:
|
|
257
|
+
```bash
|
|
258
|
+
npm run build # Compiles TypeScript โก
|
|
259
|
+
npm run dev # Development mode โก
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
### Integration:
|
|
263
|
+
```bash
|
|
264
|
+
# Test with Claude Desktop โก
|
|
265
|
+
node dist/cli.js --transport stdio
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
## ๐ก Innovation Opportunities
|
|
271
|
+
|
|
272
|
+
### Next Features to Build:
|
|
273
|
+
1. **Smart Caching Layer** - Sub-millisecond repeats โก โ
|
|
274
|
+
2. **Project Type Detection** - Auto-identify stack ๐ค
|
|
275
|
+
3. **Native FAF Generation** - Create .faf without CLI โก
|
|
276
|
+
4. **Performance Dashboard** - Real-time telemetry ๐ โ
|
|
277
|
+
5. **Component Library** - Gallery-Svelte integration ๐
|
|
278
|
+
|
|
279
|
+
### Research Areas:
|
|
280
|
+
- WebAssembly for <1ms operations โก โ
|
|
281
|
+
- Streaming responses for large files
|
|
282
|
+
- Multi-threaded file operations โก
|
|
283
|
+
- AI-powered context optimization ๐ฉต
|
|
284
|
+
- Cross-platform native bindings ๐
|
|
285
|
+
|
|
286
|
+
---
|
|
287
|
+
|
|
288
|
+
## ๐ Remember
|
|
289
|
+
|
|
290
|
+
**We're not just building an MCP server.**
|
|
291
|
+
**We're setting the CHAMPIONSHIP STANDARD.** ๐
|
|
292
|
+
|
|
293
|
+
Every commit should:
|
|
294
|
+
- Take action โก
|
|
295
|
+
- Time it perfectly โ
|
|
296
|
+
- Finish strong ๐
|
|
297
|
+
- Win podiums ๐
|
|
298
|
+
- Be legendary ๐
|
|
299
|
+
|
|
300
|
+
**The Wolfejam Way ๐๏ธโก**: Best Engineering, Built for Speed, Award-Winning Intent!
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## ๐ Contact & Support
|
|
305
|
+
|
|
306
|
+
- **GitHub**: @wolfejam
|
|
307
|
+
- **Project**: FAF MCP Desktop Server
|
|
308
|
+
- **Version**: 2.0.0
|
|
309
|
+
- **Status**: Production Ready ๐
|
|
310
|
+
- **Achievement**: ๐ 105% Big Orange
|
|
311
|
+
- **Human Trust**: ๐งก Complete
|
|
312
|
+
- **AI Happiness**: ๐ฉต Maximum
|
|
313
|
+
- **Performance**: โ <10ms all operations
|
|
314
|
+
- **Signature**: ๐๏ธโก wolfejam way
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
## โ๏ธ Checklist Status
|
|
319
|
+
|
|
320
|
+
- โ๏ธ Colors documented
|
|
321
|
+
- โ๏ธ Emojis defined
|
|
322
|
+
- โ๏ธ Performance metrics established
|
|
323
|
+
- โ๏ธ Testing suite complete
|
|
324
|
+
- โ๏ธ Championship mode active
|
|
325
|
+
- โ๏ธ Big Orange achieved
|
|
326
|
+
- โ๏ธ wolfejam way documented
|
|
327
|
+
|
|
328
|
+
---
|
|
329
|
+
|
|
330
|
+
*Last Updated: September 15, 2025*
|
|
331
|
+
*Championship Mode: ACTIVE* ๐
|
|
332
|
+
*Big Orange Status: ACHIEVED* ๐
|
|
333
|
+
*Action Mode: ALWAYS ON* โก
|
|
334
|
+
*Timing: PERFECT* โ
|
|
335
|
+
|
|
336
|
+
๐๏ธโก๐งก **Stop FAFfing About - Take ACTION with PERFECT TIMING and Build Championship Software!** ๐ฉต๐๐๐๐
|
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 wolfejam (happy@faf.one) ๐๏ธโก wolfejam.dev
|
|
4
|
+
PODIUM EDITION ๐
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|