π¦
Customer MCP Client
WIP: A human-friendly interface using Claude to register and list customers using an MCP server
0 installs
1 stars
Trust: 49 β Fair
Devtools
Installation
npx customer-mcp-clientAsk AI about Customer MCP Client
Powered by Claude Β· Grounded in docs
I know everything about Customer MCP Client. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
MCP Client - Hexagonal Architecture
This project follows the hexagonal architecture (ports and adapters) pattern to maintain clean, testable, and maintainable code.
Project Structure
/
βββ main.go # Application entry point
βββ adapters/ # External adapters
β βββ api/ # HTTP API adapters
β β βββ sample_handler.go # HTTP handlers
β βββ db/ # Database adapters
β βββ connection.go # Database connection
β βββ sample_model/ # Model-specific repositories
β βββ sample_model_repo.go # Sample model repository
βββ core/ # Core business logic
β βββ domain/ # Domain models
β β βββ sample_model.go # Sample domain model
β βββ ports/ # Interface definitions
β β βββ db_port.go # Database port interface
β β βββ sample_model_port.go # Sample model port interface
β βββ usecases/ # Business use cases
β βββ sample_business_flow/ # Sample business flow
β βββ sample_business_flow_usecase.go
βββ go.mod # Go module definition
Architecture Principles
Hexagonal Architecture (Ports and Adapters)
- Core: Contains business logic, domain models, and port interfaces
- Adapters: External implementations that connect to databases, APIs, etc.
- Ports: Interfaces that define contracts between core and adapters
Key Components
- Domain Models (
core/domain/): Pure business entities with no external dependencies - Use Cases (
core/usecases/): Business scenarios and workflows - Ports (
core/ports/): Interface contracts for external dependencies - Adapters (
adapters/): Concrete implementations of ports
Data Flow
HTTP Request β API Handler β Use Case β Domain Logic β Port Interface β Repository Adapter β Database
Getting Started
-
Install dependencies:
go mod tidy -
Build the project:
go build . -
Run the server:
./mcp_client
The server will start on port 8080 with a basic health check endpoint at /health.
Development Guidelines
- Keep business logic in use cases
- Use dependency injection through port interfaces
- Write unit tests for all use cases
- Keep adapters thin and focused on translation
- Domain models should have no external dependencies
