mcp-chat
MCP Chat
MCP Chat 是一个命令行界面应用程序,允许通过 Anthropic API 与 AI 模型进行聊天交互。该应用程序支持文档检索、基于命令的提示以及通过 MCP(模型控制协议)架构的可扩展工具集成。
先决条件
Bun.js
Anthropic API 密钥
Related MCP server: MCP Chat
设置
在项目根目录创建或编辑
.env文件,并确保以下变量已正确配置:
ANTHROPIC_API_KEY="" # Introduce tu clave secreta de la API de Anthropic.安装依赖
bun install运行项目
bun run src/main.ts用法
基本交互
只需输入你的消息并按 Enter 即可与模型聊天。
文档检索
使用 @ 符号后跟文档 ID,将文档内容包含在你的查询中:
> Cuentame sobre @deposition.md命令
使用 / 前缀来执行 MCP 服务器中定义的命令:
> /format deposition.md按 Tab 键可自动补全命令。
开发
添加新文档
编辑 src/mcp-server/core/docs.ts 中的 DOCS 数组以添加新文档。
此项目是使用 Bun v1.3.11 中的 bun init 创建的。Bun 是一个快速且全能的 JavaScript 运行时。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Persistent context for Claude. Your AI always knows your projects and next actions across sessions.
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Share context and questions between Claude instances — VS Code, claude.ai web, and mobile.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA command-line interface application that enables interactive chat with AI models through the Anthropic API, supporting document retrieval, command-based prompts, and extensible tool integrations.-
- FlicenseNot gradedqualityDmaintenanceA command-line interface application that enables interactive chat with AI models through the Anthropic API, supporting document retrieval, command-based prompts, and extensible tool integrations.-
- FlicenseBqualityDmaintenanceEnables interactive chat with AI models via Anthropic API, supporting document retrieval and extensible command-based tool integrations.2-
- FlicenseBqualityDmaintenanceEnables interactive chat with AI models through the Anthropic API, supporting document retrieval and command-based prompts.2-