get_project_structure
Access standardized React Native project structures to maintain consistency and compliance with BluestoneApps coding standards.
Instructions
Get project structure standards for React Native development
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:150-166 (registration)Registers the 'get_project_structure' tool. The inline handler fetches and returns the content of the 'project_structure' standard from resources/standards/project_structure.md using the getStandardContent helper.server.tool( "get_project_structure", "Get project structure standards for React Native development", {}, async () => { const result = getStandardContent("standards", "project_structure"); return { content: [ { type: "text", text: result.content ?? result.error ?? "Error: No content or error message available", }, ], }; }, );
- src/index.ts:154-166 (handler)Inline handler function for the 'get_project_structure' tool, which reads the markdown standard file and returns it as text content.async () => { const result = getStandardContent("standards", "project_structure"); return { content: [ { type: "text", text: result.content ?? result.error ?? "Error: No content or error message available", }, ], }; }, );
- src/index.ts:28-42 (helper)Helper function used by the tool to load standard content from markdown files in the resources directory.function getStandardContent(category: string, standardId: string): { content?: string; error?: string } { const standardPath = path.join(RESOURCES_DIR, category, `${standardId}.md`); if (!fs.existsSync(standardPath)) { return { error: `Standard ${standardId} not found` }; } try { const content = fs.readFileSync(standardPath, 'utf8'); return { content }; } catch (err) { console.error(`Error reading standard ${standardId}:`, err); return { error: `Error reading standard ${standardId}` }; } }