设置 CSDN Cookie
auth_loginSet or update the CSDN authentication cookie for all subsequent requests. Validates cookie structure locally, returning errors for missing UserToken or UserName. Use only when initializing or after cookie expiration.
Instructions
在运行期设置/更新 CSDN Cookie(整段 Cookie 头),设置后立即对所有后续请求生效,不需要重启 MCP 进程。结构校验完全在本地完成:缺少 UserToken 或 UserName 时直接返回原因,不发任何请求。仅在首次配置或 Cookie 失效后才需要调用;只想知道当前状态请用 auth_status(不发网络请求)。它不判断 Cookie 是否被 CSDN 接受——结构合法但已经失效的 Cookie,只有后续需要登录的调用才会暴露。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cookie | Yes |