@@ -94,15 +94,58 @@ type %APPDATA%\Claude\claude_desktop_config.json
9494
9595## Development
9696
97- ### MCP Inspector
97+ ### Available Scripts
9898
99- The MCP Inspector is a development tool for testing your server:
99+ ``` bash
100+ # Build and watch
101+ npm run build # Build the project
102+ npm run watch # Watch for changes and rebuild
103+ npm run typecheck # Run TypeScript type checking
104+
105+ # Testing
106+ npm test # Run tests in watch mode
107+ npm run test:run # Run tests once
108+ npm run test:coverage # Run tests with coverage report
109+
110+ # Code quality
111+ npm run lint # Run ESLint
112+ npm run lint:fix # Run ESLint with auto-fix
113+ npm run format # Format code with Prettier
114+ npm run format:check # Check code formatting
115+
116+ # Development tools
117+ npm run inspector # Run MCP inspector (http://localhost:5173)
118+ ```
119+
120+ ### Testing
121+
122+ This project uses Vitest for testing. Tests are located in ` __tests__/ ` directories alongside source files.
100123
101124``` bash
102- npm run inspector
125+ # Run tests in watch mode
126+ npm test
127+
128+ # Run tests once (useful for CI)
129+ npm run test:run
130+
131+ # Generate coverage report
132+ npm run test:coverage
103133```
104134
105- This will open a web interface at http://localhost:5173 where you can interact with your server.
135+ ### Code Quality
136+
137+ Before committing code:
138+
139+ ``` bash
140+ # Run all checks
141+ npm run typecheck && npm run lint && npm run format:check && npm run test:run
142+ ```
143+
144+ The project uses:
145+ - ** ESLint** for linting with TypeScript support
146+ - ** Prettier** for code formatting
147+ - ** Vitest** for testing
148+ - ** GitHub Actions** for CI/CD
106149
107150### Development Mode
108151
@@ -116,21 +159,21 @@ NODE_ENV=development npm run build && node build/index.js
116159
117160The style guide can be customized to match your brand's specific styling philosophies and fashion guidance. To customize the style guide:
118161
119- 1 . Locate the style guides in ` src/index .ts ` (search for ` styleGuides ` )
162+ 1 . Locate the style guides in ` src/content/style-guides .ts `
1201632 . Modify the content for each category (` general ` , ` color_theory ` , ` body_types ` , etc.)
1211643 . Add new categories by extending the ` styleGuides ` object
1221654 . Customize occasion-specific and seasonal advice
123166
124167Example of adding a custom style guide category:
125168
126169``` typescript
127- // In src/index .ts
128- const styleGuides: Record <string , string > = {
170+ // In src/content/style-guides .ts
171+ export const styleGuides: Record <string , string > = {
129172 // Existing categories...
130-
173+
131174 // Add your custom category
132175 your_brand_style: ` # Your Brand Style Guide
133-
176+
134177## Brand Aesthetic
135178- Key elements of your brand's visual identity
136179- Core style principles
@@ -149,15 +192,53 @@ const styleGuides: Record<string, string> = {
149192};
150193```
151194
152- For complete customization, you can modify the entire ` get_style_guide ` handler in ` src/index .ts ` .
195+ For complete customization, you can modify the entire ` get_style_guide ` handler in ` src/handlers/tools .ts ` .
153196
154197### Project Structure
155198
156- - ` src/index.ts ` : Main MCP server implementation
157- - ` src/api/ ` : FindMine API client
158- - ` src/services/ ` : Business logic and service layer
159- - ` src/types/ ` : TypeScript type definitions
160- - ` src/utils/ ` : Utility functions and helpers
199+ ```
200+ src/
201+ ├── index.ts # MCP server bootstrap and initialization
202+ ├── config.ts # Environment configuration
203+ ├── api/ # FindMine API client
204+ │ └── findmine-client.ts
205+ ├── handlers/ # MCP protocol handlers
206+ │ ├── tools.ts # Tool execution handlers
207+ │ ├── resources.ts # Resource handlers
208+ │ └── prompts.ts # Prompt handlers
209+ ├── tools/ # Tool definitions with MCP annotations
210+ │ └── index.ts
211+ ├── schemas/ # Zod validation schemas
212+ │ ├── tool-inputs.ts # Input validation for all tools
213+ │ └── index.ts
214+ ├── content/ # Static content
215+ │ └── style-guides.ts # Style guide content
216+ ├── prompts/ # Prompt definitions
217+ │ ├── findmine-help.ts
218+ │ ├── outfit-completion.ts
219+ │ ├── styling-guide.ts
220+ │ └── index.ts
221+ ├── services/ # Business logic layer
222+ │ └── findmine-service.ts
223+ ├── types/ # TypeScript type definitions
224+ │ ├── findmine-api.ts
225+ │ └── mcp.ts
226+ └── utils/ # Utility functions and helpers
227+ ├── cache.ts
228+ ├── formatters.ts
229+ ├── logger.ts
230+ ├── mock-data.ts
231+ └── resource-mapper.ts
232+ ```
233+
234+ ### Technical Details
235+
236+ This server is built with:
237+ - ** MCP SDK 1.24.2** with full spec compliance (2025-11-25)
238+ - ** Tool annotations** for read-only, destructive, and open-world hints
239+ - ** Zod validation** for all tool inputs
240+ - ** Modular architecture** with separated concerns
241+ - ** 100% test coverage** on utility functions
161242
162243## API Examples
163244
0 commit comments