[{"data":1,"prerenderedAt":546},["ShallowReactive",2],{"doc-\u002Fen\u002Fdocs\u002Fguides\u002Fmcp":3,"doc-surround-\u002Fen\u002Fdocs\u002Fguides\u002Fmcp":439,"doc-nav-en":448},{"id":4,"title":5,"body":6,"description":430,"extension":431,"meta":432,"navigation":433,"order":314,"path":434,"section":435,"seo":436,"stem":437,"__hash__":438},"docs_en\u002Fen\u002Fdocs\u002F02.guides\u002F09.mcp.md","MCP Tools & Marketplace",{"type":7,"value":8,"toc":425},"minimark",[9,13,31,36,43,327,334,338,341,361,365,379,408,421],[10,11,5],"h1",{"id":12},"mcp-tools-marketplace",[14,15,16,17,21,22,25,26,30],"p",{},"LingXizhi implements the Model Context Protocol (protocol version ",[18,19,20],"code",{},"2025-06-18",", compatible with ",[18,23,24],{},"2024-11-05","), supports all three transports — ",[27,28,29],"strong",{},"stdio \u002F SSE \u002F Streamable HTTP"," — and supports OAuth authorization flows. Any MCP Server that conforms to the protocol can be connected to give the AI additional tools.",[32,33,35],"h2",{"id":34},"installation-configuration","Installation & Configuration",[14,37,38,39,42],{},"Declare MCP servers in ",[18,40,41],{},".lxz\u002Fmcp.json"," at the project root:",[44,45,46,188],"code-group",{},[47,48,53],"pre",{"className":49,"code":50,"filename":41,"language":51,"meta":52,"style":52},"language-json shiki shiki-themes tokyo-night","{\n  \"mcpServers\": {\n    \"filesystem\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@modelcontextprotocol\u002Fserver-filesystem\", \"\u002Ftmp\"]\n    }\n  }\n}\n","json","",[18,54,55,64,84,100,126,170,176,182],{"__ignoreMap":52},[56,57,60],"span",{"class":58,"line":59},"line",1,[56,61,63],{"class":62},"sgJMe","{\n",[56,65,67,71,75,78,81],{"class":58,"line":66},2,[56,68,70],{"class":69},"sAklC","  \"",[56,72,74],{"class":73},"s3R4Z","mcpServers",[56,76,77],{"class":69},"\"",[56,79,80],{"class":69},":",[56,82,83],{"class":62}," {\n",[56,85,87,90,94,96,98],{"class":58,"line":86},3,[56,88,89],{"class":69},"    \"",[56,91,93],{"class":92},"sySf4","filesystem",[56,95,77],{"class":69},[56,97,80],{"class":69},[56,99,83],{"class":62},[56,101,103,106,110,112,114,117,121,123],{"class":58,"line":102},4,[56,104,105],{"class":69},"      \"",[56,107,109],{"class":108},"su0L4","command",[56,111,77],{"class":69},[56,113,80],{"class":69},[56,115,116],{"class":69}," \"",[56,118,120],{"class":119},"sPY7s","npx",[56,122,77],{"class":69},[56,124,125],{"class":69},",\n",[56,127,129,131,134,136,138,141,143,146,148,151,153,156,158,160,162,165,167],{"class":58,"line":128},5,[56,130,105],{"class":69},[56,132,133],{"class":108},"args",[56,135,77],{"class":69},[56,137,80],{"class":69},[56,139,140],{"class":62}," [",[56,142,77],{"class":69},[56,144,145],{"class":119},"-y",[56,147,77],{"class":69},[56,149,150],{"class":69},",",[56,152,116],{"class":69},[56,154,155],{"class":119},"@modelcontextprotocol\u002Fserver-filesystem",[56,157,77],{"class":69},[56,159,150],{"class":69},[56,161,116],{"class":69},[56,163,164],{"class":119},"\u002Ftmp",[56,166,77],{"class":69},[56,168,169],{"class":62},"]\n",[56,171,173],{"class":58,"line":172},6,[56,174,175],{"class":62},"    }\n",[56,177,179],{"class":58,"line":178},7,[56,180,181],{"class":62},"  }\n",[56,183,185],{"class":58,"line":184},8,[56,186,187],{"class":62},"}\n",[47,189,192],{"className":49,"code":190,"filename":191,"language":51,"meta":52,"style":52},"{\n  \"mcpServers\": {\n    \"github\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@modelcontextprotocol\u002Fserver-github\"],\n      \"env\": {\n        \"GITHUB_PERSONAL_ACCESS_TOKEN\": \"\u003Cyour token>\"\n      }\n    }\n  }\n}\n","Example with a secret",[18,193,194,198,210,223,241,273,286,307,312,317,322],{"__ignoreMap":52},[56,195,196],{"class":58,"line":59},[56,197,63],{"class":62},[56,199,200,202,204,206,208],{"class":58,"line":66},[56,201,70],{"class":69},[56,203,74],{"class":73},[56,205,77],{"class":69},[56,207,80],{"class":69},[56,209,83],{"class":62},[56,211,212,214,217,219,221],{"class":58,"line":86},[56,213,89],{"class":69},[56,215,216],{"class":92},"github",[56,218,77],{"class":69},[56,220,80],{"class":69},[56,222,83],{"class":62},[56,224,225,227,229,231,233,235,237,239],{"class":58,"line":102},[56,226,105],{"class":69},[56,228,109],{"class":108},[56,230,77],{"class":69},[56,232,80],{"class":69},[56,234,116],{"class":69},[56,236,120],{"class":119},[56,238,77],{"class":69},[56,240,125],{"class":69},[56,242,243,245,247,249,251,253,255,257,259,261,263,266,268,271],{"class":58,"line":128},[56,244,105],{"class":69},[56,246,133],{"class":108},[56,248,77],{"class":69},[56,250,80],{"class":69},[56,252,140],{"class":62},[56,254,77],{"class":69},[56,256,145],{"class":119},[56,258,77],{"class":69},[56,260,150],{"class":69},[56,262,116],{"class":69},[56,264,265],{"class":119},"@modelcontextprotocol\u002Fserver-github",[56,267,77],{"class":69},[56,269,270],{"class":62},"]",[56,272,125],{"class":69},[56,274,275,277,280,282,284],{"class":58,"line":172},[56,276,105],{"class":69},[56,278,279],{"class":108},"env",[56,281,77],{"class":69},[56,283,80],{"class":69},[56,285,83],{"class":62},[56,287,288,291,295,297,299,301,304],{"class":58,"line":178},[56,289,290],{"class":69},"        \"",[56,292,294],{"class":293},"sd1Qi","GITHUB_PERSONAL_ACCESS_TOKEN",[56,296,77],{"class":69},[56,298,80],{"class":69},[56,300,116],{"class":69},[56,302,303],{"class":119},"\u003Cyour token>",[56,305,306],{"class":69},"\"\n",[56,308,309],{"class":58,"line":184},[56,310,311],{"class":62},"      }\n",[56,313,315],{"class":58,"line":314},9,[56,316,175],{"class":62},[56,318,320],{"class":58,"line":319},10,[56,321,181],{"class":62},[56,323,325],{"class":58,"line":324},11,[56,326,187],{"class":62},[14,328,329,330,333],{},"Once configured, the tools provided by the server are automatically registered in the AI's tool list, and call records can be viewed in the ",[27,331,332],{},"Tools"," tab of the AI panel.",[32,335,337],{"id":336},"tool-marketplace","Tool Marketplace",[14,339,340],{},"The tool marketplace lets you browse officially curated MCP servers, with entries showing category, download count, and rating — one-click install writes the configuration automatically. Official presets include:",[342,343,344,350,355],"ul",{},[345,346,347,349],"li",{},[27,348,93],{},": file system operations — read\u002Fwrite files, list directories, search files.",[345,351,352,354],{},[27,353,216],{},": GitHub integration — create and manage issues and PRs, search code.",[345,356,357,360],{},[27,358,359],{},"gitlab",": GitLab integration — project management, merge requests, and issues.",[32,362,364],{"id":363},"build-your-own-mcp-server","Build Your Own MCP Server",[14,366,367,368,371,372,371,375,378],{},"Implement the standard MCP methods (",[18,369,370],{},"initialize",", ",[18,373,374],{},"tools\u002Flist",[18,376,377],{},"tools\u002Fcall",") and you can connect:",[380,381,382,393,402],"ol",{},[345,383,384,385,388,389,392],{},"Choose a transport: use ",[27,386,387],{},"stdio"," for local processes (subprocess standard I\u002FO, communicating in ",[18,390,391],{},"Content-Length"," frames); use SSE or Streamable HTTP for remote services.",[345,394,395,396,398,399,401],{},"Write your service's start command into ",[18,397,74],{}," in ",[18,400,41],{},".",[345,403,404,405,407],{},"Your tools can then be called directly in conversation, with call records shown in the ",[27,406,332],{}," tab.",[409,410,412],"callout",{"type":411},"warn",[14,413,414,417,418,420],{},[27,415,416],{},"Secret safety",": inject secrets for third-party servers via ",[18,419,279],{},", and never commit real secrets to version control. The kernel has built-in privacy redaction that automatically masks sensitive patterns such as passwords, API keys, and tokens in logs.",[422,423,424],"style",{},"html pre.shiki code .sgJMe, html code.shiki .sgJMe{--shiki-default:#9ABDF5}html pre.shiki code .sAklC, html code.shiki .sAklC{--shiki-default:#89DDFF}html pre.shiki code .s3R4Z, html code.shiki .s3R4Z{--shiki-default:#7AA2F7}html pre.shiki code .sySf4, html code.shiki .sySf4{--shiki-default:#0DB9D7}html pre.shiki code .su0L4, html code.shiki .su0L4{--shiki-default:#7DCFFF}html pre.shiki code .sPY7s, html code.shiki .sPY7s{--shiki-default:#9ECE6A}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sd1Qi, html code.shiki .sd1Qi{--shiki-default:#BB9AF7}",{"title":52,"searchDepth":66,"depth":66,"links":426},[427,428,429],{"id":34,"depth":66,"text":35},{"id":336,"depth":66,"text":337},{"id":363,"depth":66,"text":364},"Connect external tool servers via the MCP protocol — install from the tool marketplace in one click, or connect your own server","md",{},true,"\u002Fen\u002Fdocs\u002Fguides\u002Fmcp","Feature Guides",{"title":5,"description":430},"en\u002Fdocs\u002F02.guides\u002F09.mcp","KHD4UH15KwiQf9RAa6N0F8qk2fvhwM8ylSCnat39Tqg",[440,444],{"title":441,"path":442,"stem":443,"children":-1},"Semantic Code Graph","\u002Fen\u002Fdocs\u002Fguides\u002Fcode-graph","en\u002Fdocs\u002F02.guides\u002F08.code-graph",{"title":445,"path":446,"stem":447,"children":-1},"Debugging & DAP","\u002Fen\u002Fdocs\u002Fguides\u002Fdebugging","en\u002Fdocs\u002F02.guides\u002F10.debugging",[449],{"title":450,"path":451,"stem":452,"children":453,"page":480},"En","\u002Fen","en",[454],{"title":455,"path":456,"stem":457,"children":458,"page":480},"Docs","\u002Fen\u002Fdocs","en\u002Fdocs",[459,481,504,521],{"title":460,"path":461,"stem":462,"children":463,"page":480},"Getting Started","\u002Fen\u002Fdocs\u002Fgetting-started","en\u002Fdocs\u002F01.getting-started",[464,468,472,476],{"title":465,"path":466,"stem":467},"Installation & Download","\u002Fen\u002Fdocs\u002Fgetting-started\u002Finstallation","en\u002Fdocs\u002F01.getting-started\u002F01.installation",{"title":469,"path":470,"stem":471},"Register & Sign In","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fregister-login","en\u002Fdocs\u002F01.getting-started\u002F02.register-login",{"title":473,"path":474,"stem":475},"First-Time Setup","\u002Fen\u002Fdocs\u002Fgetting-started\u002Ffirst-setup","en\u002Fdocs\u002F01.getting-started\u002F03.first-setup",{"title":477,"path":478,"stem":479},"Migrate from VS Code","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fmigrate-from-vscode","en\u002Fdocs\u002F01.getting-started\u002F04.migrate-from-vscode",false,{"title":435,"path":482,"stem":483,"children":484,"page":480},"\u002Fen\u002Fdocs\u002Fguides","en\u002Fdocs\u002F02.guides",[485,489,493,497,498,499,500],{"title":486,"path":487,"stem":488},"AI Chat & Inline Edit","\u002Fen\u002Fdocs\u002Fguides\u002Fai-chat","en\u002Fdocs\u002F02.guides\u002F05.ai-chat",{"title":490,"path":491,"stem":492},"RUSH Deep Task","\u002Fen\u002Fdocs\u002Fguides\u002Frush","en\u002Fdocs\u002F02.guides\u002F06.rush",{"title":494,"path":495,"stem":496},"FIM Code Completion","\u002Fen\u002Fdocs\u002Fguides\u002Ffim-completion","en\u002Fdocs\u002F02.guides\u002F07.fim-completion",{"title":441,"path":442,"stem":443},{"title":5,"path":434,"stem":437},{"title":445,"path":446,"stem":447},{"title":501,"path":502,"stem":503},"Integrated Terminal","\u002Fen\u002Fdocs\u002Fguides\u002Fterminal","en\u002Fdocs\u002F02.guides\u002F11.terminal",{"title":505,"path":506,"stem":507,"children":508,"page":480},"Models & Billing","\u002Fen\u002Fdocs\u002Fmodels-billing","en\u002Fdocs\u002F03.models-billing",[509,513,517],{"title":510,"path":511,"stem":512},"Models","\u002Fen\u002Fdocs\u002Fmodels-billing\u002Fmodels","en\u002Fdocs\u002F03.models-billing\u002F12.models",{"title":514,"path":515,"stem":516},"Plans & Credits","\u002Fen\u002Fdocs\u002Fmodels-billing\u002Fplans-quota","en\u002Fdocs\u002F03.models-billing\u002F13.plans-quota",{"title":518,"path":519,"stem":520},"BYOK (Bring Your Own Key)","\u002Fen\u002Fdocs\u002Fmodels-billing\u002Fbyok","en\u002Fdocs\u002F03.models-billing\u002F14.byok",{"title":522,"path":523,"stem":524,"children":525,"page":480},"Reference & FAQ","\u002Fen\u002Fdocs\u002Freference","en\u002Fdocs\u002F04.reference",[526,530,534,538,542],{"title":527,"path":528,"stem":529},"Keyboard Shortcuts","\u002Fen\u002Fdocs\u002Freference\u002Fshortcuts","en\u002Fdocs\u002F04.reference\u002F15.shortcuts",{"title":531,"path":532,"stem":533},"Configuration","\u002Fen\u002Fdocs\u002Freference\u002Fconfiguration","en\u002Fdocs\u002F04.reference\u002F16.configuration",{"title":535,"path":536,"stem":537},"Kernel API","\u002Fen\u002Fdocs\u002Freference\u002Fkernel-api","en\u002Fdocs\u002F04.reference\u002F17.kernel-api",{"title":539,"path":540,"stem":541},"FAQ","\u002Fen\u002Fdocs\u002Freference\u002Ffaq","en\u002Fdocs\u002F04.reference\u002F18.faq",{"title":543,"path":544,"stem":545},"Cloud REST API","\u002Fen\u002Fdocs\u002Freference\u002Fcloud-api","en\u002Fdocs\u002F04.reference\u002F19.cloud-api",1788542300514]