Skip to main content
Glama

Sun MCP Server

🌞 一个专门为 Agent 会话总结设计的 MCP 服务器,当输入 -sun 命令时自动总结当前会话并保存为 .mdc 文件。

English | 中文

✨ 功能特性

  • 🌞 简单命令: 只需输入 -sun 即可触发会话总结

  • 🌍 多语言支持: -sun 生成中文总结,-sun en 生成英文总结

  • 📝 智能总结: 自动分析会话内容,提取核心精髓和关键要点

  • 📁 自动保存: 按照 日期时间_功能.mdc 格式保存到 .sun 文件夹

  • 🎯 状态跟踪: 自动判断任务完成状态(completed/partial/failed/ongoing)

  • 📊 结构化输出: 包含核心精髓、关键要点、完成成果、后续步骤等

  • 🔍 历史查看: 支持列出和查看历史总结

Related MCP server: IDE Chat Summarizer

🚀 快速开始

方式 1: npm 安装(推荐)

在 Claude Desktop 中使用 Easy MCP Installation:

  • Name: Sun MCP

  • Command: npx -y sun-mcp@latest

方式 2: 手动配置

在 Claude Desktop 配置文件中添加:

{
  "mcpServers": {
    "sun-mcp": {
      "command": "npx",
      "args": ["-y", "sun-mcp@latest"]
    }
  }
}

配置完成后重启 Claude Desktop。

📖 使用方法

基本用法

在 Claude Desktop 中直接输入:

-sun                    # 生成中文总结
-sun en                 # 生成英文总结
-sun 这次讨论了API开发    # 带上下文的中文总结

生成的文件

总结文件会自动保存到项目根目录的 .sun 文件夹中:

.sun/
├── 20241208_143022_MCP服务器开发.mdc
├── 20241208_150315_API开发.mdc
└── 20241208_162045_Bug修复.mdc

📄 总结文件格式

每个 .mdc 文件包含结构化的会话总结:

# 功能名称会话总结

## 会话概要

**时间戳**: 2024-12-08T14:30:22.000Z
**完成状态**: completed
**消息数量**: 15
**主要功能**: MCP 服务器开发

## 核心精髓

用户要求创建 MCP 服务器,助手实现了完整的会话总结功能...

## 关键要点

- 创建了 MCP 服务器架构
- 实现了智能会话分析
- 添加了文件保存功能

## 完成成果

- 成功创建了功能完整的 MCP 服务器
- 实现了自动化会话总结

## 后续步骤

- 进行功能测试
- 优化总结算法

🛠️ 本地开发

# 克隆项目
git clone https://github.com/ChenYCL/sun-mcp.git
cd sun-mcp

# 安装依赖
npm install

# 构建项目
npm run build

# 本地测试
node dist/server.js

🎯 解决的问题

  • 会话过大导致精度损失: 通过及时总结保存关键信息

  • 上下文丢失: 结构化保存会话精髓和成果

  • 难以回顾: 提供历史总结查看功能

  • 手动整理繁琐: 一键自动总结和保存

🤝 贡献

欢迎提交 Issue 和 Pull Request!

Available Tools

3 tools
sun_get_summaryC

Get content of a specific summary file

ParametersJSON Schema
NameRequiredDescriptionDefault
filenameYesName of the summary file to retrieve

TDQS

C2.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool 'Get content', implying a read-only operation, but does not specify if it requires authentication, has rate limits, returns errors for missing files, or details the output format (e.g., text, JSON). This leaves significant gaps in understanding how the tool behaves beyond basic retrieval.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, straightforward sentence: 'Get content of a specific summary file'. It is front-loaded and wastes no words, making it efficient. However, it could be slightly more informative without losing conciseness, such as hinting at the file type or source.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (1 parameter, no output schema, no annotations), the description is incomplete. It does not explain what a 'summary file' is, how content is returned, or potential errors. For a retrieval tool, this lack of context makes it harder for an agent to use correctly without trial and error.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with the 'filename' parameter clearly documented. The description adds no additional meaning beyond the schema, such as examples of valid filenames or constraints. Since the schema does the heavy lifting, the baseline score of 3 is appropriate, as the description does not compensate but also does not detract.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool 'Get content of a specific summary file', which clearly indicates it retrieves content from a file. However, it lacks specificity about what a 'summary file' entails (e.g., format, source) and does not differentiate from siblings like 'sun_list_summaries' (which likely lists files) or 'sun_summarize' (which might generate summaries). This makes the purpose somewhat vague but understandable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus its siblings. It does not mention prerequisites, such as needing to know the filename from 'sun_list_summaries', or alternatives like using 'sun_summarize' for creating summaries instead of retrieving them. Without any usage context, the agent must infer this from tool names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

sun_list_summariesB

List all saved session summaries

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the action ('List') but doesn't describe traits like whether this is a read-only operation, if it requires permissions, how results are returned (e.g., pagination, sorting), or potential side effects. This leaves significant gaps for a tool that interacts with saved data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It is front-loaded with the core action and resource, making it easy to parse quickly, and there is no wasted verbiage.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no output schema, no annotations), the description is minimally adequate. However, it lacks context about the return format (e.g., list structure, summary fields) and behavioral aspects like error handling or data access constraints, which could be important for an AI agent to use it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description doesn't add parameter details, which is appropriate here. A baseline of 4 is applied as it adequately handles the lack of parameters without introducing confusion.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('List') and resource ('all saved session summaries'), making the purpose unambiguous. It doesn't explicitly differentiate from sibling tools like 'sun_get_summary' (which likely retrieves a specific summary) or 'sun_summarize' (which likely creates summaries), but the scope 'all saved' provides some implicit distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'sun_get_summary' or 'sun_summarize'. It lacks context about prerequisites, such as whether summaries must exist or if authentication is needed, and offers no explicit when-not-to-use scenarios or comparisons.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

sun_summarizeC

Summarize current session and save as .mdc file when -sun command is used. Use -sun for Chinese or -sun en for English

ParametersJSON Schema
NameRequiredDescriptionDefault
sessionContentYesThe session content to summarize (conversation messages)
functionalityNoOptional: Main functionality or topic of the session
contextNoOptional: Additional context about the session
languageNoLanguage for the summary: zh for Chinese (default), en for English

TDQS

C2.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions saving as a .mdc file, which implies a write operation, but doesn't specify where it's saved, whether it overwrites existing files, what permissions are needed, or what happens on failure. For a tool that creates files, this leaves critical behavioral aspects undocumented.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is brief (two sentences) but contains confusing elements: the '-sun command' reference seems misplaced for an AI tool interface, and the second sentence repeats language information already in the schema. While not verbose, it includes content that doesn't effectively serve its purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool that creates files with 4 parameters and no annotations or output schema, the description is inadequate. It doesn't explain the summary format, file naming conventions, error conditions, or how this tool relates to its siblings. The absence of output schema means the description should address return values, which it doesn't.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already fully documents all 4 parameters. The description adds no additional parameter information beyond what's in the schema, not explaining relationships between parameters or providing usage examples. This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool 'summarizes current session and saves as .mdc file', which provides a clear verb+resource combination. However, it doesn't differentiate from sibling tools like 'sun_get_summary' or 'sun_list_summaries', leaving ambiguity about when to use this versus retrieving existing summaries.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description mentions using '-sun command' for Chinese or '-sun en' for English, but this appears to be command-line syntax rather than guidance for AI agent usage. It provides no explicit when-to-use instructions, no exclusions, and no comparison to sibling tools, offering minimal practical guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 3 tool updates
    • First observedsun_get_summary
    • First observedsun_list_summaries
    • First observedsun_summarize

TDQS

B3.3/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: sun_get_summary retrieves content of a specific file, sun_list_summaries lists all available summaries, and sun_summarize creates and saves a new summary. There is no overlap in functionality, making tool selection unambiguous for an agent.

Naming Consistency5/5

All tools follow a consistent 'sun_verb_noun' pattern with snake_case, using descriptive verbs like 'get', 'list', and 'summarize'. This uniformity makes the tool set predictable and easy to understand.

Tool Count5/5

With 3 tools, the server is well-scoped for session summary management, covering creation, listing, and retrieval. Each tool earns its place without being overly sparse or bloated, fitting typical use cases efficiently.

Completeness4/5

The tools provide good coverage for the session summary domain, including create (summarize), read (get_summary), and list operations. A minor gap exists in update or delete functionality, but agents can likely work around this for basic workflows.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ChenYCL/sun-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server