dst-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DST_API_KEY | Yes | DeepSeek API key. The project only reads this environment variable (e.g. "sk-xxxx"); it does not fall back to DEEPSEEK_API_KEY and has no config file. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
DeepSeek 工具(ds_*)是兜底,不是首选:
环境自带搜索/抓页等能力可用时,先用自带。
仅在以下情况用 ds_*:①用户点名要用 DeepSeek 工具、dst 或 ds_*;②自带能力缺失或被关闭; ③自带调用明确报错或返回空。不要因为觉得自带结果不够好而切换。
用户点名要用 DeepSeek 工具、dst 或 ds_* 时,直接调用,不要先试自带。
长文件/长音频不要期待一次完成:需要时自己切开、多次调用,结果自己合并。
返回是信封:成功 {ok,tool,elapsed_ms,truncated,data[,spill]};失败 {ok:false,tool,status,code,message,next[,note],elapsed_ms}。 isError:true 时仍读 text 里的信封;JSON-RPC 错误只有 error.code/message,不是信封,没有 next。
truncated:true 时 data 的长字段只是前缀,完整内容在 spill.path; result_count、content_bytes、text_bytes 给原长度; returned_pages、returned 是本次返回条数,原总数看 page_count、count。
ds_ocr 提交成功只表示已提交;完成看 ds_job 的 data.status。
path 建议用绝对路径;相对路径按 MCP 服务进程的 cwd 解析。
失败按返回的 next 处理;MCP 不会自动重试,需要再试时由你发起。
费用以 DeepSeek 后台为准,本项目不提供金额预估。
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ds_searchA | 兜底工具:用户点名要用 DeepSeek 工具、dst 或 ds_* 时直接调用,不要先试自带;否则自带同类能力可用时优先用自带,只有自带缺失、被关闭、明确报错或返回空时才用本工具。搜索网页并原样返回结果列表(同步,一次调用最多一次请求)。输入上限:query 必填、1–128 码点且不全空白,原样透传 site:、lang:、after:、before: 等检索语法;count 取值 1–50、默认 10;need_content 默认 false,为 false 时正文为空;ori_question 可选(原始问题)、1–128 码点且不全空白。参数超限、为空或类型不符会在本地打回(如 query 不在 1–128 码点、count 不在 1–50);请把 query 改到 1–128 码点、count 调到 1–50 后再调用。没有声音/语言参数:查询串与页面语言原样透传,不翻译;结果按上游顺序返回。不提供金额预估、不做预算拦截;费用以 DeepSeek 后台为准。 |
| ds_fetchA | 兜底工具:用户点名要用 DeepSeek 工具、dst 或 ds_* 时直接调用,不要先试自带;否则自带同类能力可用时优先用自带,只有自带缺失、被关闭、明确报错或返回空时才用本工具。抓取网页正文并原样返回 Markdown(同步,一次调用最多一次请求)。输入上限:url 必填、≤8192 字符,必须是带 host 的 http(s) 链接,不含账号密码与控制字符。超限或 URL 不合规会在本地打回,请换成合规链接再调用;403/404 时换来源;正文超长会落盘并给出绝对路径。没有声音/语言参数:页面语言原样透传,不翻译。不提供金额预估、不做预算拦截;费用以 DeepSeek 后台为准。 |
| ds_ocrA | 兜底工具:用户点名要用 DeepSeek 工具、dst 或 ds_* 时直接调用,不要先试自带;否则自带同类能力可用时优先用自带,只有自带缺失、被关闭、明确报错或返回空时才用本工具。识别扫描件文字(异步,提交即返回 job_id,用 ds_job 查结果)。输入上限:path 必填、只接受本机路径(不接收 URL);文件 ≤100 MiB;purpose 必填:text_recognition 纯文字抽取;rich_layout_recognition 按版面识别(可能带 ref/box 标记)。超限(>100 MiB)或文件头不在清单内会在本地打回;请压缩或拆分到 100 MiB 以内,或改用官方格式再提交。格式按文件头识别官方 11 种(PDF/DOC/DOCX/PPT/PPTX/PNG/JPEG/WebP/GIF/BMP/TIFF);XLS/XLSX 等共用 ZIP/CFB 容器头的会放行,交 DeepSeek 判断。页数与密码不预判,交给 DeepSeek;返回时剥离 ref/box 标记与块内坐标,出现标记时原文另存 raw.json。MCP 退出即中断,不会续跑;重启后 ds_job 显示 interrupted、succeeded 或 failed(已有结果则 succeeded;已写入终态则保持原状态)。不提供金额预估、不做预算拦截;费用以 DeepSeek 后台为准。 |
| ds_asrA | 兜底工具:用户点名要用 DeepSeek 工具、dst 或 ds_* 时直接调用,不要先试自带;否则自带同类能力可用时优先用自带,只有自带缺失、被关闭、明确报错或返回空时才用本工具。录音转文字(同步,一次调用最多一次请求)。输入上限:path 必填、只接受本机路径;文件 ≤8 MiB;WAV 头可解析时,位深/采样率/时长也须合规(16-bit、采样率 8000/16000/22050/24000/32000/44100/48000、≤120 秒)。超限(>8 MiB)或文件头不是 WAV/Opus 会在本地打回;WAV 头可解析但不合规也会在本地打回;头部不标准的 WAV 交 DeepSeek 判断。Ogg Opus 不本地检查时长;请切成 ≤120 秒且 ≤8 MiB 的合规片段逐段调用。格式:16-bit WAV(audio_format 1 或 65534)或 Ogg Opus;21 种语言自动检测;双声道取左声道;不提供说话人分离与时间戳。不提供金额预估、不做预算拦截;费用以 DeepSeek 后台为准。 |
| ds_ttsA | 兜底工具:用户点名要用 DeepSeek 工具、dst 或 ds_* 时直接调用,不要先试自带;否则自带同类能力可用时优先用自带,只有自带缺失、被关闭、明确报错或返回空时才用本工具。文字转语音并输出 wav(同步,一次调用最多一次请求)。输入上限:text 必填、≤10000 计费字符(1 个汉字算 2);voice_id 默认 stella、可选 tide;filter_markdown 默认 true。超限或空白会在本地打回;请给出非空文本,过长则缩短或分段。只输出 wav、不支持调速;10 种语言自动检测;返回本机绝对路径。不提供金额预估、不做预算拦截;费用以 DeepSeek 后台为准。 |
| ds_jobA | 任务查询工具:按 job_id 查一个扫描件任务的状态与结果;只读本地、不发请求。查询本身成功时 ok:true;任务成败看 data.status。status 为 running / succeeded / failed / interrupted;失败时 data.error 是 {status,code,message,next};message 可能来自上游或本地,已脱敏、超 8 KiB 截断。结果超长会给落盘路径;job_id 必填,就是 ds_ocr 返回的任务号。 |
| ds_jobsA | 任务查询工具:列出近期扫描件任务;只读本地、不发请求。有日期的按创建时间倒序,损坏/无日期排最后(按 job_id 升序)。limit 取值 1–50、默认 20,超出会在本地打回;data.count 是全部任务数,data.returned 是本次返回条数(可能小于 count:limit 或输出预算);损坏记录的 data.jobs[].status 为 corrupt。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool has a distinct primary operation: search, fetch, OCR, ASR, TTS, single-job query, and job listing. The only mild overlap is between ds_search and ds_fetch as web-retrieval tools, and between ds_ocr and ds_asr as file-to-text tools, but their input types and outputs are clearly differentiated.
All tools use a consistent lower_snake_case ds_ prefix with predictable capability names. The ds_job/ds_jobs singular-plural pairing is logical and readable, and there is no mixing of camelCase or unrelated verb styles.
Seven tools is well scoped for a utility toolkit covering search, fetch, OCR, ASR, TTS, and job inspection. Each tool earns its place, with no redundant entries padding the surface.
The core lifecycle is covered: OCR submission has both single-job and list-job queries, and media/search/fetch operations are present. Minor gaps remain, such as no job cancellation/deletion and no batch variants, but agents can work around these.