-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Add MCP server package for StackQL #111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Implements Model Context Protocol server to enable LLMs to consume StackQL as a first-class information source. Key features: - Backend interface abstraction for flexible query execution - Comprehensive configuration with JSON/YAML support - Complete MCP protocol implementation (initialize, resources, tools) - Multiple transport support (stdio, TCP, WebSocket) - Zero dependencies on StackQL internals - Example backend for testing and demonstration The package provides clean separation of concerns with interfaces that can be implemented for in-memory, TCP, or other communication methods as requested in issue #110. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Benevolent General Kroll Who cannot spell <[email protected]>
|
@claude there are a few issues that need dealing with:
|
|
Claude finished @general-kroll-4-life's task —— View job ✅ Refactoring CompleteI've successfully refactored the MCP server package to address all the issues you identified: Todo List:
Changes Made1. Clean Interface-Based API
2. Factory Functions Return Interfaces
3. Hierarchical Schema Design
4. Implementation Details Hidden
5. Clean Code Improvements
6. Preserved Functionality
The package now provides a clean, interface-based API that hides implementation details while maintaining full functionality and testability. --- | Branch: |
|
@claude please add your updates oto this branch |
|
Claude finished @general-kroll-4-life's task —— View job ✅ Refactoring CompleteI've successfully updated the MCP server package with the interface-based design and pushed the changes to the Todo List:
Changes Made1. Clean Interface-Based API (
2. Factory Functions Return Interfaces
3. Hierarchical Schema Design
4. Implementation Details Hidden
5. Clean Code Improvements
6. Preserved Functionality
The package now provides a clean, interface-based API that hides implementation details while maintaining full functionality and testability. --- | Branch: |
- Hide all concrete types behind interfaces except config structures - Make factory functions return interface types - Create hierarchical schema interface instead of flat schema - Add nolint comments for driver import - Remove unused imports and ensure clean API 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Benevolent General Kroll Who cannot spell <[email protected]>
Summary: - Rmove compile errors. - Leverage golang mcp SDK.
- Added robot test `MCP HTTP Server Verify Greeting Tool`. - Added robot test `MCP HTTP Server List Providers Tool`.
- Added robot test `MCP HTTP Server List Resources Tool`. - Added robot test `MCP HTTP Server List Methods Tool`. - Added robot test `MCP HTTP Server Query Tool`.
361a115 to
bd1e9ad
Compare
Implements Model Context Protocol server to enable LLMs to consume StackQL as a first-class information source.
Overview
This PR adds a new
pkg/mcp_serverpackage that provides:Key Features
Files Added
pkg/mcp_server/backend.go- Backend interface and typespkg/mcp_server/config.go- Configuration structurespkg/mcp_server/server.go- MCP server implementationpkg/mcp_server/example_backend.go- Sample backendpkg/mcp_server/server_test.go- Test suitepkg/mcp_server/README.md- DocumentationCloses #110
🤖 Generated with Claude Code