{"schemaVersion":1,"name":"Tracelet MCP","endpoint":"https://test1024.com/mcp","transport":"Streamable HTTP","stateless":true,"httpMethods":{"POST":"initialize、notifications/initialized、tools/list、tools/call","GET":405,"DELETE":405},"authentication":{"type":"Bearer","scope":"single-project","provisioning":"网页客户端通过 OAuth 登录后选择项目授权；支持自定义请求头的客户端也可在 AI 排查页创建项目 Bearer 配置。两种凭证均通过 Authorization: Bearer 传输；SDK 公钥/安装凭证不能代替 MCP 凭证","oauth":true,"oauthMetadata":"https://test1024.com/.well-known/oauth-authorization-server","protectedResourceMetadata":"https://test1024.com/.well-known/oauth-protected-resource/mcp","oauthFlow":"authorization_code + PKCE S256","clientRegistration":"DCR; public none or client_secret_post","oauthScopes":["tracelet:read","tracelet:visits","tracelet:fix","offline_access"],"tokenInUrl":false,"expiresAutomatically":true,"ttlHours":[1,24,168,720,2160,8760]},"management":{"authentication":"所有者登录 Cookie，并校验同源 Origin；MCP Bearer 无管理权限","base":"/api/projects/{projectId}/mcp-grants","operations":{"list":"GET /","create":"POST /","revoke":"DELETE /{grantId}","audit":"GET /audit"},"createSchema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"ttlHours":{"type":"integer","enum":[1,24,168,720,2160,8760],"default":24},"visits":{"type":"boolean","default":false},"reportFixes":{"type":"boolean","default":false}},"required":["name"],"additionalProperties":false},"tokenReturnedOnlyOnCreation":true},"access":{"defaultReadOnly":true,"optionalPermissions":["visits","reportFixes"],"availablePlans":["free","personal","professional"],"quota":"读取的是按项目套餐额度与保留期实际保存的证据；不承诺全量采集或无限调用"},"limits":{"activeConnections":10,"requestsPerMinute":120,"concurrentRequests":4,"bodyBytes":16384,"auditDays":30},"tools":{"get_project":{"permission":"read","description":"先核对项目、采集状态、欢迎信息与实际权限。","inputSchema":{"type":"object","properties":{"locale":{"type":"string","enum":["zh-CN","en"],"description":"按安装或验证提示词选择欢迎语语言，省略时使用简体中文。"}},"required":[],"additionalProperties":false}},"list_issues":{"permission":"read","description":"按事件过滤问题分组；totalOccurrences 是问题当前总次数，occurrencesInWindow 仅为查询窗口次数。","inputSchema":{"type":"object","properties":{"from":{"type":"integer","minimum":0,"description":"服务端接收时间下界，Unix 毫秒；访问片段按时间区间重叠匹配"},"to":{"type":"integer","minimum":0,"description":"时间上界；最多 31 天，默认最近 24 小时"},"page":{"type":"string","format":"uri","description":"HTTP(S) 精确页面，忽略查询参数与片段"},"release":{"type":"string","maxLength":100},"environment":{"type":"string","maxLength":50},"query":{"type":"string","minLength":1,"maxLength":100,"description":"原文片段，不做语义匹配"},"limit":{"type":"integer","minimum":1,"maximum":50,"default":20},"cursor":{"type":"string","maxLength":4000}},"required":[],"additionalProperties":false}},"list_events":{"permission":"read","description":"查询单次发生记录，按用户描述选择 eventId，不要直接采用最新事件。","inputSchema":{"type":"object","properties":{"from":{"type":"integer","minimum":0,"description":"服务端接收时间下界，Unix 毫秒；访问片段按时间区间重叠匹配"},"to":{"type":"integer","minimum":0,"description":"时间上界；最多 31 天，默认最近 24 小时"},"page":{"type":"string","format":"uri","description":"HTTP(S) 精确页面，忽略查询参数与片段"},"release":{"type":"string","maxLength":100},"environment":{"type":"string","maxLength":50},"query":{"type":"string","minLength":1,"maxLength":100,"description":"原文片段，不做语义匹配"},"limit":{"type":"integer","minimum":1,"maximum":50,"default":20},"cursor":{"type":"string","maxLength":4000},"issueId":{"type":"string","format":"uuid"}},"required":[],"additionalProperties":false}},"get_event_context":{"permission":"read","description":"读取固定事件的证据。evidenceQuality.state 为 blocked 时先核对版本，不能据此修改其他版本。","inputSchema":{"type":"object","properties":{"eventId":{"type":"string","format":"uuid"},"expectedRelease":{"type":"string","maxLength":100},"expectedEnvironment":{"type":"string","maxLength":50}},"required":["eventId"],"additionalProperties":false}},"list_visits":{"permission":"visits","description":"需要单独勾选访问权限，只读取已采集片段的元数据。","inputSchema":{"type":"object","properties":{"from":{"type":"integer","minimum":0,"description":"服务端接收时间下界，Unix 毫秒；访问片段按时间区间重叠匹配"},"to":{"type":"integer","minimum":0,"description":"时间上界；最多 31 天，默认最近 24 小时"},"page":{"type":"string","format":"uri","description":"HTTP(S) 精确页面，忽略查询参数与片段"},"release":{"type":"string","maxLength":100},"environment":{"type":"string","maxLength":50},"query":{"type":"string","minLength":1,"maxLength":100,"description":"原文片段，不做语义匹配"},"limit":{"type":"integer","minimum":1,"maximum":50,"default":20},"cursor":{"type":"string","maxLength":4000}},"required":[],"additionalProperties":false}},"get_visit_context":{"permission":"visits","description":"访问元数据与关联事件，不返回原始回放、DOM 或录像画面。","inputSchema":{"type":"object","properties":{"visitId":{"type":"string","format":"uuid"}},"required":["visitId"],"additionalProperties":false}},"submit_fix_report":{"permission":"reportFixes","description":"需单独授权。AI 完成修改和测试后提交，将问题转为 pending_review；不代表已部署或人工验收通过。","inputSchema":{"type":"object","properties":{"submissionId":{"type":"string","format":"uuid"},"issueId":{"type":"string","format":"uuid"},"eventId":{"type":"string","format":"uuid"},"expectedCount":{"type":"integer","minimum":1},"summary":{"type":"string","minLength":1,"maxLength":3000},"tests":{"type":"string","minLength":1,"maxLength":3000},"release":{"type":"string","minLength":1,"maxLength":100},"environment":{"type":"string","minLength":1,"maxLength":50}},"required":["submissionId","issueId","eventId","expectedCount","summary","tests","release","environment"],"additionalProperties":false}}},"responses":{"toolSuccess":"content 与 structuredContent 返回 JSON 证据；HTTP 成功不代表业务结果或修复完成","toolFailure":"isError=true，content 的 JSON 包含 code 与 message","httpFailures":{"401":"未授权/到期/撤销","403":"Origin 或 Host 不匹配","405":"使用无会话 HTTP POST","413":"请求体过大","429":"按 Retry-After 重试"}},"workflow":["initialize 协商协议，后续带 MCP-Protocol-Version（以协商结果为准）","get_project 核对项目与权限，再列问题、选事件、读证据","仅在授权且实际修改与测试后 submit_fix_report，最终人工验收"],"welcome":{"returnedOnInitializeAndGetProject":true,"automaticDisplayGuaranteed":false,"localeParameter":"get_project.locale","defaultLocale":"zh-CN"},"credentialExample":{"mcpServers":{"tracelet":{"url":"https://test1024.com/mcp","headers":{"Authorization":"Bearer YOUR_MCP_TOKEN"}}}}}