Skip to main content
Glama
lallen30
by lallen30

get_state_management

Retrieve state management standards for React Native development via BluestoneApps MCP Remote Server, ensuring consistent and efficient code implementation.

Instructions

Get state management standards for React Native development

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:207-223 (registration)
    Registration of the 'get_state_management' tool using server.tool, including the inline handler function.
    server.tool( "get_state_management", "Get state management standards for React Native development", {}, async () => { const result = getStandardContent("standards", "state_management"); return { content: [ { type: "text", text: result.content ?? result.error ?? "Error: No content or error message available", }, ], }; }, );
  • Inline handler function that calls getStandardContent to fetch state management standards from a markdown file and returns it as MCP content.
    async () => { const result = getStandardContent("standards", "state_management"); return { content: [ { type: "text", text: result.content ?? result.error ?? "Error: No content or error message available", }, ], }; },
  • Helper function used by the tool to read the standard content markdown file for the given category and ID.
    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}` }; } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lallen30/mcp-remote-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server