对话笔记保存服务

FlowNoter MCP Server是一款用于将对话记录保存为Markdown文件的服务,自动整理笔记并过滤无关信息。

  • by CestcaVision
  • JavaScript
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 CestcaVision/flownoter

使用说明

FlowNoter MCP 服务器

一个用于将对话笔记保存为Markdown文件的模型上下文协议(MCP)服务器。

特点/功能

  • 📝 将客服对话历史保存为Markdown笔记
  • 🗂️ 自动整理笔记在一个 notes 文件夹
  • 🧹 过滤掉思考过程和工具执行细节
  • ⏰ 为每条笔记添加时间戳
  • 🎯 从助手消息中提取清晰的回复
  • 🔧 可配置的对话轮次保存数量

安装

通过 npm

# Install globally
npm install -g @tricrepe/flownoter

# Or use with npx (no installation needed)
npx @tricrepe/flownoter

本地开发

git clone https://github.com/tricrepe/flownoter.git
cd flownoter
npm install
npm run build

配置

将此添加到您的MCP设置配置文件中:

选项1:使用npx(推荐)

{
  "mcpServers": {
    "flownoter": {
      "command": "npx",
      "args": ["-y", "@tricrepe/flownoter"]
    }
  }
}

选项2:全局安装

npm install -g @tricrepe/flownoter
{
  "mcpServers": {
    "flownoter": {
      "command": "flownoter"
    }
  }
}

选项3:本地开发

{
  "mcpServers": {
    "flownoter": {
      "command": "node",
      "args": ["/path/to/flownoter/dist/index.js"]
    }
  }
}

可用工具

保存对话备注

将最近的对话消息保存为Markdown笔记。

参数:

  • messages (必需):对话消息数组
    • 每条信息应包含:
      • role“用户”或“助手”
      • content消息内容
  • user_question (必填):用户的问题将用作笔记标题
  • num_messages (可选):要包含的最近对话轮次数量(默认:所有消息)

示例:

{
  "messages": [
    {
      "role": "user",
      "content": "How do I create an MCP server?"
    },
    {
      "role": "assistant",
      "content": "To create an MCP server, you need to..."
    }
  ],
  "user_question": "Creating an MCP server",
  "num_messages": 1
}

输出格式

笔记保存在 notes/ 文件夹,格式如下:

# [User Question]

**Created:** [ISO 8601 Timestamp]

---

## Question

[User's question]

## Answer

[Assistant's clean response without thinking process or tool calls]

文件命名

笔记文件的命名方式为:

  • 用户问题的净化版本(仅包含字母数字字符和中文字符)
  • 用于确保唯一性的时间戳
  • .md 扩展;延伸

示例: Creating_an_MCP_server_1696348800000.md

发展

构建

npm run build

本地运行

npm start

许可证

ISC(互联网标准委员会)