MCP.so
登录

MCP Conversation Server

@bsmi021

基本信息

分类

AI 与智能体

许可证

MIT

传输方式

stdio

作者

bsmi021

关于 MCP Conversation Server

暂无概览

#mcp#conversation-server#language-models

MCP Conversation Server 配置

暂无标准配置

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

代码仓库

MCP Conversation Server 工具

工具列表暂未提供

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

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

概览

What is MCP Conversation Server?

MCP Conversation Server is an MCP (Model Context Protocol) server implementation for managing conversations with OpenRouter's language models. It provides a standardized interface for applications to interact with various language models through a unified conversation management system.

How to use MCP Conversation Server?

Install the package via npm (npm install mcp-conversation-server), then configure it using a YAML file (config/models.yaml) that specifies your OpenRouter API key, persistence path, model definitions, and default model. In your application, import ConversationServer from the package, instantiate it with the loaded config, and call run(). The server exposes MCP tools (create-conversation, send-message, list-conversations) and resources (conversation://{id}, conversation://list).

Key features of MCP Conversation Server

  • Full MCP protocol compliance with resource management and tool-based interaction
  • Integration with all OpenRouter models including Claude 3 Opus, Sonnet, and Llama 2 70B
  • Real-time streaming responses with chunked handling and token counting
  • Create and manage multiple conversations with message history tracking
  • Token usage monitoring and model context window management
  • File system persistence with configurable storage location and automatic state management
  • Conversation filtering and search capabilities

Use cases of MCP Conversation Server

  • Building a chatbot that can switch between different LLM providers via OpenRouter
  • Creating a conversation-based tool or agent that persists discussions across sessions
  • Developing an application that needs to track token usage and context windows per conversation
  • Enabling streaming interactions with language models for real-time response display

常见问题

1

What does MCP Conversation Server replace?

This server replaces manual OpenRouter API calls by providing a standardized MCP interface. It manages conversations, token counting, and persistence so applications don’t need to implement those features themselves.

2

What are the runtime dependencies?

The server requires Node.js, an OpenRouter API key (configured in `config/models.yaml`), and the `mcp-conversation-server` npm package. No environment variables are needed since all configuration is done through the YAML file.

3

Where does conversation data live?

Conversation state is persisted to the file system. The default directory is `./conversations` but can be changed via the `persistence.path` setting in the YAML configuration file.

4

Does the server support streaming?

Yes. The `send-message` tool accepts a `stream` boolean parameter to enable real-time streaming responses, and the server includes chunked response handling and token counting for streaming.

5

What authentication does MCP Conversation Server use?

Authentication is handled through the OpenRouter API key provided in the YAML configuration. The server does not expose its own authentication layer; it relies on OpenRouter’s key validation for model access.

评论

AI 与智能体 分类下的更多 MCP 服务器