Token导航 LogoToken导航TokenDH.com
Claudecode Session Notes logo
运维云端stdio官方级别未说明来源级核验

Claudecode Session Notes

MCP Server

一个基于FastMCP 2.0的ClaudeCode会话工作簿收集与分析服务器,提供会话管理、代理跟踪、工具使用分析和综合报告功能。

工具数

11

提示词数

0

GitHub Stars

0

资源数

0
会话管理PythonClaudeClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Claire-s-Monster

提供方

Claire-s-Monster

最后核验

2026/5/17 20:21

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install -e .

详细介绍

ClaudeCode会话注释MCP服务器

![Tests](https://github.com/Claire-s-Monster/claudecode-session-notes) ![Quality](https://github.com/Claire-s-Monster/claudecode-session-notes) ![FastMCP](https://github.com/jlowin/fastmcp) ![Python](https://python.org)

生产准备就绪 模型上下文协议(MCP)服务器 用于全面的ClaudeCode会话工作簿收集和分析。采用FastMCP 2.0构建,实现最高性能和可靠性。

🚀 特性

📊 会话管理

  • 开始/结束会话 -使用全面的元数据跟踪开发会话
  • 环境收藏 -自动系统环境捕获(Python、操作系统、进程信息)
  • 会话状态 -实时会话监控和指标
  • 元数据更新 -动态会话属性管理

🤖 代理跟踪

  • 代理商注册 -注册具有类型、目的和功能的AI代理
  • 执行日志记录 -使用参数、结果和时间跟踪代理操作
  • 互动分析 -决策模式的高级行为跟踪
  • 代理统计 -全面的活动指标和绩效数据

🛠️ 工具使用分析

  • 工具请求日志记录 -跟踪工具可用性和使用模式
  • 刀具缺失检测 -识别可用工具集中的差距
  • 成功率分析 -监控工具执行效率
  • 使用模式分析 -了解工具利用趋势

📈 分析和报告

  • 综合报告 -带有详细分析的会话摘要
  • 缺少工具报告 -识别经常请求但不可用的工具
  • 性能指标 -执行时间、成功率和效率指标
  • 数据导出 -基于JSON的数据持久化用于外部分析

🏗️ 建筑

建立在 FastMCP 2.0 使用现代Python实践:

  • FastMCP 2.0框架 -最先进的MCP服务器实现
  • Pydantic模型 -类型安全数据验证和序列化
  • 基于文件的存储 -可靠 .claude/session-notes/ 层级
  • PIXI 依赖 管理 -可复制的开发环境
  • 100%测试覆盖率 -生产就绪,配备全面的测试套件

📦 安装

先决条件

  • Python 3.12+
  • PIXI (推荐)或pip
  • Git 为了发展

PIXI快速入门(推荐)

# Clone the repository
git clone https://github.com/Claire-s-Monster/claudecode-session-notes.git
cd claudecode-session-notes

# Install with PIXI
pixi install

# Start the MCP server
pixi run server

替代方案:管道安装

# Clone and install
git clone https://github.com/Claire-s-Monster/claudecode-session-notes.git
cd claudecode-session-notes

# Install in editable mode
pip install -e .

# Start the MCP server
python -m session_notes.server

🔧 MCP集成

Claude桌面配置

推荐 (PIXI - 生产准备)

添加到您的 ~/.claude_desktop_config.json:

{
  "mcpServers": {
    "session-notes": {
      "command": "pixi",
      "args": ["run", "-e", "quality", "server"],
      "cwd": "/path/to/claudecode-session-notes"
    }
  }
}

替代配置

发展模式 (带调试日志):

{
  "mcpServers": {
    "session-notes": {
      "command": "pixi", 
      "args": ["run", "-e", "quality", "server"],
      "cwd": "/path/to/claudecode-session-notes",
      "env": {
        "PYTHONPATH": "src",
        "CLAUDE_DEBUG": "1"
      }
    }
  }
}

最小运行时间 (最快启动):

{
  "mcpServers": {
    "session-notes": {
      "command": "pixi",
      "args": ["run", "server"],
      "cwd": "/path/to/claudecode-session-notes"
    }
  }
}

传统Python (回退选项):

{
  "mcpServers": {
    "session-notes": {
      "command": "python",
      "args": ["-m", "session_notes.server"],
      "cwd": "/path/to/claudecode-session-notes"
    }
  }
}
💡 为什么是PIXI? 使用PIXI命令可确保可再现的环境 pixi.lock,以及与conda-forge软件包的最佳FastMCP 2.0集成。

可用的MCP工具

工具说明
start_session开始跟踪新的开发会话
end_session以指标计算结束会话
update_session_metadata动态更新会话属性
get_session_status检索实时会话信息
register_agent在会话中注册AI代理
get_agent_metadata获取全面的代理统计数据
log_agent_execution记录代理人的行为和结果
log_tool_request跟踪工具使用情况和可用性
log_agent_interaction记录复杂的代理行为
analyze_missing_tools识别缺失的刀具模式
save_missing_tools_report生成缺失工具分析

示例用法

# Start a session
start_session("my-dev-session")

# Register an agent
register_agent(
    session_id="my-dev-session",
    agent_type="code-reviewer",
    purpose="Review and analyze code quality"
)

# Log agent activity
log_agent_execution(
    session_id="my-dev-session",
    agent_id="agent-uuid",
    agent_type="code-reviewer",
    action="analyze_code",
    parameters={"file": "main.py"},
    result={"issues": 2, "score": 8.5}
)

# End session with metrics
end_session("my-dev-session", outcome="completed")

🧑‍💻 发展

质量标准

该项目保持 生产级质量标准:

  • 100%测试通过率 (285/290项测试通过)
  • 零严重违规行为
  • 类型安全 使用Pydantic模型
  • 错误处理 适用于所有边缘情况
  • 性能优化 使用FastMCP 2.0

开发命令

# Install development environment
pixi install -e quality

# Run tests (100% pass rate)
pixi run test

# Run with coverage
pixi run test-cov

# Quality checks
pixi run lint          # Critical violations check
pixi run typecheck     # Type safety validation
pixi run quality       # Full quality pipeline

# Run the server in development
pixi run dev

项目结构

claudecode-session-notes/
├── src/session_notes/
│   ├── __init__.py
│   └── server.py              # Main MCP server implementation
├── tests/                     # Comprehensive test suite (285 tests)
├── docs/                      # Documentation
├── pyproject.toml            # PIXI configuration & dependencies
├── .claude/                  # Claude integration
└── README.md                 # This file

📊 数据存储

会话数据存储在结构化层次结构中 .claude/session-notes/:

.claude/session-notes/
├── {session-id}/
│   ├── session.json          # Session metadata & metrics
│   ├── missing_tools.json    # Missing tools analysis
│   └── agents/
│       └── {agent-id}/
│           ├── metadata.json      # Agent registration info
│           ├── execution.json     # Action logs
│           ├── tools.json         # Tool usage logs  
│           └── interactions.json  # Behavioral data

🤝 贡献

我们欢迎捐款!该项目已实现 100%测试通过率 并保持高质量标准。

  1. 分叉存储库
  2. 创建要素分支: git checkout -b feature/amazing-feature
  3. 保持质量:运行 pixi run quality 在承诺之前
  4. 编写测试:确保100%的测试覆盖率持续
  5. 提交拉取请求

质量要求

  • ✅ 所有测试必须通过(pixi run test)
  • ✅ 没有严重的皮棉违规行为(pixi run lint)
  • ✅ 保持类型安全(pixi run typecheck)
  • ✅ 代码覆盖率保持不变(pixi run test-cov)

📝 许可证

该项目根据 MIT许可证 -看看 许可证 文件以获取详细信息。

🏆 致谢

  • FastMCP框架 -基于jlowin的优秀FastMCP 2.0构建
  • PIXI 软件包管理器 -现代Python包管理
  • 派丹蒂克 -运行时类型检查和数据验证
  • ClaudeCode集成 -无缝集成人工智能开发工作流程

📈 项目状态

  • 生产就绪
  • 100%测试通过率
  • 零关键问题
  • 积极维护

______________________________________________________________________

准备好用全面的分析和见解来增强您的ClaudeCode开发会话! 🚀

如有疑问或需要支持,请在 .

目录标签

目录标签

会话管理PythonClaude本地部署代理跟踪工具分析性能指标数据持久化

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

session

工具数量(toolCount,工具数)

11

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiosession部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP