Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SANHANG_LOGNo日志开关,设为 0 关闭 stderr 日志 (Set to 0 to disable stderr logging)开
SANHANG_WAITNo默认阻塞等待上限(秒) (Default blocking wait limit in seconds)240
SANHANG_BASE_URLNo渲染后端地址 (Render backend URL)https://sanhangmath.top/api
SANHANG_STATE_DIRNo本机标识的存放目录,容器或只读环境可改到可写路径 (Directory where the local identifier is stored)~/.sanhang-mcp
SANHANG_HTTP_TIMEOUTNo单次 HTTP 超时(秒) (Single HTTP request timeout in seconds)30
SANHANG_POLL_INTERVALNo轮询间隔(秒) (Polling interval in seconds)3
SANHANG_USER_IDENTIFIERNo配额与归属标识。不设时首次运行生成 mcp-xxxxxxxx 并落盘复用;多人共用一台机器时才需要手动指定 (Quota/ownership identifier; auto-generated on first run if unset)本机自动生成

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
}

Tools

Functions exposed to the LLM to take actions

NameDescription
sanhang_renderA

把一句自然语言数学描述渲染成 Manim 动画视频,返回可直接播放的 mp4 地址与可复用的 Manim 代码。适用于函数图像、几何变换、微积分(极限/导数/积分/级数)、线性代数(矩阵/向量/特征值)、概率分布、复数与复平面、物理运动等可视化需求。默认阻塞等待渲染完成(约 30~90 秒);把 wait 设为 false 可立即拿到 task_id 稍后再查。同一描述命中缓存时会秒回历史结果。

sanhang_taskA

查询一个已提交渲染任务的状态;也可以阻塞等待它完成,或请求取消。配合 sanhang_render 的 wait=false 使用:先提交拿到 task_id,再在这里等结果,避免客户端超时。

sanhang_galleryA

浏览已公开的弦图作品(社区画廊)。可用来了解这套服务能画出什么、找参考风格,或给用户展示同类作品。返回标题、标签与视频直链。

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 3 tools

Disambiguation4/5

The three tools target clearly different actions: rendering a new animation, polling/cancelling an existing task, and browsing public works. The only mild overlap is that sanhang_render with wait=true blocks internally while sanhang_task also blocks on waiting, but the descriptions explicitly explain the intended pairing, so an agent can pick correctly.

Naming Consistency4/5

All tools share the predictable 'sanhang_' prefix, which keeps them grouped and recognizable. The suffix convention is slightly mixed (a verb for sanhang_render, nouns for sanhang_task and sanhang_gallery), but this is a minor deviation and each name remains readable.

Tool Count4/5

Three tools is on the lean side but each one has a clear, non-redundant role in the submit/poll/browse workflow, so nothing feels padded. The surface is tightly scoped to a single rendering service rather than being under-built.

Completeness4/5

The core lifecycle is covered: submit a render, poll or cancel a task, and browse community examples as a reference. Minor gaps exist (no way to list a user's own past tasks or retrieve previously generated Manim code without re-rendering), but these are workarounds rather than dead ends.