-
Notifications
You must be signed in to change notification settings - Fork 16
Coding principles
ZeusChan edited this page May 16, 2025
·
5 revisions
If you want to submit a pull request (PR) to this project, you need to abide by the following principles. Otherwise, you don't need to pay attention to the following principles.
- In order to achieve maximum compatibility with more environments and reduce the requirements for the compiler version, code in accordance with the C++ 14 specification.
- To maximize support for cross - system platforms (such as Windows, Linux, macOS, and Android), the core protocol part (wrapped in the MCP namespace) is implemented using only the C++ standard library, and platform - specific APIs are not used unless necessary.
- To ensure that the protocol implementation is as lightweight, extensible, and maintainable as possible, the code should be as concise as possible, and complex components and large - scale open - source libraries should not be used unless necessary.
If you want to develop your own MCP Server based on this project, this item is for you.
- When developing the specific business code of the MCP Server using this SDK, there are no restrictions on the C++ standard version, nor on the use of platform-specific APIs. Developers can make their own decisions based on their business needs.