Damai Import Cookie
damai_import_cookieImports a Damai login cookie as a fallback sign-in method, validates it, and saves it locally so the MCP server can run logged-in ticket availability checks without uploading credentials.
Instructions
导入大麦登录 Cookie(后备登录方式):先在浏览器里登录大麦,再取 .damai.cn 的登录 Cookie 整串,如 cookie2=xxx; tb_token_=xxx(还可带 cna、t、damai.cn_user 等)。注意:大麦现在的登录里没有 SESSION 这个 Cookie。验证通过后保存在本机 ~/.maoyan-mcp/damai_auth.json(0600),不上传。注意:该登录验证尚未用真实登录测过,见 README。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cookie": "<cookie>"
},
"name": "damai_import_cookie"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cookie | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||