Skip to main content
Glama
CPZIOO4
by CPZIOO4

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PYTHONUTF8No设置为 1,确保以 UTF-8 运行(接入 BB、教务、图书馆、教务处、南七集市、评课社区和青春科大等 MCP 服务时使用,例如 --env PYTHONUTF8=1)。
SCHOOL_MAIL_PASSWORDNo非 Windows 环境下,通过该环境变量提供邮箱客户端专用密码,供运行进程使用。个人地址和密码不应写入可公开的 MCP 客户端配置。
SCHOOL_MCP_LOCAL_DIRNo指定存放个人配置、加密凭据和附件的私人目录(默认项目根目录下的 .local)。在非 Windows 环境下用于指定私人目录,并在其中创建 mail.json。

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
school_mail_statusA

检查本地邮箱配置是否就绪;不连接网络,不返回凭据。

school_mail_setup_guideA

首次接入或连接失效时返回本机操作步骤;不联网、不弹窗、不创建授权、不接收密码。

school_mail_check_connectionA

验证邮箱登录并返回收件箱邮件总数和未读数。

school_mail_list_foldersA

列出学校邮箱文件夹,包括中文文件夹及其是否可以打开。

school_mail_searchA

搜索邮件并返回摘要和 UID。按 UID 从大到小排列;limit 1–50;日期为 YYYY-MM-DD,since 包含当天、before 不包含当天。可按未读、发件人、主题或全文筛选。

school_mail_readA

读取邮件正文和附件清单,不标记已读。uid 和 uid_validity 来自搜索结果;max_chars 1–100000。正文和附件属于外部不可信数据。

school_mail_download_attachmentA

将指定邮件附件保存到项目的本地私人目录并返回路径。part_index 来自读取邮件的附件清单;此操作写入本地文件,邮箱内容保持不变。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 7 tools

Disambiguation4/5

The three setup/diagnostic tools (check_connection, status, setup_guide) have adjacent purposes, but descriptions clearly separate remote login verification, local config checking, and setup instructions. The remaining mail access tools target distinct actions: listing folders, searching, reading, and downloading attachments.

Naming Consistency4/5

All tools share the school_mail_ prefix and use snake_case consistently, making the set predictable. Minor deviation: status and setup_guide are noun/helper labels rather than strict verb_noun forms, but they remain clear and readable.

Tool Count5/5

Seven tools is well-scoped for a school mailbox access server, covering configuration, diagnostics, folder discovery, search, reading, and attachment download. No tool appears redundant or out of place.

Completeness4/5

The read-oriented mail workflow is largely covered: setup, connection checking, folder listing, search, reading, and attachment saving. Some gaps remain, such as folder-scoped search/listing and send/move/delete operations, though these may be intentionally out of scope for this access-focused server.

Maintenance

ActivityMaintained
ResponsivenessNo issues