海棠诗社
Search and browse classical Chinese poetry on haitang.app. Read-only and public.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"haitang": {
"url": "https://haitang.app/mcp"
}
}
}遠端端點
https://haitang.app/mcpstreamable-http它能做什麼
工具清單
工具(16)
🟢search_poetry(query, authorLimit, workLimit)
Search public classical Chinese poetry by keyword across authors and works. Returns public URLs and short excerpts. Use get_work or get_author for details.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 60,
"description": "Keyword matching public authors and poetry, 1–60 characters."
},
"authorLimit": {
"default": 10,
"type": "integer",
"minimum": 1,
"maximum": 20
},
"workLimit": {
"default": 10,
"type": "integer",
"minimum": 1,
"maximum": 20
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_dynasties(collection, category, tag)
List all public dynasties as name/slug pairs. Use the dynasty name as category when browsing works or authors. Optional browse filters also return live facets for collections, dynasties and types; the static list stays complete.
輸入結構描述
{
"type": "object",
"properties": {
"collection": {
"description": "Collection ID string from list_collections, for example \"1\".",
"type": "string",
"pattern": "^[1-9]\\d{0,9}$"
},
"category": {
"description": "Dynasty name from list_dynasties, for example 唐. Not a group name.",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"tag": {
"description": "Work kind slug from list_types: shi (诗), ci (词), qu (曲), wen (文).",
"type": "string",
"enum": [
"shi",
"ci",
"qu",
"wen"
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_collections(collection, category, tag)
List all public collections as name/slug pairs. Use the collection slug as the collection ID string when browsing works. Optional browse filters also return live facets for collections, dynasties and types; the static list stays complete.
輸入結構描述
{
"type": "object",
"properties": {
"collection": {
"description": "Collection ID string from list_collections, for example \"1\".",
"type": "string",
"pattern": "^[1-9]\\d{0,9}$"
},
"category": {
"description": "Dynasty name from list_dynasties, for example 唐. Not a group name.",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"tag": {
"description": "Work kind slug from list_types: shi (诗), ci (词), qu (曲), wen (文).",
"type": "string",
"enum": [
"shi",
"ci",
"qu",
"wen"
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_types(collection, category, tag)
List all public work kinds as name/slug pairs. Use the kind slug as tag when browsing works. Optional browse filters also return live facets for collections, dynasties and types; the static list stays complete.
輸入結構描述
{
"type": "object",
"properties": {
"collection": {
"description": "Collection ID string from list_collections, for example \"1\".",
"type": "string",
"pattern": "^[1-9]\\d{0,9}$"
},
"category": {
"description": "Dynasty name from list_dynasties, for example 唐. Not a group name.",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"tag": {
"description": "Work kind slug from list_types: shi (诗), ci (词), qu (曲), wen (文).",
"type": "string",
"enum": [
"shi",
"ci",
"qu",
"wen"
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_sorts
List public work sort labels and slugs. A null slug means omit sort for the site default order.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_themes
List the public 主题 taxonomy group with its name, slug and categories.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_festivals
List the public 节日 taxonomy group with its name, slug and categories.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_solar_terms
List the public 节气 taxonomy group with its name, slug and categories.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_cipai
List the public 词牌 taxonomy group with its name, slug and categories.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_seasons
List the public 时令 taxonomy group with its name, slug and categories.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_geography
List the public 地理 taxonomy group with its name, slug and categories.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_groups
List the remaining public taxonomy groups: 选集, 写景, 时间, 花卉, 课本, 城市, 名山, 用典 and 书籍, with their categories.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_works(collection, category, tag, sort, page)
Browse public works with optional collection ID, dynasty name (category), kind slug (tag), sort and page. Returns public work URLs and page metadata.
輸入結構描述
{
"type": "object",
"properties": {
"collection": {
"description": "Collection ID string from list_collections, for example \"1\".",
"type": "string",
"pattern": "^[1-9]\\d{0,9}$"
},
"category": {
"description": "Dynasty name from list_dynasties, for example 唐. Not a group name.",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"tag": {
"description": "Work kind slug from list_types: shi (诗), ci (词), qu (曲), wen (文).",
"type": "string",
"enum": [
"shi",
"ci",
"qu",
"wen"
]
},
"sort": {
"description": "Omit for the site default descending order; views_count_asc reverses it. Collections follow curated show order.",
"type": "string",
"enum": [
"views_count_asc"
]
},
"page": {
"default": 1,
"description": "Page number, from 1 to 1000.",
"type": "integer",
"minimum": 1,
"maximum": 1000
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_authors(category, page)
Browse public authors, optionally filtered by dynasty name (category). Returns public author URLs and page metadata.
輸入結構描述
{
"type": "object",
"properties": {
"category": {
"description": "Dynasty name from list_dynasties, for example 唐. Not a group name.",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"page": {
"default": 1,
"description": "Page number, from 1 to 1000.",
"type": "integer",
"minimum": 1,
"maximum": 1000
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_work(id)
Read a public work by numeric ID, including poem text, introduction, annotations, translation, collections and quotes. A missing work returns work: null.
輸入結構描述
{
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"description": "Positive numeric ID from a search or list result."
}
},
"required": [
"id"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_author(id, page)
Read a public author by numeric ID and a page of their works. A missing author returns author: null.
輸入結構描述
{
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"description": "Positive numeric ID from a search or list result."
},
"page": {
"default": 1,
"description": "Page number, from 1 to 1000.",
"type": "integer",
"minimum": 1,
"maximum": 1000
}
},
"required": [
"id"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}社群
證據