Welcome to the Yokai MCP Template repository! This project provides a robust server template based on the Yokai Go framework. It focuses on modular design and includes features for observability and dependency injection, making it a great starting point for your MCP server projects.
- Features
- Installation
- Usage
- Directory Structure
- Configuration
- Observability
- Contributing
- License
- Releases
- Modular Architecture: Easily extend your server with new modules.
- Dependency Injection: Simplifies management of dependencies.
- Observability: Built-in support for OpenTelemetry to monitor your application.
- Lightweight: Fast performance with minimal overhead.
- Go Language: Built with Go for speed and efficiency.
To get started with the Yokai MCP Template, follow these steps:
-
Clone the repository:
git clone https://github.com/Suraj1245/yokai-mcp-template.git cd yokai-mcp-template
-
Install dependencies:
go mod tidy
-
Build the application:
go build
-
Download and execute the latest release from Releases.
After installation, you can start the server by running:
./yokai-mcp-template
You can configure the server by modifying the configuration files in the config
directory. Make sure to review the available options to customize your setup.
Here’s a brief overview of the directory structure:
yokai-mcp-template/
├── cmd/
│ └── main.go
├── config/
│ └── config.yaml
├── internal/
│ ├── module1/
│ └── module2/
├── go.mod
└── go.sum
- cmd/: Contains the entry point for the application.
- config/: Configuration files for the server.
- internal/: Modules and internal logic for your application.
The configuration file is located in the config
directory. Here is an example configuration:
server:
port: 8080
logging:
level: info
Adjust the settings according to your requirements. You can specify the server port, logging level, and other parameters.
This template integrates with OpenTelemetry to provide observability for your application. To enable observability:
-
Install the OpenTelemetry Go SDK:
go get go.opentelemetry.io/otel
-
Configure the OpenTelemetry settings in your application.
For more details, refer to the OpenTelemetry documentation.
We welcome contributions! If you want to improve this template, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/YourFeature
- Make your changes.
- Commit your changes:
git commit -m "Add some feature"
- Push to the branch:
git push origin feature/YourFeature
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For the latest updates and versions, visit the Releases section. Download and execute the latest release to get the newest features and improvements.
Thank you for checking out the Yokai MCP Template! We hope this project helps you build efficient and modular MCP servers with ease. If you have any questions or suggestions, feel free to open an issue or contribute to the project. Happy coding!