Skip to main content
Glama

MCP Chat

MCP Chat 是一个命令行界面应用程序,允许通过 Anthropic API 与 AI 模型进行聊天交互。该应用程序支持文档检索、基于命令的提示以及通过 MCP(模型控制协议)架构的可扩展工具集成。

先决条件

  • Bun.js

  • Anthropic API 密钥

Related MCP server: MCP Chat

设置

  1. 在项目根目录创建或编辑 .env 文件,并确保以下变量已正确配置:

ANTHROPIC_API_KEY=""  # Introduce tu clave secreta de la API de Anthropic.
  1. 安装依赖

bun install
  1. 运行项目

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

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      -