Back to MCP directory
publicPublicdnsLocal runtime

handfuloflight_convex-mcp-server

一个基于TypeScript的MCP服务器,实现了简单的笔记系统,提供笔记资源和创建工具。

article

README

🚀 凸形 MCP 服务器

这是一个基于 TypeScript 的 MCP 服务器,实现了简单的笔记系统。它通过资源表示与工具创建,演示了核心的 MCP 概念,为笔记管理提供了便捷的解决方案。

🚀 快速开始

本服务器基于 TypeScript 构建,实现了一个简单的笔记系统,通过资源表示和工具创建,演示了核心 MCP 概念。

✨ 主要特性

资源

  • 可通过 note:// URI 列表和访问笔记。
  • 每个笔记都具备标题、内容和元数据。
  • 使用纯文本 MIME 类型,便于简单的内容访问。

工具

  • create_note:用于创建新的文本笔记。
    • 需指定标题和内容作为必填参数。
    • 会将笔记存储在服务器状态中。

📦 安装指南

开发环境安装

安装依赖

npm install

构建服务器

npm run build

带有自动重建的开发

npm run watch

与 Claude Desktop 集成安装

要与 Claude Desktop 配合使用,需添加服务器配置:

  • 在 MacOS 上:~/Library/Application Support/Claude/claude_desktop_config.json
  • 在 Windows 上:%APPDATA%/Claude/claude_desktop_config.json

配置示例如下:

{
  "mcpServers": {
    "convex-mcp-server": {
      "command": "/path/to/convex-mcp-server/build/index.js"
    }
  }
}

调试说明

由于 MCP 服务器通过标准输入输出进行通信,调试可能具有挑战性。我们推荐使用 MCP Inspector,它作为包脚本提供:

npm run inspector

Inspector 将提供一个可在浏览器中访问调试工具的 URL。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client