Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["3203"],{5699(e,r,n){n.r(r),n.d(r,{metadata:()=>s,default:()=>h,frontMatter:()=>c,contentTitle:()=>o,toc:()=>d,assets:()=>l});var s=JSON.parse('{"id":"cli-commands/doctor","title":"Doctor (Reconfigure)","description":"mercury doctor re-runs the setup wizard with your current values pre-filled. Press Enter on any field to keep it unchanged, or type a new value to replace it.","source":"@site/docs/cli-commands/doctor.mdx","sourceDirName":"cli-commands","slug":"/cli-commands/doctor","permalink":"/docs/cli-commands/doctor","draft":false,"unlisted":false,"editUrl":"https://github.com/cosmicstack-labs/mercury-agent/tree/main/website/docs/cli-commands/doctor.mdx","tags":[],"version":"current","frontMatter":{"id":"doctor","title":"Doctor (Reconfigure)"},"sidebar":"docsSidebar","previous":{"title":"Full Command Reference","permalink":"/docs/cli-commands/cli-commands"},"next":{"title":"Skills","permalink":"/docs/cli-commands/skills"}}'),t=n(74848),i=n(28453);let c={id:"doctor",title:"Doctor (Reconfigure)"},o,l={},d=[{value:"Platform Diagnostics",id:"platform-diagnostics",level:2},{value:"MCP Servers",id:"mcp-servers",level:2}];function a(e){let r={a:"a",code:"code",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.code,{children:"mercury doctor"})," re-runs the setup wizard with your current values pre-filled. Press ",(0,t.jsx)(r.strong,{children:"Enter"})," on any field to keep it unchanged, or type a new value to replace it."]}),"\n",(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"API keys"})," are shown masked: ",(0,t.jsx)(r.code,{children:"sk-x\u2022\u2022\u2022\u20224f2a"})]}),"\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"Providers and models"})," can be reselected; Mercury fetches models again for changed credentials"]}),"\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"Telegram token"})," \u2014 type ",(0,t.jsx)(r.code,{children:"none"})," to disable Telegram, or paste a token to start the pairing-code flow"]}),"\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"Daily budget"})," \u2014 change the token budget limit"]}),"\n"]}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-bash",children:"mercury doctor\n"})}),"\n",(0,t.jsx)(r.h2,{id:"platform-diagnostics",children:"Platform Diagnostics"}),"\n",(0,t.jsxs)(r.p,{children:["Use ",(0,t.jsx)(r.code,{children:"--platform"})," to run a non-destructive compatibility check for your current environment:"]}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-bash",children:"mercury doctor --platform\n"})}),"\n",(0,t.jsx)(r.p,{children:"This prints:"}),"\n",(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsx)(r.li,{children:"OS + architecture"}),"\n",(0,t.jsx)(r.li,{children:"Node.js version"}),"\n",(0,t.jsx)(r.li,{children:"Terminal + TTY/raw-mode capability"}),"\n",(0,t.jsx)(r.li,{children:"SSH/CI detection"}),"\n",(0,t.jsx)(r.li,{children:"Daemon status"}),"\n",(0,t.jsx)(r.li,{children:"Spotify inline-art support status"}),"\n",(0,t.jsxs)(r.li,{children:["Keybinding fallbacks (",(0,t.jsx)(r.code,{children:"/view"}),", ",(0,t.jsx)(r.code,{children:"/ws exit"}),", etc.)"]}),"\n"]}),"\n",(0,t.jsx)(r.h2,{id:"mcp-servers",children:"MCP Servers"}),"\n",(0,t.jsxs)(r.p,{children:["Use ",(0,t.jsx)(r.code,{children:"--mcp"})," to connect to every enabled ",(0,t.jsx)(r.a,{href:"../integrations/mcp",children:"MCP server"})," and report its health:"]}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-bash",children:"mercury doctor --mcp\n"})}),"\n",(0,t.jsxs)(r.p,{children:["Each server is listed as connected (with its tool count and how many tools are allowed), failed (with the reason and the end of the server's stderr), or disabled. Configuration problems, literal secrets in ",(0,t.jsx)(r.code,{children:"mercury.yaml"}),", and tools skipped because their schema can't be used are listed too. The command exits with status 1 if any server fails, so it can be used in scripts."]})]})}function h(e={}){let{wrapper:r}={...(0,i.R)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(a,{...e})}):a(e)}},28453(e,r,n){n.d(r,{R:()=>c,x:()=>o});var s=n(96540);let t={},i=s.createContext(t);function c(e){let r=s.useContext(i);return s.useMemo(function(){return"function"==typeof e?e(r):{...r,...e}},[r,e])}function o(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:c(e.components),s.createElement(i.Provider,{value:r},e.children)}}}]);