@@ -11,6 +11,39 @@ An MCP (Model Context Protocol) server that lets users and autonomous agents gen
1111- ** Resource: ` config://defaults ` ** - View effective configuration defaults
1212- ** Prompts** - Helper prompts for LLMs to use the tools effectively
1313
14+ ## Project Structure
15+
16+ ```
17+ fluxlora-mcp/
18+ ├── bin/ # Executable scripts
19+ ├── scripts/ # Dev utility scripts
20+ ├── src/
21+ │ ├── config/ # Environment configuration
22+ │ ├── mcp/ # MCP server implementation
23+ │ ├── prompts/ # System prompts for LLMs
24+ │ ├── resources/ # MCP resources
25+ │ ├── services/ # External service integrations
26+ │ │ ├── fal/ # Fal.ai client for image generation
27+ │ │ ├── fs/ # Filesystem operations
28+ │ │ └── hf/ # HuggingFace Hub client
29+ │ ├── tools/ # MCP tool implementations
30+ │ │ ├── discover_loras.ts
31+ │ │ ├── generate_image.ts
32+ │ │ └── save_image_to_disk.ts
33+ │ ├── types/ # TypeScript type definitions
34+ │ └── utils/ # Utility functions
35+ ├── IMPLEMENTATION-PLAN.md # Current status and roadmap
36+ └── README.md # This file
37+ ```
38+
39+ ## Technology Stack
40+
41+ - ** TypeScript** : Type-safe JavaScript for robust development
42+ - ** Zod** : Runtime validation for input/output schemas
43+ - ** MCP SDK** : Integration with the Model Context Protocol
44+ - ** Fal.ai Client** : API client for image generation
45+ - ** HuggingFace Hub** : API client for discovering LoRA models
46+
1447## Installation
1548
1649``` bash
@@ -27,11 +60,12 @@ npm install
2760Copy the example environment file and update with your settings:
2861
2962``` bash
30- cp packages/server/ .env.example packages/server/ .env
63+ cp .env.example .env
3164```
3265
3366Required environment variables:
3467- ` FAL_KEY ` - Your Fal API key (get one from [ Fal.ai] ( https://fal.ai ) )
68+ - ` HF_TOKEN ` - Optional Hugging Face API token for increased rate limits
3569
3670## Development
3771
@@ -51,11 +85,9 @@ npm test
5185# Run the MCP Inspector with your development server
5286npm run inspect
5387
54- # Run the MCP Inspector with your production build
55- npm run inspect:prod
56-
57- # Run the MCP Inspector with your bundled build
58- npm run inspect:bundle
88+ # Lint and typecheck your code
89+ npm run lint
90+ npm run typecheck
5991```
6092
6193### Using the MCP Inspector
@@ -80,12 +112,12 @@ To use the Inspector:
80112The project supports multiple build options:
81113
821141 . ** TypeScript Build** : Standard TypeScript compilation (` npm run build ` )
83- - Output: ` packages/server/ dist/`
84- - Usage: ` node packages/server/ dist/index.js `
115+ - Output: ` dist/ `
116+ - Usage: ` node dist/index.js `
85117
861182 . ** Optimized Bundle** : Single-file bundle with esbuild (` npm run bundle ` )
87- - Output: ` packages/server/ dist/bundle/index.js`
88- - Usage: ` node packages/server/ dist/bundle/index.js `
119+ - Output: ` dist/bundle/index.js `
120+ - Usage: ` node dist/bundle/index.js `
89121 - Benefits: Faster startup, smaller deployment size, simpler dependencies
90122
91123## Usage
@@ -121,23 +153,52 @@ console.log(loras.results);
121153
122154``` typescript
123155const result = await client .invokeTool (' save_image_to_disk' , {
124- imageUrl: ' https://example.com/image.png' ,
125- filename: ' my-image.png'
156+ url: ' https://example.com/image.png'
126157});
127158
128159console .log (result .filePath );
129160```
130161
162+ ## Project Roadmap
163+
164+ ### Completed
165+ - ✅ MCP server with protocol integration
166+ - ✅ Fal.ai client implementation
167+ - ✅ Image generation with parameter validation
168+ - ✅ HuggingFace Hub integration for LoRA discovery
169+ - ✅ Image storage utilities with security checks
170+ - ✅ Configuration resource implementation
171+ - ✅ System prompts for LLMs
172+
173+ ### In Progress
174+ - 🔄 Testing infrastructure
175+ - 🔄 Enhanced LoRA discovery with better style mapping
176+ - 🔄 Local ` .safetensor ` file scanning
177+
178+ ### Planned
179+ - ⏳ LoRA resource implementation
180+ - ⏳ API response caching
181+ - ⏳ Logging infrastructure
182+ - ⏳ Performance optimization
183+ - ⏳ Documentation site
184+ - ⏳ Release automation
185+
186+ ### Future Enhancements
187+ - Batch image generation
188+ - Grid view outputs
189+ - ControlNet integration
190+ - Video and audio generation
191+ - Optional web UI
192+
131193## Documentation
132194
133195For more detailed documentation, see:
134196
135- - [ Product Requirements Document] ( docs/PRD.md )
136197- [ Implementation Plan] ( IMPLEMENTATION-PLAN.md )
137198
138199## Dependencies
139200
140- - MCP TypeScript SDK: ` @modelcontextprotocol/typescript- sdk `
201+ - MCP TypeScript SDK: ` @modelcontextprotocol/sdk `
141202- Fal Client: ` @fal-ai/client `
142203- HuggingFace Hub: ` @huggingface/hub `
143204- Zod: ` zod `
0 commit comments