Skip to main content
Glama
003_mcp.mdc1.13 kB
--- description: MCP protocol implementation guidelines and standards. globs: **/mcp/**/*.rs alwaysApply: false --- # MCP Protocol Implementation ## Protocol Compliance - Follow the Model Context Protocol specification. - Implement required methods like `resources/list` and `prompts/list`. - Ensure proper JSON-RPC 2.0 formatting for all messages. - Handle protocol errors gracefully. ## Server Implementation - Use stdin/stdout for communication in MCP server mode. - Implement proper error handling and response formatting. - Provide meaningful error messages for debugging. - Log MCP interactions appropriately. ## Claude Desktop Integration - Ensure seamless integration with Claude Desktop. - Set up proper environment variables for Claude Desktop. - Support changing terraform directories at runtime. - Document integration steps clearly. ## Security Considerations - Implement appropriate safeguards for sensitive operations. - Consider permission boundaries for terraform operations. - Validate inputs to prevent command injection. - Add safety mechanisms like confirmation prompts for destructive operations.

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/nwiizo/tfmcp'

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