MCP.so
登录

MCP Core Library

@MCPStudio

关于 MCP Core Library

Contains the business logic and MCP server ports.

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Core Library?

MCP Core Library is a crate containing the domain business logic and ports of an MCP server, following a hexagonal architecture. It defines pure business logic and interfaces (ports) while remaining independent of implementation details and specific technologies.

How to use MCP Core Library?

The README does not include installation or configuration instructions. It describes the crate’s architectural role and components; usage details would be provided in the crate’s own documentation.

Key features of MCP Core Library

  • Contains only domain business logic and ports.
  • Defines a Tool port for executable tools.
  • Defines a Transport port for network communication.
  • Includes abstract message types and domain errors.
  • Uses ToolRegistry for registering and searching tools.
  • Minimal dependencies: serde and tokio only.

Use cases of MCP Core Library

  • Building an MCP server with clean hexagonal architecture.
  • Decoupling domain logic from implementation details like JSON-RPC.
  • Managing tool registration and execution via ToolRegistry.

FAQ from MCP Core Library

What is the purpose of the MCP Core Library?

It holds the domain business logic and ports of an MCP server, following hexagonal architecture to keep domain independent of technology.

What dependencies does it require?

Only basic crates: serde and tokio (for async types), to remain minimal and preserve domain isolation.

Does it handle serialization protocols like JSON-RPC?

No, specific protocol details like JSON-RPC are deliberately excluded and will be implemented in external adapters, in accordance with hexagonal architecture principles.

How are tools managed in the library?

The ToolRegistry provides registration and search of tools by name. A simple internal implementation uses a HashMap<String, Box<dyn Tool>>, but could be formalized as a trait for different storage strategies.

What are the main ports defined?

Primary/driving ports: Tool (interface for executable tools). Secondary/driven ports: Transport (interface for network communication).

常见问题

What is the purpose of the MCP Core Library?

It holds the domain business logic and ports of an MCP server, following hexagonal architecture to keep domain independent of technology.

What dependencies does it require?

Only basic crates: `serde` and `tokio` (for async types), to remain minimal and preserve domain isolation.

Does it handle serialization protocols like JSON-RPC?

No, specific protocol details like JSON-RPC are deliberately excluded and will be implemented in external adapters, in accordance with hexagonal architecture principles.

How are tools managed in the library?

The `ToolRegistry` provides registration and search of tools by name. A simple internal implementation uses a `HashMap<String, Box<dyn Tool>>`, but could be formalized as a trait for different storage strategies.

What are the main ports defined?

Primary/driving ports: `Tool` (interface for executable tools). Secondary/driven ports: `Transport` (interface for network communication).

评论

开发工具 分类下的更多 MCP 服务器