|
🛰️航天仿真算法库 SpaceAST 0.4.0
|
#include "AstGlobal.h"#include "AstUtil/StringView.hpp"命名空间 | |
| namespace | ast |
枚举 | |
| enum class | ast::EMcpErrorCode : int { ast::EMcpErrorCode::eParseError = -32700 , ast::EMcpErrorCode::eInvalidRequest = -32600 , ast::EMcpErrorCode::eMethodNotFound = -32601 , ast::EMcpErrorCode::eInvalidParams = -32602 , ast::EMcpErrorCode::eInternalError = -32603 } |
函数 | |
| bool | ast::aMcpIsSupportedProtocolVersion (StringView version) |
变量 | |
| constexpr const char * | ast::kMcpJsonRpcVersion = "2.0" |
| constexpr const char * | ast::kMcpProtocolVersion20251125 = "2025-11-25" |
| constexpr const char * | ast::kMcpProtocolVersion20250618 = "2025-06-18" |
| constexpr const char * | ast::kMcpProtocolVersion20250326 = "2025-03-26" |
| constexpr const char * | ast::kMcpProtocolVersion20241105 = "2024-11-05" |
| constexpr const char * | ast::kMcpDefaultProtocolVersion = kMcpProtocolVersion20251125 |
| constexpr const char * | ast::kMcpMethodInitialize = "initialize" |
| constexpr const char * | ast::kMcpMethodInitialized = "notifications/initialized" |
| constexpr const char * | ast::kMcpMethodCancelled = "notifications/cancelled" |
| constexpr const char * | ast::kMcpMethodPing = "ping" |
| constexpr const char * | ast::kMcpMethodToolsList = "tools/list" |
| constexpr const char * | ast::kMcpMethodToolsCall = "tools/call" |
MCP协议常量
定义JSON-RPC错误码、方法名以及服务器支持的MCP协议版本
SpaceAST项目(https://github.com/space-ast/ast) 本软件基于 Apache 2.0 开源许可证分发。 您可在遵守许可证条款的前提下使用、修改和分发本软件。 许可证全文请见:
http://www.apache.org/licenses/LICENSE-2.0
重要须知: 软件按"现有状态"提供,无任何明示或暗示的担保条件。 除非法律要求或书面同意,作者与贡献者不承担任何责任。 使用本软件所产生的风险,需由您自行承担。