MCP.so
登录

MCP Service Framework

@Hiohk

基本信息

分类

开发工具

许可证

MIT license

传输方式

stdio

作者

Hiohk

关于 MCP Service Framework

一个基于MCP协议开发的LLM(大模型)服务端项目

MCP Service Framework 配置

暂无标准配置

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

代码仓库

MCP Service Framework 工具

工具列表暂未提供

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

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

概览

What is MCP Service Framework?

A scalable service framework based on the Model Context Protocol (MCP), providing standardized tool calling interfaces and AI integration. It includes a base service architecture, a weather service implementation example, and an intelligent dialogue processing pipeline.

How to use MCP Service Framework?

Install dependencies (npm install @modelcontextprotocol/sdk express dotenv), configure environment variables (API keys for DeepSeek and a weather service), and start the main service with npm run start:prod. Custom MCP services can be created using the provided service template and integrated into the client.

Key features of MCP Service Framework

  • Full MCP protocol Server/Client communication model
  • Hot‑pluggable service registration and invocation
  • Context‑aware dialogue management with automatic tool calls
  • Multi‑turn conversation state retention
  • Request retry mechanism (default 3 times) and unified error handling
  • Service health monitoring

Use cases of MCP Service Framework

  • Querying real‑time weather via natural language chat (e.g., “北京今天天气如何?”)
  • Rapidly extending AI assistants with custom tool services
  • Building production‑grade applications that combine AI reasoning with standardized tool calls

常见问题

1

What dependencies are required?

Node.js, `@modelcontextprotocol/sdk`, `express`, and `dotenv`. API keys for DeepSeek and a weather service are also needed.

2

How do I create a custom tool service?

Follow the provided template: create a JavaScript file using `Server` from the MCP SDK, implement `ListToolsRequestSchema` and `CallToolRequestSchema` handlers, then integrate it into the client with `StdioClientTransport`.

3

What transport protocol is used for service communication?

Stdio transport is used for communication between the MCP Client and MCP Servers.

4

What is the maximum conversation context length?

The default maximum context length is 5 dialogue turns.

5

How does error handling and retry work?

The framework includes a request retry mechanism with default intervals of 500 ms, 1000 ms, and 1500 ms (3 attempts). Error codes follow the standard MCP error schema.

评论

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