mirror of
https://github.com/go-micro/go-micro.git
synced 2026-06-15 19:35:13 +02:00
* docs: update all four documentation guides and mark Q2 complete - ai-native-services: add WithMCP one-liner, standalone gateway, WebSocket client example, and OpenTelemetry observability section - mcp-security: add OTel distributed tracing, WebSocket authentication (connection-level and per-message), DeniedReason audit field - tool-descriptions: add manual overrides with WithEndpointDocs and export formats section - agent-patterns: add LangChain/LlamaIndex SDK pattern and standalone gateway production pattern with Docker example - Update roadmap: mark Q2 documentation as complete, Q2 at 100% - Update status: reflect all recent completions, shift priorities https://claude.ai/code/session_01GkduEhcrqcG45rdfYh8dAc * feat: add agent demo example and blog post Add examples/agent-demo with a multi-service project management app (projects, tasks, team) that demonstrates AI agents interacting with Go Micro services through MCP. Includes seed data and example prompts. Add blog post 4 "Agents Meet Microservices: A Hands-On Demo" walking through the example code and showing cross-service agent workflows. https://claude.ai/code/session_01GkduEhcrqcG45rdfYh8dAc * feat: enable multiple services in a single binary Remove global state mutations from service and cmd option functions so that configuring one service no longer overwrites another's settings. Key changes: - service/options.go: remove all DefaultXxx global writes from option functions; newOptions() now creates fresh Server, Client, Store, and Cache per service while sharing Registry, Broker, and Transport - cmd/cmd.go: newCmd() uses local copies instead of pointers to package globals; Before() no longer mutates DefaultXxx vars - cmd/options.go: remove global mutations from all option functions - service/service.go: export ServiceImpl type for cross-package use - service/group.go: new Group type for multi-service lifecycle - micro.go: add Start/Stop to Service interface, expose Group and NewGroup convenience function - examples/multi-service: working example with two services https://claude.ai/code/session_01GkduEhcrqcG45rdfYh8dAc * docs: highlight multi-service binary support Add multi-service section to README with code example, update features list, add to examples index, and note in status summary. https://claude.ai/code/session_01GkduEhcrqcG45rdfYh8dAc * feat: unify service API and clean up developer experience - Unified service creation: micro.New("name", opts...) as canonical API - Clean handler registration: service.Handle(handler, opts...) accepts server.HandlerOption args directly, no need to reach through Server() - Unexported serviceImpl: users interact through Service interface only - Service groups use Service interface (not concrete type) - Fixed Stop() to properly propagate BeforeStop/AfterStop errors - Fixed store init: error-level log instead of fatal on init failure - Updated all examples to use consistent patterns - Updated README, getting-started, MCP docs, and guides - Added blog post about the DX cleanup https://claude.ai/code/session_01GkduEhcrqcG45rdfYh8dAc * fix: add blog post 5 to blog index Blog post 5 (Developer Experience Cleanup) existed as a file but was missing from the blog index page. https://claude.ai/code/session_01GkduEhcrqcG45rdfYh8dAc * feat: make micro new generate MCP-enabled services by default - main.go template includes mcp.WithMCP(":3001") by default - Handler template has agent-friendly doc comments with @example tags - Proto template has descriptive field comments - README includes MCP usage, Claude Code config, and tool description tips - Makefile adds mcp-tools, mcp-test, mcp-serve targets - go.mod updated to Go 1.22 - Added --no-mcp flag to opt out of MCP integration - Post-create output shows MCP endpoint URLs https://claude.ai/code/session_01GkduEhcrqcG45rdfYh8dAc * docs: add MCP migration guide and troubleshooting guide - Migration guide: 3 approaches to add MCP to existing services (WithMCP one-liner, standalone gateway, CLI) - Troubleshooting guide: common issues with agents, WebSocket, Claude Code, auth, rate limiting, and performance https://claude.ai/code/session_01GkduEhcrqcG45rdfYh8dAc * refactor: rename model/ package to ai/ for AI model providers The model/ package name conflicted with the conventional use of "model" for data models. Renamed to ai/ which better describes the package's purpose (AI provider abstraction for Anthropic, OpenAI, etc.) and frees up model/ for future data model layer use. - Rename model/ → ai/ with package name change - Update all Go imports from go-micro.dev/v5/model to go-micro.dev/v5/ai - Update cmd/micro/server/server.go references (model.X → ai.X) - Update all documentation and roadmap references - All tests pass, CLI builds successfully https://claude.ai/code/session_01GkduEhcrqcG45rdfYh8dAc * feat: add model package for typed data access with CRUD and queries New model/ package provides a typed data model layer using Go generics. Supports structured CRUD operations, WHERE filters, ordering, pagination, and automatic schema creation from struct tags. Three backends: - memory: in-memory for development and testing - sqlite: embedded SQL for dev and single-node production - postgres: full PostgreSQL for production deployments Key features: - Generic Model[T] with Create/Read/Update/Delete/List/Count - Query builder: Where(), WhereOp(), OrderAsc/Desc(), Limit(), Offset() - Struct tags: model:"key" for primary key, model:"index" for indexes - Auto table creation from struct schema - 19 tests passing across memory and sqlite backends https://claude.ai/code/session_01GkduEhcrqcG45rdfYh8dAc * feat: add model code generation to protoc-gen-micro Extend the micro plugin to generate model structs from proto messages annotated with // @model. Generated alongside client/server code in the same .pb.micro.go file. For a proto message like: // @model message User { string id = 1; string name = 2; } Generates: - UserModel struct with model:"key" and json tags - NewUserModel(db) factory returning *model.Model[UserModel] - UserModelFromProto(*User) *UserModel converter - (*UserModel).ToProto() *User converter Supports @model(table=custom_table, key=custom_field) options. Adds GetComments() to generator for plugin comment inspection. https://claude.ai/code/session_01GkduEhcrqcG45rdfYh8dAc * feat: add Model() to Service interface for Client/Server/Model trifecta Every service now exposes Client(), Server(), and Model() — call services, handle requests, and save/query data from the same interface. Includes README docs, blog post, and a full model guide on the docs site. https://claude.ai/code/session_01GkduEhcrqcG45rdfYh8dAc --------- Co-authored-by: Claude <noreply@anthropic.com>
5.4 KiB
5.4 KiB
Go Micro Roadmap
This roadmap outlines the planned features and improvements for Go Micro. Community feedback and contributions are welcome!
See internal/docs/ROADMAP_2026.md for the AI-Native Era roadmap focused on MCP integration, agent-first development, and business sustainability. This document covers general framework improvements.
Current Focus (Q1 2026) - COMPLETE
Documentation & Developer Experience
- Modernize documentation structure
- Add learn-by-example guides
- Update issue templates
- MCP integration documentation
- Agent playground and MCP tools registry
- Create video tutorials
- Interactive documentation site
- Plugin discovery dashboard
AI & Model Integration
- AI package with provider abstraction (
ai.Modelinterface) - Anthropic Claude provider (
ai/anthropic) - OpenAI GPT provider (
ai/openai) - Tool execution with auto-calling support
- Streaming support via
ai.Stream
Observability
- OpenTelemetry native support
- Auto-instrumentation for handlers
- Metrics export standardization
- Distributed tracing examples
- Integration with popular observability platforms
Developer Tools
micro runwith hot reload and unified gatewaymicro deploywith SSH + systemd deploymentmicro mcpcommand suite (serve, list, test, docs, export)micro devwith enhanced hot reload- Service templates (
micro new --template) - Better error messages with suggestions
- Debug tooling improvements
- VS Code extension for Go Micro
Q2 2026
Production Readiness
- Health check standardization
- Graceful shutdown improvements
- Resource cleanup best practices
- Load testing framework integration
- Performance benchmarking suite
Cloud Native
- Kubernetes operator
- Helm charts for common setups
- Service mesh integration guides (Istio, Linkerd)
- Cloud provider quickstarts (AWS, GCP, Azure)
- Multi-cluster patterns
Security
- Bearer token authentication for MCP
- Per-tool scope enforcement
- Audit logging
- Rate limiting
- mTLS by default option
- Secret management integration (Vault, AWS Secrets Manager)
- RBAC improvements
- Security audit and hardening
- CVE scanning and response process
Q3 2026
Plugin Ecosystem
- Plugin marketplace/registry
- Plugin quality standards
- Community plugin contributions
- Plugin compatibility matrix
- Auto-discovery of available plugins
Streaming & Async
- Improved streaming support
- Server-sent events (SSE) support (via MCP gateway)
- WebSocket plugin
- Event sourcing patterns
- CQRS examples
Testing
- Mock generation tooling
- Integration test helpers
- Contract testing support
- Chaos engineering examples
- E2E testing framework
Q4 2026
Performance
- Connection pooling optimizations
- Zero-allocation paths
- gRPC performance improvements
- Caching strategies guide
- Performance profiling tools
Developer Productivity
- Code generation improvements
- Better IDE support
- Debugging tools
- Migration automation tools
- Upgrade helpers
Community
- Regular blog posts and case studies
- Community spotlight program
- Contribution rewards
- Monthly community calls
- Conference presence
Long-term Vision
Core Framework
- Maintain backward compatibility (Go Micro v5+)
- Progressive disclosure of complexity
- Best-in-class developer experience
- Production-grade reliability
- Comprehensive plugin ecosystem
Ecosystem Goals
- 100+ production deployments documented
- 50+ community plugins
- Active contributor community
- Regular releases (monthly patches, quarterly features)
- Comprehensive benchmarks vs alternatives
Differentiation
- Batteries included, fully swappable - Start simple, scale complex
- Zero-config local development - No infrastructure required to start
- AI-native by default - Every service is an MCP tool automatically
- Plugin ecosystem in-repo - No version compatibility hell
- Progressive complexity - Learn as you grow
- Cloud-native first - Built for Kubernetes and containers
Contributing
We welcome contributions to any roadmap items! See CONTRIBUTING.md for guidelines.
High Priority Areas
- Documentation improvements (guides, tutorials)
- Multi-protocol MCP support (WebSocket, gRPC)
- Agent SDK integrations (LlamaIndex, AutoGPT)
- OpenTelemetry integration
- Kubernetes operator and Helm charts
How to Contribute
- Pick an item from the roadmap
- Open an issue to discuss approach
- Submit a PR with implementation
- Help review others' contributions
Feedback
Have suggestions for the roadmap?
- Open a feature request
- Start a discussion in GitHub Discussions
- Comment on existing roadmap issues
Version Compatibility
We follow semantic versioning:
- Major versions (v5 → v6): Breaking changes
- Minor versions (v5.3 → v5.4): New features, backward compatible
- Patch versions (v5.3.0 → v5.3.1): Bug fixes, no API changes
Support Timeline
- v5: Active development (current)
- v4: Security fixes only (until v6 release)
- v3: End of life
Last updated: March 2026
This roadmap is subject to change based on community needs and priorities.