ast2llm/ast2llm-go
If you are the rightful owner of ast2llm-go and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
AST2LLM for Go is a local AST-powered context enhancement tool designed to improve the efficiency and accuracy of LLM prompts by leveraging precise Go AST analysis.
AST2LLM for Go is a cutting-edge tool that enhances the context provided to language models by analyzing the abstract syntax tree (AST) of Go projects. This tool automatically injects relevant code structures into prompts, ensuring that language models have access to precise and relevant information. By focusing on the Go programming language, AST2LLM for Go provides a specialized solution that significantly improves the speed and accuracy of context resolution compared to traditional graph-based approaches. The tool is designed to work seamlessly with various MCP clients, making it a versatile addition to any developer's toolkit. With its ability to analyze project structures, identify external type declarations, and package context for LLM prompts, AST2LLM for Go is an invaluable resource for developers looking to optimize their workflow and enhance the capabilities of language models.
Features
- Precise Go AST analysis for enhanced context
- Automatic injection of relevant code structures into prompts
- 3-5x faster context resolution than graph-based approaches
- Seamless integration with various MCP clients
- Support for struct, interface, and function types
Usages
usage with Cursor
{ "mcpServers": { "go-ast": { "command": "ast2llm-go", "args": [] } } }
usage with Claude Desktop
{ "mcpServers": { "go-ast": { "command": "ast2llm-go" } } }
usage with Visual Studio Code
{ "servers": { "go-ast": { "type": "stdio", "command": "ast2llm-go" } } }