MCP.so
登录

MCP Core Library

@MCPStudio

基本信息

分类

开发工具

许可证

MIT license

传输方式

stdio

作者

MCPStudio

关于 MCP Core Library

Contains the business logic and MCP server ports.

#mcp-core#business-logic#hexagonal-architecture

MCP Core Library 配置

暂无标准配置

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

代码仓库

MCP Core Library 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 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.

常见问题

1

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.

2

What dependencies does it require?

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

3

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.

4

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.

5

What are the main ports defined?

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

评论

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