[{"data":1,"prerenderedAt":7268},["ShallowReactive",2],{"site-navigation-englishPages":3,"page-englishPages-/en/document/ai-security/advanced/mcp-security":2944,"surround-englishPages-/en/document/ai-security/advanced/mcp-security":7263},{"collection":4,"items":5},"englishPages",[6],{"title":7,"path":8,"stem":9,"children":10,"page":49},"En","/en","en",[11],{"title":12,"path":13,"stem":14,"children":15,"page":49},"Document","/en/document","en/document",[16,50,111,138,190,242,282,313,328,363,402,429,462,497,524,547,571,603,639,670,701,732,769,801,837,866,901,937,973,1013,1083,1171,1203,1233,1265,1293,1369,1409,1441,1480,1517,1549,1581,1678,1765,1838,1896,2038,2092,2131,2200,2253,2326,2397,2437,2495,2557,2615,2670,2737,2783,2830,2880],{"title":17,"path":18,"stem":19,"children":20,"page":49},"HTML5","/en/document/html5","en/document/01.html5",[21],{"title":22,"path":23,"stem":24,"children":25,"icon":48},"Guide","/en/document/html5/guide","en/document/01.html5/01.guide/01.index",[26,28,32,36,40,44],{"title":27,"path":23,"stem":24},"Getting Started with HTML",{"title":29,"path":30,"stem":31},"Common HTML Tags Explained","/en/document/html5/guide/tag","en/document/01.html5/01.guide/02.tag",{"title":33,"path":34,"stem":35},"Layout and Semantic Tags","/en/document/html5/guide/layout","en/document/01.html5/01.guide/03.layout",{"title":37,"path":38,"stem":39},"Forms and User Input","/en/document/html5/guide/form","en/document/01.html5/01.guide/04.form",{"title":41,"path":42,"stem":43},"Multimedia and HTML5 Features","/en/document/html5/guide/html5","en/document/01.html5/01.guide/05.html5",{"title":45,"path":46,"stem":47},"Web Standards and HTML Coding Guidelines","/en/document/html5/guide/web","en/document/01.html5/01.guide/06.web","i-lucide-code",false,{"title":51,"path":52,"stem":53,"children":54,"page":49},"CSS3","/en/document/css","en/document/02.css",[55,73,98],{"title":22,"path":56,"stem":57,"children":58,"icon":49},"/en/document/css/guide","en/document/02.css/01.guide/01.index",[59,61,65,69],{"title":60,"path":56,"stem":57},"Getting Started with CSS",{"title":62,"path":63,"stem":64},"Text and Box Styles","/en/document/css/guide/styles","en/document/02.css/01.guide/02.styles",{"title":66,"path":67,"stem":68},"Selectors and Specificity","/en/document/css/guide/selected","en/document/02.css/01.guide/03.selected",{"title":70,"path":71,"stem":72},"Understanding the Box Model","/en/document/css/guide/box","en/document/02.css/01.guide/04.box",{"title":74,"icon":49,"path":75,"stem":76,"children":77,"page":49},"Layout","/en/document/css/layout","en/document/02.css/02.layout",[78,82,86,90,94],{"title":79,"path":80,"stem":81},"Three Approaches to Web Layout","/en/document/css/layout/policy","en/document/02.css/02.layout/01.policy",{"title":83,"path":84,"stem":85},"CSS Positioning Explained","/en/document/css/layout/position","en/document/02.css/02.layout/02.position",{"title":87,"path":88,"stem":89},"Getting Started with Flexbox","/en/document/css/layout/flex","en/document/02.css/02.layout/03.flex",{"title":91,"path":92,"stem":93},"Getting Started with CSS Grid","/en/document/css/layout/grid","en/document/02.css/02.layout/04.grid",{"title":95,"path":96,"stem":97},"A Guide to Responsive Design","/en/document/css/layout/relative","en/document/02.css/02.layout/05.relative",{"title":99,"icon":49,"path":100,"stem":101,"children":102,"page":49},"Practical Techniques","/en/document/css/skill","en/document/02.css/03.skill",[103,107],{"title":104,"path":105,"stem":106},"CSS Animations Explained","/en/document/css/skill/animation","en/document/02.css/03.skill/01.animation",{"title":108,"path":109,"stem":110},"Practical CSS Techniques","/en/document/css/skill/skill","en/document/02.css/03.skill/02.skill",{"title":112,"path":113,"stem":114,"children":115,"page":49},"Git","/en/document/git","en/document/03.git",[116],{"title":22,"path":117,"stem":118,"children":119,"icon":49},"/en/document/git/guide","en/document/03.git/01.guide/01.index",[120,122,126,130,134],{"title":121,"path":117,"stem":118},"Getting Started with Git",{"title":123,"path":124,"stem":125},"Installing Git and Making Your First Commit","/en/document/git/guide/install","en/document/03.git/01.guide/02.install",{"title":127,"path":128,"stem":129},"Common Git Commands","/en/document/git/guide/command","en/document/03.git/01.guide/03.command",{"title":131,"path":132,"stem":133},"Git Branch Management","/en/document/git/guide/branch","en/document/03.git/01.guide/04.branch",{"title":135,"path":136,"stem":137},"Hosting and Managing Code with GitHub","/en/document/git/guide/github","en/document/03.git/01.guide/05.github",{"title":139,"path":140,"stem":141,"children":142,"page":49},"JavaScript basics","/en/document/js-base","en/document/04.js-base",[143,173],{"title":22,"path":144,"stem":145,"children":146,"icon":48},"/en/document/js-base/guide","en/document/04.js-base/01.guide/01.index",[147,149,153,157,161,165,169],{"title":148,"path":144,"stem":145},"Getting Started with JavaScript",{"title":150,"path":151,"stem":152},"Understanding Variables and Data Types","/en/document/js-base/guide/variable","en/document/04.js-base/01.guide/02.variable",{"title":154,"path":155,"stem":156},"JavaScript Operators Explained","/en/document/js-base/guide/operator","en/document/04.js-base/01.guide/03.operator",{"title":158,"path":159,"stem":160},"Conditional Statements and Loops","/en/document/js-base/guide/flow","en/document/04.js-base/01.guide/04.flow",{"title":162,"path":163,"stem":164},"Understanding JavaScript Functions","/en/document/js-base/guide/function","en/document/04.js-base/01.guide/05.function",{"title":166,"path":167,"stem":168},"Creating and Working with Objects and Arrays","/en/document/js-base/guide/object","en/document/04.js-base/01.guide/06.object",{"title":170,"path":171,"stem":172},"Working with Math and Date","/en/document/js-base/guide/math","en/document/04.js-base/01.guide/07.math",{"title":174,"icon":48,"path":175,"stem":176,"children":177,"page":49},"Browser","/en/document/js-base/browser","en/document/04.js-base/02.browser",[178,182,186],{"title":179,"path":180,"stem":181},"Getting Started with DOM Manipulation","/en/document/js-base/browser/dom","en/document/04.js-base/02.browser/01.dom",{"title":183,"path":184,"stem":185},"Browser Object Model Basics","/en/document/js-base/browser/bom","en/document/04.js-base/02.browser/02.bom",{"title":187,"path":188,"stem":189},"JavaScript Event Handling","/en/document/js-base/browser/event","en/document/04.js-base/02.browser/03.event",{"title":191,"path":192,"stem":193,"children":194,"page":49},"Advanced JavaScript","/en/document/js-advanced","en/document/05.js-advanced",[195,213,230],{"title":196,"path":197,"stem":198,"children":199},"How Does JavaScript Run?","/en/document/js-advanced/guide","en/document/05.js-advanced/01.guide/01.index",[200,201,205,209],{"title":196,"path":197,"stem":198},{"title":202,"path":203,"stem":204},"Understanding Functions and Scope","/en/document/js-advanced/guide/function","en/document/05.js-advanced/01.guide/02.function",{"title":206,"path":207,"stem":208},"Understanding this in JavaScript","/en/document/js-advanced/guide/this","en/document/05.js-advanced/01.guide/03.this",{"title":210,"path":211,"stem":212},"Shallow and Deep Copies","/en/document/js-advanced/guide/copy","en/document/05.js-advanced/01.guide/04.copy",{"title":214,"path":215,"stem":216,"children":217,"page":49},"Program","/en/document/js-advanced/program","en/document/05.js-advanced/02.program",[218,222,226],{"title":219,"path":220,"stem":221},"Object-Oriented Programming (OOP)","/en/document/js-advanced/program/object","en/document/05.js-advanced/02.program/01.object",{"title":223,"path":224,"stem":225},"Introduction to Functional Programming","/en/document/js-advanced/program/fp","en/document/05.js-advanced/02.program/02.fp",{"title":227,"path":228,"stem":229},"Debouncing and Throttling","/en/document/js-advanced/program/debounce","en/document/05.js-advanced/02.program/03.debounce",{"title":174,"path":231,"stem":232,"children":233,"page":49},"/en/document/js-advanced/browser","en/document/05.js-advanced/03.browser",[234,238],{"title":235,"path":236,"stem":237},"Browser Caching","/en/document/js-advanced/browser/cache","en/document/05.js-advanced/03.browser/01.cache",{"title":239,"path":240,"stem":241},"Understanding Browser Storage","/en/document/js-advanced/browser/storage","en/document/05.js-advanced/03.browser/02.storage",{"title":243,"path":244,"stem":245,"children":246,"page":49},"ECMAScript 2015","/en/document/es6","en/document/06.es6",[247],{"title":248,"path":249,"stem":250,"children":251,"icon":48},"JavaScript Internals","/en/document/es6/guide","en/document/06.es6/01.guide/01.index",[252,254,258,262,266,270,274,278],{"title":253,"path":249,"stem":250},"Getting Started with ES6",{"title":255,"path":256,"stem":257},"Variable Declarations with let and const","/en/document/es6/guide/const","en/document/06.es6/01.guide/02.const",{"title":259,"path":260,"stem":261},"Arrow Function Syntax and Behavior","/en/document/es6/guide/arrow","en/document/06.es6/01.guide/03.arrow",{"title":263,"path":264,"stem":265},"New Features for Strings, Objects, and Arrays","/en/document/es6/guide/enhance","en/document/06.es6/01.guide/04.enhance",{"title":267,"path":268,"stem":269},"Working with Map and Set","/en/document/es6/guide/set","en/document/06.es6/01.guide/05.set",{"title":271,"path":272,"stem":273},"Managing Asynchronous Operations with Promises","/en/document/es6/guide/promise","en/document/06.es6/01.guide/06.promise",{"title":275,"path":276,"stem":277},"Understanding ES Module Syntax","/en/document/es6/guide/esm","en/document/06.es6/01.guide/07.esm",{"title":279,"path":280,"stem":281},"Defining Classes and Using Inheritance","/en/document/es6/guide/class","en/document/06.es6/01.guide/08.class",{"title":283,"path":284,"stem":285,"children":286,"page":49},"Data Structures and Algorithms","/en/document/js-algorithms","en/document/07.js-algorithms",[287],{"title":22,"path":288,"stem":289,"children":290,"icon":48},"/en/document/js-algorithms/guide","en/document/07.js-algorithms/01.guide/01.index",[291,293,297,301,305,309],{"title":292,"path":288,"stem":289},"What Are Data Structures and Algorithms?",{"title":294,"path":295,"stem":296},"Time and Space Complexity","/en/document/js-algorithms/guide/complexity","en/document/07.js-algorithms/01.guide/02.complexity",{"title":298,"path":299,"stem":300},"Data Structures","/en/document/js-algorithms/guide/structure","en/document/07.js-algorithms/01.guide/03.structure",{"title":302,"path":303,"stem":304},"Algorithms","/en/document/js-algorithms/guide/algorithms","en/document/07.js-algorithms/01.guide/04.algorithms",{"title":306,"path":307,"stem":308},"Algorithmic Techniques","/en/document/js-algorithms/guide/heuristic","en/document/07.js-algorithms/01.guide/05.heuristic",{"title":310,"path":311,"stem":312},"Depth-First and Breadth-First Search","/en/document/js-algorithms/guide/search","en/document/07.js-algorithms/01.guide/06.search",{"title":314,"path":315,"stem":316,"children":317,"page":49},"Frontend Tooling","/en/document/automation","en/document/08.automation",[318],{"title":22,"path":319,"stem":320,"children":321,"icon":48},"/en/document/automation/guide","en/document/08.automation/01.guide/01.index",[322,324],{"title":323,"path":319,"stem":320},"What Is Front-End Engineering?",{"title":325,"path":326,"stem":327},"Set Up a Front-End Project","/en/document/automation/guide/start","en/document/08.automation/01.guide/02.start",{"title":329,"path":330,"stem":331,"children":332,"page":49},"Webpack","/en/document/webpack","en/document/09.webpack",[333],{"title":22,"path":334,"stem":335,"children":336,"icon":48},"/en/document/webpack/guide","en/document/09.webpack/01.guide/01.index",[337,339,343,347,351,355,359],{"title":338,"path":334,"stem":335},"Introduction to webpack",{"title":340,"path":341,"stem":342},"Set up a webpack project","/en/document/webpack/guide/start","en/document/09.webpack/01.guide/02.start",{"title":344,"path":345,"stem":346},"Loaders","/en/document/webpack/guide/loader","en/document/09.webpack/01.guide/03.loader",{"title":348,"path":349,"stem":350},"Plugins","/en/document/webpack/guide/plugin","en/document/09.webpack/01.guide/04.plugin",{"title":352,"path":353,"stem":354},"HMR and development mode","/en/document/webpack/guide/dev","en/document/09.webpack/01.guide/05.dev",{"title":356,"path":357,"stem":358},"Performance optimization","/en/document/webpack/guide/optimize","en/document/09.webpack/01.guide/06.optimize",{"title":360,"path":361,"stem":362},"Build for production with webpack","/en/document/webpack/guide/production","en/document/09.webpack/01.guide/07.production",{"title":364,"path":365,"stem":366,"children":367,"page":49},"Sass","/en/document/scss","en/document/10.scss",[368],{"title":369,"path":370,"stem":371,"children":372},"What is SCSS?","/en/document/scss/guide","en/document/10.scss/01.guide/01.index",[373,374,378,382,386,390,394,398],{"title":369,"path":370,"stem":371},{"title":375,"path":376,"stem":377},"SCSS syntax basics","/en/document/scss/guide/syntax","en/document/10.scss/01.guide/02.syntax",{"title":379,"path":380,"stem":381},"Starting an SCSS project","/en/document/scss/guide/start","en/document/10.scss/01.guide/03.start",{"title":383,"path":384,"stem":385},"Importing SCSS modules","/en/document/scss/guide/import","en/document/10.scss/01.guide/04.import",{"title":387,"path":388,"stem":389},"Mixins and functions","/en/document/scss/guide/mixin","en/document/10.scss/01.guide/05.mixin",{"title":391,"path":392,"stem":393},"SCSS extension and placeholders","/en/document/scss/guide/extend","en/document/10.scss/01.guide/06.extend",{"title":395,"path":396,"stem":397},"SCSS flow control and logic","/en/document/scss/guide/flow","en/document/10.scss/01.guide/07.flow",{"title":399,"path":400,"stem":401},"SCSS built-in functions","/en/document/scss/guide/function","en/document/10.scss/01.guide/08.function",{"title":403,"path":404,"stem":405,"children":406,"page":49},"ESLint","/en/document/eslint","en/document/11.eslint",[407],{"title":22,"path":408,"stem":409,"children":410,"icon":48},"/en/document/eslint/guide","en/document/11.eslint/01.guide/01.index",[411,413,417,421,425],{"title":412,"path":408,"stem":409},"What Is ESLint?",{"title":414,"path":415,"stem":416},"Installing and Running ESLint","/en/document/eslint/guide/install","en/document/11.eslint/01.guide/02.install",{"title":418,"path":419,"stem":420},"Introduction to ESLint Rules","/en/document/eslint/guide/rule","en/document/11.eslint/01.guide/03.rule",{"title":422,"path":423,"stem":424},"Integrating ESLint with Webpack","/en/document/eslint/guide/webpack","en/document/11.eslint/01.guide/04.webpack",{"title":426,"path":427,"stem":428},"Using Plugins and Extends","/en/document/eslint/guide/plugins","en/document/11.eslint/01.guide/05.plugins",{"title":430,"path":431,"stem":432,"children":433,"page":49},"Axios","/en/document/axios","en/document/12.axios",[434,444],{"title":22,"path":435,"stem":436,"children":437,"icon":48},"/en/document/axios/guide","en/document/12.axios/01.guide/01.index",[438,440],{"title":439,"path":435,"stem":436},"HTTP and Network Requests",{"title":441,"path":442,"stem":443},"Making Requests with JavaScript","/en/document/axios/guide/get","en/document/12.axios/01.guide/02.get",{"title":430,"path":445,"stem":446,"children":447,"icon":48},"/en/document/axios/axios","en/document/12.axios/02.axios/01.index",[448,450,454,458],{"title":449,"path":445,"stem":446},"Getting Started with Axios",{"title":451,"path":452,"stem":453},"Making Requests with Axios","/en/document/axios/axios/start","en/document/12.axios/02.axios/02.start",{"title":455,"path":456,"stem":457},"Advanced Axios Techniques","/en/document/axios/axios/advenced","en/document/12.axios/02.axios/03.advenced",{"title":459,"path":460,"stem":461},"Resolving CORS Issues","/en/document/axios/axios/cors","en/document/12.axios/02.axios/04.cors",{"title":463,"path":464,"stem":465,"children":466,"page":49},"TypeScript","/en/document/typescript","en/document/13.typescript",[467],{"title":22,"path":468,"stem":469,"children":470,"icon":48},"/en/document/typescript/guide","en/document/13.typescript/01.guide/01.index",[471,473,477,481,485,489,493],{"title":472,"path":468,"stem":469},"Introduction to TypeScript",{"title":474,"path":475,"stem":476},"Type System Basics","/en/document/typescript/guide/base","en/document/13.typescript/01.guide/02.base",{"title":478,"path":479,"stem":480},"Combining Types and Using Type Guards","/en/document/typescript/guide/compose","en/document/13.typescript/01.guide/03.compose",{"title":482,"path":483,"stem":484},"Classes and Object-Oriented Programming","/en/document/typescript/guide/class","en/document/13.typescript/01.guide/04.class",{"title":486,"path":487,"stem":488},"Generics and Type Reuse","/en/document/typescript/guide/generic","en/document/13.typescript/01.guide/05.generic",{"title":490,"path":491,"stem":492},"Advanced Project Configuration in Practice","/en/document/typescript/guide/config","en/document/13.typescript/01.guide/06.config",{"title":494,"path":495,"stem":496},"Third-Party Library Types and Declarations","/en/document/typescript/guide/declare","en/document/13.typescript/01.guide/07.declare",{"title":498,"path":499,"stem":500,"children":501,"page":49},"Vue 2","/en/document/vue2","en/document/14.vue2",[502],{"title":22,"path":503,"stem":504,"children":505,"icon":48},"/en/document/vue2/guide","en/document/14.vue2/01.guide/01.index",[506,508,512,516,520],{"title":507,"path":503,"stem":504},"Getting Started with Vue 2",{"title":509,"path":510,"stem":511},"Template Syntax and Directives","/en/document/vue2/guide/directive","en/document/14.vue2/01.guide/02.directive",{"title":513,"path":514,"stem":515},"Component-Based Development Basics","/en/document/vue2/guide/component","en/document/14.vue2/01.guide/03.component",{"title":517,"path":518,"stem":519},"Computed Properties and Watchers","/en/document/vue2/guide/reactive","en/document/14.vue2/01.guide/04.reactive",{"title":521,"path":522,"stem":523},"Understanding Lifecycle Hooks","/en/document/vue2/guide/hooks","en/document/14.vue2/01.guide/05.hooks",{"title":525,"path":526,"stem":527,"children":528,"page":49},"Vue Router","/en/document/router","en/document/15.router",[529],{"title":525,"path":530,"stem":531,"children":532,"icon":48},"/en/document/router/guide","en/document/15.router/01.guide/01.index",[533,535,539,543],{"title":534,"path":530,"stem":531},"Getting Started with Vue Router",{"title":536,"path":537,"stem":538},"Core Routing Features Explained","/en/document/router/guide/routing","en/document/15.router/01.guide/02.routing",{"title":540,"path":541,"stem":542},"Navigation Guards and Route Metadata","/en/document/router/guide/hook","en/document/15.router/01.guide/03.hook",{"title":544,"path":545,"stem":546},"Route Optimization and Lazy Loading","/en/document/router/guide/optimize","en/document/15.router/01.guide/04.optimize",{"title":548,"path":549,"stem":550,"children":551,"page":49},"Vuex","/en/document/vuex","en/document/16.vuex",[552],{"title":553,"path":554,"stem":555,"children":556,"icon":48},"Vuex State Management","/en/document/vuex/guide","en/document/16.vuex/01.guide/01.index",[557,559,563,567],{"title":558,"path":554,"stem":555},"Why Use Vuex?",{"title":560,"path":561,"stem":562},"Getting Started with Vuex","/en/document/vuex/guide/start","en/document/16.vuex/01.guide/02.start",{"title":564,"path":565,"stem":566},"Understanding Vuex Core Features","/en/document/vuex/guide/core","en/document/16.vuex/01.guide/03.core",{"title":568,"path":569,"stem":570},"Modules and Advanced Usage","/en/document/vuex/guide/module","en/document/16.vuex/01.guide/04.module",{"title":572,"path":573,"stem":574,"children":575,"page":49},"Element UI","/en/document/element-ui","en/document/17.element-ui",[576],{"title":577,"path":578,"stem":579,"children":580,"icon":48},"Element UI Component Library","/en/document/element-ui/guide","en/document/17.element-ui/01.guide/01.index",[581,583,587,591,595,599],{"title":582,"path":578,"stem":579},"Getting Started with Element UI",{"title":584,"path":585,"stem":586},"Common Components","/en/document/element-ui/guide/quickstart","en/document/17.element-ui/01.guide/02.quickstart",{"title":588,"path":589,"stem":590},"Layout and Structure","/en/document/element-ui/guide/layout","en/document/17.element-ui/01.guide/03.layout",{"title":592,"path":593,"stem":594},"Custom Component Styles","/en/document/element-ui/guide/style","en/document/17.element-ui/01.guide/04.style",{"title":596,"path":597,"stem":598},"Wrapping and Reusing Components","/en/document/element-ui/guide/component","en/document/17.element-ui/01.guide/05.component",{"title":600,"path":601,"stem":602},"Theme Colors and Dark Mode","/en/document/element-ui/guide/theme","en/document/17.element-ui/01.guide/06.theme",{"title":604,"path":605,"stem":606,"children":607,"page":49},"Vue 3","/en/document/vue3","en/document/18.vue3",[608],{"title":609,"path":610,"stem":611,"children":612,"icon":48},"Vue3","/en/document/vue3/guide","en/document/18.vue3/01.guide/01.index",[613,615,619,623,627,631,635],{"title":614,"path":610,"stem":611},"Vue 3 Overview and Ecosystem Updates",{"title":616,"path":617,"stem":618},"Getting Started with the Composition API","/en/document/vue3/guide/composition","en/document/18.vue3/01.guide/02.composition",{"title":620,"path":621,"stem":622},"Reusing Composition API Logic","/en/document/vue3/guide/composable","en/document/18.vue3/01.guide/03.composable",{"title":624,"path":625,"stem":626},"Template Syntax and New Features","/en/document/vue3/guide/features","en/document/18.vue3/01.guide/04.features",{"title":628,"path":629,"stem":630},"TypeScript Support","/en/document/vue3/guide/typescript","en/document/18.vue3/01.guide/05.typescript",{"title":632,"path":633,"stem":634},"Reactivity Internals and Advanced APIs","/en/document/vue3/guide/reactive","en/document/18.vue3/01.guide/06.reactive",{"title":636,"path":637,"stem":638},"Vue Router 4 in Practice","/en/document/vue3/guide/vue-router","en/document/18.vue3/01.guide/07.vue-router",{"title":640,"path":641,"stem":642,"children":643,"page":49},"Pinia","/en/document/pinia","en/document/19.pinia",[644],{"title":645,"path":646,"stem":647,"children":648},"Introduction and Installation","/en/document/pinia/guide","en/document/19.pinia/01.guide/01.index",[649,650,654,658,662,666],{"title":645,"path":646,"stem":647},{"title":651,"path":652,"stem":653},"Store Essentials","/en/document/pinia/guide/store","en/document/19.pinia/01.guide/02.store",{"title":655,"path":656,"stem":657},"Using Stores in Components","/en/document/pinia/guide/usage","en/document/19.pinia/01.guide/03.usage",{"title":659,"path":660,"stem":661},"Updating State and Reactivity","/en/document/pinia/guide/state","en/document/19.pinia/01.guide/04.state",{"title":663,"path":664,"stem":665},"Actions and Async Operations","/en/document/pinia/guide/action","en/document/19.pinia/01.guide/05.action",{"title":667,"path":668,"stem":669},"Composition, TypeScript, and Plugins","/en/document/pinia/guide/advanced","en/document/19.pinia/01.guide/06.advanced",{"title":671,"path":672,"stem":673,"children":674,"page":49},"Vite","/en/document/vite","en/document/20.vite",[675],{"title":671,"path":676,"stem":677,"children":678,"icon":48},"/en/document/vite/guide","en/document/20.vite/01.guide/01.index",[679,681,685,689,693,697],{"title":680,"path":676,"stem":677},"Introduction to Vite and Installation",{"title":682,"path":683,"stem":684},"Basic Configuration","/en/document/vite/guide/config","en/document/20.vite/01.guide/02.config",{"title":686,"path":687,"stem":688},"Common Plugins","/en/document/vite/guide/plugins","en/document/20.vite/01.guide/03.plugins",{"title":690,"path":691,"stem":692},"Environment Variables and Modes","/en/document/vite/guide/env","en/document/20.vite/01.guide/04.env",{"title":694,"path":695,"stem":696},"Dependency Pre-bundling","/en/document/vite/guide/optimize-deps","en/document/20.vite/01.guide/05.optimize-deps",{"title":698,"path":699,"stem":700},"Build and Deployment","/en/document/vite/guide/build-deploy","en/document/20.vite/01.guide/06.build-deploy",{"title":702,"path":703,"stem":704,"children":705,"page":49},"Nuxt.js","/en/document/nuxt","en/document/21.nuxt",[706],{"title":702,"path":707,"stem":708,"children":709,"icon":48},"/en/document/nuxt/guide","en/document/21.nuxt/01.guide/01.index",[710,712,716,720,724,728],{"title":711,"path":707,"stem":708},"Introduction to Nuxt.js and Installation",{"title":713,"path":714,"stem":715},"Directory Conventions and Auto-imports","/en/document/nuxt/guide/directory-and-auto-imports","en/document/21.nuxt/01.guide/02.directory-and-auto-imports",{"title":717,"path":718,"stem":719},"File-based Routing and Navigation","/en/document/nuxt/guide/routing","en/document/21.nuxt/01.guide/03.routing",{"title":721,"path":722,"stem":723},"Data Fetching","/en/document/nuxt/guide/data-fetching","en/document/21.nuxt/01.guide/04.data-fetching",{"title":725,"path":726,"stem":727},"State Management","/en/document/nuxt/guide/state-management","en/document/21.nuxt/01.guide/05.state-management",{"title":729,"path":730,"stem":731},"Configuration and Deployment","/en/document/nuxt/guide/config-and-deploy","en/document/21.nuxt/01.guide/06.config-and-deploy",{"title":733,"path":734,"stem":735,"children":736,"page":49},"npm","/en/document/npm","en/document/22.npm",[737],{"title":738,"path":739,"stem":740,"children":741,"icon":768},"NPM","/en/document/npm/guide","en/document/22.npm/01.guide/01.index",[742,744,748,752,756,760,764],{"title":743,"path":739,"stem":740},"Getting started with NPM",{"title":745,"path":746,"stem":747},"Understanding package.json","/en/document/npm/guide/package-json","en/document/22.npm/01.guide/02.package-json",{"title":749,"path":750,"stem":751},"Installation and versions","/en/document/npm/guide/install-commands","en/document/22.npm/01.guide/03.install-commands",{"title":753,"path":754,"stem":755},"scripts and npx","/en/document/npm/guide/scripts-and-npx","en/document/22.npm/01.guide/04.scripts-and-npx",{"title":757,"path":758,"stem":759},"Publishing and registry mirrors","/en/document/npm/guide/publish-and-registry","en/document/22.npm/01.guide/05.publish-and-registry",{"title":761,"path":762,"stem":763},"Lockfiles and cleanup","/en/document/npm/guide/lock-and-clean","en/document/22.npm/01.guide/06.lock-and-clean",{"title":765,"path":766,"stem":767},"Yarn and pnpm","/en/document/npm/guide/yarn-and-pnpm","en/document/22.npm/01.guide/07.yarn-and-pnpm","i-simple-icons-npm",{"title":770,"icon":771,"path":772,"stem":773,"children":774,"page":49},"Handlebars","i-simple-icons-handlebarsdotjs","/en/document/handlebars","en/document/23.handlebars",[775],{"title":776,"path":777,"stem":778,"children":779},"Introduction to Handlebars","/en/document/handlebars/guide","en/document/23.handlebars/01.guide/01.index",[780,781,785,789,793,797],{"title":776,"path":777,"stem":778},{"title":782,"path":783,"stem":784},"Basic syntax","/en/document/handlebars/guide/syntax","en/document/23.handlebars/01.guide/02.syntax",{"title":786,"path":787,"stem":788},"Built-in helpers","/en/document/handlebars/guide/builtins","en/document/23.handlebars/01.guide/03.builtins",{"title":790,"path":791,"stem":792},"Template reuse","/en/document/handlebars/guide/partials","en/document/23.handlebars/01.guide/04.partials",{"title":794,"path":795,"stem":796},"Custom helpers","/en/document/handlebars/guide/helpers","en/document/23.handlebars/01.guide/05.helpers",{"title":798,"path":799,"stem":800},"Precompilation and runtime","/en/document/handlebars/guide/runtime","en/document/23.handlebars/01.guide/06.runtime",{"title":802,"icon":803,"path":804,"stem":805,"children":806,"page":49},"Plop","i-simple-icons-nodedotjs","/en/document/plop","en/document/24.plop",[807],{"title":808,"path":809,"stem":810,"children":811},"Introduction to Plop","/en/document/plop/guide","en/document/24.plop/01.guide/01.index",[812,813,817,821,825,829,833],{"title":808,"path":809,"stem":810},{"title":814,"path":815,"stem":816},"Your First Generator","/en/document/plop/guide/plopfile","en/document/24.plop/01.guide/02.plopfile",{"title":818,"path":819,"stem":820},"Interactive Prompts","/en/document/plop/guide/prompts","en/document/24.plop/01.guide/03.prompts",{"title":822,"path":823,"stem":824},"Core Actions","/en/document/plop/guide/actions","en/document/24.plop/01.guide/04.actions",{"title":826,"path":827,"stem":828},"Organizing Template Files","/en/document/plop/guide/templates","en/document/24.plop/01.guide/05.templates",{"title":830,"path":831,"stem":832},"Custom Helpers","/en/document/plop/guide/helpers","en/document/24.plop/01.guide/06.helpers",{"title":834,"path":835,"stem":836},"Building a Component Generator","/en/document/plop/guide/practice","en/document/24.plop/01.guide/07.practice",{"title":838,"path":839,"stem":840,"children":841,"page":49},"Rollup","/en/document/rollup","en/document/25.rollup",[842],{"title":843,"path":844,"stem":845,"children":846},"Introduction to Rollup","/en/document/rollup/guide","en/document/25.rollup/01.guide/01.index",[847,848,851,855,858,862],{"title":843,"path":844,"stem":845},{"title":682,"path":849,"stem":850},"/en/document/rollup/guide/config","en/document/25.rollup/01.guide/02.config",{"title":852,"path":853,"stem":854},"Output Formats","/en/document/rollup/guide/formats","en/document/25.rollup/01.guide/03.formats",{"title":686,"path":856,"stem":857},"/en/document/rollup/guide/plugins","en/document/25.rollup/01.guide/04.plugins",{"title":859,"path":860,"stem":861},"Tree Shaking","/en/document/rollup/guide/tree-shaking","en/document/25.rollup/01.guide/05.tree-shaking",{"title":863,"path":864,"stem":865},"Building a Utility Library","/en/document/rollup/guide/library","en/document/25.rollup/01.guide/06.library",{"title":867,"path":868,"stem":869,"children":870,"page":49},"Snabbdom","/en/document/snabbdom","en/document/26.snabbdom",[871],{"title":872,"path":873,"stem":874,"children":875},"Introduction to Snabbdom","/en/document/snabbdom/guide","en/document/26.snabbdom/01.guide/01.index",[876,877,881,885,889,893,897],{"title":872,"path":873,"stem":874},{"title":878,"path":879,"stem":880},"The h function","/en/document/snabbdom/guide/h","en/document/26.snabbdom/01.guide/02.h",{"title":882,"path":883,"stem":884},"Modules","/en/document/snabbdom/guide/modules","en/document/26.snabbdom/01.guide/03.modules",{"title":886,"path":887,"stem":888},"Rendering and updates with patch","/en/document/snabbdom/guide/patch","en/document/26.snabbdom/01.guide/04.patch",{"title":890,"path":891,"stem":892},"The role of keys","/en/document/snabbdom/guide/key","en/document/26.snabbdom/01.guide/05.key",{"title":894,"path":895,"stem":896},"How diffing works","/en/document/snabbdom/guide/diff","en/document/26.snabbdom/01.guide/06.diff",{"title":898,"path":899,"stem":900},"Build a miniature virtual DOM","/en/document/snabbdom/guide/practice","en/document/26.snabbdom/01.guide/07.practice",{"title":902,"icon":903,"path":904,"stem":905,"children":906,"page":49},"Vercel","i-simple-icons-vercel","/en/document/vercel","en/document/27.vercel",[907],{"title":908,"path":909,"stem":910,"children":911},"Introduction to Vercel","/en/document/vercel/guide","en/document/27.vercel/01.guide/01.index",[912,913,917,921,925,929,933],{"title":908,"path":909,"stem":910},{"title":914,"path":915,"stem":916},"Vercel CLI","/en/document/vercel/guide/cli","en/document/27.vercel/01.guide/02.cli",{"title":918,"path":919,"stem":920},"Settings and Environment Variables","/en/document/vercel/guide/settings","en/document/27.vercel/01.guide/03.settings",{"title":922,"path":923,"stem":924},"Previews and Rollbacks","/en/document/vercel/guide/preview","en/document/27.vercel/01.guide/04.preview",{"title":926,"path":927,"stem":928},"Custom Domains","/en/document/vercel/guide/domain","en/document/27.vercel/01.guide/05.domain",{"title":930,"path":931,"stem":932},"vercel.json Configuration","/en/document/vercel/guide/vercel-json","en/document/27.vercel/01.guide/06.vercel-json",{"title":934,"path":935,"stem":936},"Serverless Functions","/en/document/vercel/guide/serverless","en/document/27.vercel/01.guide/07.serverless",{"title":938,"icon":939,"path":940,"stem":941,"children":942,"page":49},"ECharts","i-simple-icons-apacheecharts","/en/document/echarts","en/document/28.echarts",[943],{"title":944,"path":945,"stem":946,"children":947},"Introduction to ECharts","/en/document/echarts/guide","en/document/28.echarts/01.guide/01.index",[948,949,953,957,961,965,969],{"title":944,"path":945,"stem":946},{"title":950,"path":951,"stem":952},"Core configuration options","/en/document/echarts/guide/option","en/document/28.echarts/01.guide/02.option",{"title":954,"path":955,"stem":956},"Common chart types","/en/document/echarts/guide/charts","en/document/28.echarts/01.guide/03.charts",{"title":958,"path":959,"stem":960},"Styles and themes","/en/document/echarts/guide/style","en/document/28.echarts/01.guide/04.style",{"title":962,"path":963,"stem":964},"Interactions and events","/en/document/echarts/guide/interaction","en/document/28.echarts/01.guide/05.interaction",{"title":966,"path":967,"stem":968},"Dynamic data","/en/document/echarts/guide/data","en/document/28.echarts/01.guide/06.data",{"title":970,"path":971,"stem":972},"Vue 3 in practice","/en/document/echarts/guide/vue","en/document/28.echarts/01.guide/07.vue",{"title":974,"icon":975,"path":976,"stem":977,"children":978,"page":49},"D3","i-simple-icons-d3dotjs","/en/document/d3","en/document/29.d3",[979],{"title":980,"path":981,"stem":982,"children":983},"Introduction to D3","/en/document/d3/guide","en/document/29.d3/01.guide/01.index",[984,985,989,993,997,1001,1005,1009],{"title":980,"path":981,"stem":982},{"title":986,"path":987,"stem":988},"Selections and data binding","/en/document/d3/guide/selection","en/document/29.d3/01.guide/02.selection",{"title":990,"path":991,"stem":992},"Scales","/en/document/d3/guide/scale","en/document/29.d3/01.guide/03.scale",{"title":994,"path":995,"stem":996},"Axes","/en/document/d3/guide/axis","en/document/29.d3/01.guide/04.axis",{"title":998,"path":999,"stem":1000},"Shape generators","/en/document/d3/guide/shape","en/document/29.d3/01.guide/05.shape",{"title":1002,"path":1003,"stem":1004},"Transitions","/en/document/d3/guide/transition","en/document/29.d3/01.guide/06.transition",{"title":1006,"path":1007,"stem":1008},"Interaction and zooming","/en/document/d3/guide/interaction","en/document/29.d3/01.guide/07.interaction",{"title":1010,"path":1011,"stem":1012},"D3 with Vue 3","/en/document/d3/guide/vue","en/document/29.d3/01.guide/08.vue",{"title":1014,"icon":1015,"path":1016,"stem":1017,"children":1018,"page":49},"Three.js","i-simple-icons-threedotjs","/en/document/threejs","en/document/30.threejs",[1019,1033,1055,1073],{"title":1020,"path":1021,"stem":1022,"children":1023,"icon":1015},"Three.js Basics","/en/document/threejs/basics","en/document/30.threejs/01.basics/01.index",[1024,1025,1029],{"title":1020,"path":1021,"stem":1022},{"title":1026,"path":1027,"stem":1028},"Object Transforms","/en/document/threejs/basics/transform","en/document/30.threejs/01.basics/02.transform",{"title":1030,"path":1031,"stem":1032},"Cameras and Views","/en/document/threejs/basics/camera-controls","en/document/30.threejs/01.basics/03.camera-controls",{"title":1034,"icon":1035,"path":1036,"stem":1037,"children":1038,"page":49},"Creating and Organizing 3D Scenes","i-lucide-boxes","/en/document/threejs/scene","en/document/30.threejs/02.scene",[1039,1043,1047,1051],{"title":1040,"path":1041,"stem":1042},"Geometry and Mesh","/en/document/threejs/scene/geometry","en/document/30.threejs/02.scene/04.geometry",{"title":1044,"path":1045,"stem":1046},"Materials and Lights","/en/document/threejs/scene/material-light","en/document/30.threejs/02.scene/05.material-light",{"title":1048,"path":1049,"stem":1050},"Textures and Color Spaces","/en/document/threejs/scene/texture","en/document/30.threejs/02.scene/06.texture",{"title":1052,"path":1053,"stem":1054},"Scene Graphs and Objects","/en/document/threejs/scene/scene-graph","en/document/30.threejs/02.scene/07.scene-graph",{"title":1056,"icon":1057,"path":1058,"stem":1059,"children":1060,"page":49},"Models, Animation, and Interaction","i-lucide-orbit","/en/document/threejs/model-interaction","en/document/30.threejs/03.model-interaction",[1061,1065,1069],{"title":1062,"path":1063,"stem":1064},"Model Loading","/en/document/threejs/model-interaction/model-loading","en/document/30.threejs/03.model-interaction/08.model-loading",{"title":1066,"path":1067,"stem":1068},"Animation Loops","/en/document/threejs/model-interaction/animation-loop","en/document/30.threejs/03.model-interaction/09.animation-loop",{"title":1070,"path":1071,"stem":1072},"Raycasting and Interaction","/en/document/threejs/model-interaction/raycast-interaction","en/document/30.threejs/03.model-interaction/10.raycast-interaction",{"title":1074,"icon":1075,"path":1076,"stem":1077,"children":1078,"page":49},"Engineering and Performance","i-lucide-gauge","/en/document/threejs/engineering","en/document/30.threejs/04.engineering",[1079],{"title":1080,"path":1081,"stem":1082},"Renderer and Performance","/en/document/threejs/engineering/renderer-performance","en/document/30.threejs/04.engineering/11.renderer-performance",{"title":1084,"icon":803,"path":1085,"stem":1086,"children":1087,"page":49},"Node.js fundamentals","/en/document/nodejs","en/document/32.nodejs",[1088,1103,1114,1149,1164],{"title":1089,"path":1090,"stem":1091,"children":1092},"Getting started with Node.js","/en/document/nodejs/guide","en/document/32.nodejs/01.guide/01.index",[1093,1095,1099],{"title":1094,"path":1090,"stem":1091},"Introduction and use cases",{"title":1096,"path":1097,"stem":1098},"Environment setup","/en/document/nodejs/guide/setup","en/document/32.nodejs/01.guide/02.setup",{"title":1100,"path":1101,"stem":1102},"Running programs","/en/document/nodejs/guide/running","en/document/32.nodejs/01.guide/03.running",{"title":1104,"path":1105,"stem":1106,"children":1107},"Node.js module system","/en/document/nodejs/modules","en/document/32.nodejs/02.modules/01.index",[1108,1110],{"title":1109,"path":1105,"stem":1106},"ESM and CommonJS",{"title":1111,"path":1112,"stem":1113},"Module loading","/en/document/nodejs/modules/loading","en/document/32.nodejs/02.modules/02.loading",{"title":1115,"path":1116,"stem":1117,"children":1118},"Core Node.js modules","/en/document/nodejs/core","en/document/32.nodejs/03.core/01.index",[1119,1121,1125,1129,1133,1137,1141,1145],{"title":1120,"path":1116,"stem":1117},"Path handling",{"title":1122,"path":1123,"stem":1124},"Files and directories with fs","/en/document/nodejs/core/file-system","en/document/32.nodejs/03.core/02.file-system",{"title":1126,"path":1127,"stem":1128},"Asynchronous files with fs/promises","/en/document/nodejs/core/fs-promises","en/document/32.nodejs/03.core/03.fs-promises",{"title":1130,"path":1131,"stem":1132},"Buffer and character encodings","/en/document/nodejs/core/buffer","en/document/32.nodejs/03.core/04.buffer",{"title":1134,"path":1135,"stem":1136},"The process object","/en/document/nodejs/core/process","en/document/32.nodejs/03.core/05.process",{"title":1138,"path":1139,"stem":1140},"Events with EventEmitter","/en/document/nodejs/core/events","en/document/32.nodejs/03.core/06.events",{"title":1142,"path":1143,"stem":1144},"URLs and query parameters","/en/document/nodejs/core/url-query","en/document/32.nodejs/03.core/07.url-query",{"title":1146,"path":1147,"stem":1148},"Common crypto capabilities","/en/document/nodejs/core/crypto","en/document/32.nodejs/03.core/08.crypto",{"title":1150,"path":1151,"stem":1152,"children":1153},"Asynchronous I/O and runtime behavior","/en/document/nodejs/async","en/document/32.nodejs/04.async/01.index",[1154,1156,1160],{"title":1155,"path":1151,"stem":1152},"Single-threaded execution and nonblocking I/O",{"title":1157,"path":1158,"stem":1159},"The event loop","/en/document/nodejs/async/event-loop","en/document/32.nodejs/04.async/02.event-loop",{"title":1161,"path":1162,"stem":1163},"Asynchronous task scheduling","/en/document/nodejs/async/scheduling","en/document/32.nodejs/04.async/03.scheduling",{"title":1165,"path":1166,"stem":1167,"children":1168},"Streams and data processing","/en/document/nodejs/streams","en/document/32.nodejs/05.streams/01.index",[1169],{"title":1170,"path":1166,"stem":1167},"Processing data with streams",{"title":1172,"icon":1173,"path":1174,"stem":1175,"children":1176,"page":49},"Express","i-simple-icons-express","/en/document/express","en/document/33.express",[1177],{"title":1178,"path":1179,"stem":1180,"children":1181},"Introduction to Express","/en/document/express/guide","en/document/33.express/01.guide/01.index",[1182,1183,1187,1191,1195,1199],{"title":1178,"path":1179,"stem":1180},{"title":1184,"path":1185,"stem":1186},"Routing","/en/document/express/guide/routing","en/document/33.express/01.guide/02.routing",{"title":1188,"path":1189,"stem":1190},"Middleware","/en/document/express/guide/middleware","en/document/33.express/01.guide/03.middleware",{"title":1192,"path":1193,"stem":1194},"Requests and Responses","/en/document/express/guide/request-response","en/document/33.express/01.guide/04.request-response",{"title":1196,"path":1197,"stem":1198},"Error Handling","/en/document/express/guide/error-handling","en/document/33.express/01.guide/05.error-handling",{"title":1200,"path":1201,"stem":1202},"RESTful API Project","/en/document/express/guide/restful-api","en/document/33.express/01.guide/06.restful-api",{"title":1204,"icon":1205,"path":1206,"stem":1207,"children":1208,"page":49},"Koa","i-simple-icons-koa","/en/document/koa","en/document/34.koa",[1209],{"title":1210,"path":1211,"stem":1212,"children":1213},"Introduction to Koa","/en/document/koa/guide","en/document/34.koa/01.guide/01.index",[1214,1215,1219,1223,1226,1230],{"title":1210,"path":1211,"stem":1212},{"title":1216,"path":1217,"stem":1218},"Context","/en/document/koa/guide/context","en/document/34.koa/01.guide/02.context",{"title":1220,"path":1221,"stem":1222},"Middleware and the Onion Model","/en/document/koa/guide/middleware","en/document/34.koa/01.guide/03.middleware",{"title":1184,"path":1224,"stem":1225},"/en/document/koa/guide/routing","en/document/34.koa/01.guide/04.routing",{"title":1227,"path":1228,"stem":1229},"Request Bodies and Errors","/en/document/koa/guide/body-and-error","en/document/34.koa/01.guide/05.body-and-error",{"title":1200,"path":1231,"stem":1232},"/en/document/koa/guide/restful-api","en/document/34.koa/01.guide/06.restful-api",{"title":1234,"icon":1235,"path":1236,"stem":1237,"children":1238,"page":49},"Egg.js","i-lucide-egg","/en/document/egg","en/document/35.egg",[1239],{"title":1240,"path":1241,"stem":1242,"children":1243},"Introduction to Egg.js","/en/document/egg/guide","en/document/35.egg/01.guide/01.index",[1244,1245,1249,1253,1257,1261],{"title":1240,"path":1241,"stem":1242},{"title":1246,"path":1247,"stem":1248},"Routes and Controllers","/en/document/egg/guide/router-controller","en/document/35.egg/01.guide/02.router-controller",{"title":1250,"path":1251,"stem":1252},"Service Layer","/en/document/egg/guide/service","en/document/35.egg/01.guide/03.service",{"title":1254,"path":1255,"stem":1256},"Configuration and Middleware","/en/document/egg/guide/config-middleware","en/document/35.egg/01.guide/04.config-middleware",{"title":1258,"path":1259,"stem":1260},"Plugins and Extensions","/en/document/egg/guide/plugin-extend","en/document/35.egg/01.guide/05.plugin-extend",{"title":1262,"path":1263,"stem":1264},"RESTful API Practice","/en/document/egg/guide/restful-api","en/document/35.egg/01.guide/06.restful-api",{"title":1266,"icon":1267,"path":1268,"stem":1269,"children":1270,"page":49},"Docker","i-simple-icons-docker","/en/document/docker","en/document/36.docker",[1271],{"title":1272,"path":1273,"stem":1274,"children":1275},"Introduction to Docker","/en/document/docker/guide","en/document/36.docker/01.guide/01.index",[1276,1277,1281,1285,1289],{"title":1272,"path":1273,"stem":1274},{"title":1278,"path":1279,"stem":1280},"Images and Containers","/en/document/docker/guide/image-container","en/document/36.docker/01.guide/02.image-container",{"title":1282,"path":1283,"stem":1284},"Volumes","/en/document/docker/guide/volume","en/document/36.docker/01.guide/03.volume",{"title":1286,"path":1287,"stem":1288},"Dockerfile","/en/document/docker/guide/dockerfile","en/document/36.docker/01.guide/04.dockerfile",{"title":1290,"path":1291,"stem":1292},"Docker Compose","/en/document/docker/guide/docker-compose","en/document/36.docker/01.guide/05.docker-compose",{"title":1294,"icon":1295,"path":1296,"stem":1297,"children":1298,"page":49},"MySQL","i-simple-icons-mysql","/en/document/mysql","en/document/37.mysql",[1299,1313,1332,1347,1358],{"title":1300,"path":1301,"stem":1302,"children":1303},"Getting Started","/en/document/mysql/guide","en/document/37.mysql/01.guide/01.index",[1304,1305,1309],{"title":1300,"path":1301,"stem":1302},{"title":1306,"path":1307,"stem":1308},"Databases and CRUD","/en/document/mysql/guide/crud","en/document/37.mysql/01.guide/02.crud",{"title":1310,"path":1311,"stem":1312},"Types and Constraints","/en/document/mysql/guide/data-type","en/document/37.mysql/01.guide/03.data-type",{"title":1314,"path":1315,"stem":1316,"children":1317},"Queries and Aggregation","/en/document/mysql/query","en/document/37.mysql/02.query/01.index",[1318,1320,1324,1328],{"title":1319,"path":1315,"stem":1316},"Filtering and Pagination",{"title":1321,"path":1322,"stem":1323},"Grouping and Aggregation","/en/document/mysql/query/aggregate","en/document/37.mysql/02.query/02.aggregate",{"title":1325,"path":1326,"stem":1327},"Joining Tables","/en/document/mysql/query/join","en/document/37.mysql/02.query/03.join",{"title":1329,"path":1330,"stem":1331},"Subqueries and Ranking","/en/document/mysql/query/subqueries","en/document/37.mysql/02.query/04.subqueries",{"title":1333,"path":1334,"stem":1335,"children":1336},"Table Design and Transactions","/en/document/mysql/reliability","en/document/37.mysql/03.reliability/01.index",[1337,1339,1343],{"title":1338,"path":1334,"stem":1335},"Relationship Design",{"title":1340,"path":1341,"stem":1342},"Transactions and Rollbacks","/en/document/mysql/reliability/transactions","en/document/37.mysql/03.reliability/02.transactions",{"title":1344,"path":1345,"stem":1346},"Concurrency and Locks","/en/document/mysql/reliability/concurrency","en/document/37.mysql/03.reliability/03.concurrency",{"title":1348,"path":1349,"stem":1350,"children":1351},"Indexes and Performance","/en/document/mysql/performance","en/document/37.mysql/04.performance/01.index",[1352,1354],{"title":1353,"path":1349,"stem":1350},"Index Design",{"title":1355,"path":1356,"stem":1357},"Execution Plans and Optimization","/en/document/mysql/performance/explain","en/document/37.mysql/04.performance/02.explain",{"title":1359,"path":1360,"stem":1361,"children":1362},"Application Integration and Maintenance","/en/document/mysql/engineering","en/document/37.mysql/05.engineering/01.index",[1363,1365],{"title":1364,"path":1360,"stem":1361},"Node.js Integration",{"title":1366,"path":1367,"stem":1368},"Backup and Recovery","/en/document/mysql/engineering/backup","en/document/37.mysql/05.engineering/02.backup",{"title":1370,"icon":1371,"path":1372,"stem":1373,"children":1374,"page":49},"MongoDB","i-simple-icons-mongodb","/en/document/mongodb","en/document/38.mongodb",[1375],{"title":1376,"path":1377,"stem":1378,"children":1379},"Introduction to MongoDB","/en/document/mongodb/guide","en/document/38.mongodb/01.guide/01.index",[1380,1381,1385,1389,1393,1397,1401,1405],{"title":1376,"path":1377,"stem":1378},{"title":1382,"path":1383,"stem":1384},"CRUD Operations","/en/document/mongodb/guide/crud","en/document/38.mongodb/01.guide/02.crud",{"title":1386,"path":1387,"stem":1388},"Query Filters","/en/document/mongodb/guide/query","en/document/38.mongodb/01.guide/03.query",{"title":1390,"path":1391,"stem":1392},"Documents and Data Types","/en/document/mongodb/guide/document","en/document/38.mongodb/01.guide/04.document",{"title":1394,"path":1395,"stem":1396},"MongoDB in Node.js","/en/document/mongodb/guide/nodejs","en/document/38.mongodb/01.guide/05.nodejs",{"title":1398,"path":1399,"stem":1400},"Mongoose","/en/document/mongodb/guide/mongoose","en/document/38.mongodb/01.guide/06.mongoose",{"title":1402,"path":1403,"stem":1404},"Indexes","/en/document/mongodb/guide/optimize","en/document/38.mongodb/01.guide/07.optimize",{"title":1406,"path":1407,"stem":1408},"Aggregation Pipelines","/en/document/mongodb/guide/aggregate","en/document/38.mongodb/01.guide/08.aggregate",{"title":1410,"icon":1411,"path":1412,"stem":1413,"children":1414,"page":49},"GraphQL","i-simple-icons-graphql","/en/document/graphql","en/document/39.graphql",[1415],{"title":1416,"path":1417,"stem":1418,"children":1419},"Introduction to GraphQL","/en/document/graphql/guide","en/document/39.graphql/01.guide/01.index",[1420,1421,1425,1429,1433,1437],{"title":1416,"path":1417,"stem":1418},{"title":1422,"path":1423,"stem":1424},"Type System","/en/document/graphql/guide/schema","en/document/39.graphql/01.guide/02.schema",{"title":1426,"path":1427,"stem":1428},"Advanced Queries","/en/document/graphql/guide/query","en/document/39.graphql/01.guide/03.query",{"title":1430,"path":1431,"stem":1432},"Mutations","/en/document/graphql/guide/mutation","en/document/39.graphql/01.guide/04.mutation",{"title":1434,"path":1435,"stem":1436},"Express Integration","/en/document/graphql/guide/express","en/document/39.graphql/01.guide/05.express",{"title":1438,"path":1439,"stem":1440},"Frontend Requests","/en/document/graphql/guide/client","en/document/39.graphql/01.guide/06.client",{"title":1442,"icon":1443,"path":1444,"stem":1445,"children":1446,"page":49},"Vue 2 Source Code","i-simple-icons-vuedotjs","/en/document/source-vue2","en/document/40.source-vue2",[1447],{"title":1442,"path":1448,"stem":1449,"children":1450},"/en/document/source-vue2/guide","en/document/40.source-vue2/01.guide/01.index",[1451,1452,1456,1460,1464,1468,1472,1476],{"title":1442,"path":1448,"stem":1449},{"title":1453,"path":1454,"stem":1455},"Initialization","/en/document/source-vue2/guide/init","en/document/40.source-vue2/01.guide/02.init",{"title":1457,"path":1458,"stem":1459},"Reactivity","/en/document/source-vue2/guide/reactive","en/document/40.source-vue2/01.guide/03.reactive",{"title":1461,"path":1462,"stem":1463},"Dep and Watcher","/en/document/source-vue2/guide/dep-watcher","en/document/40.source-vue2/01.guide/04.dep-watcher",{"title":1465,"path":1466,"stem":1467},"Asynchronous Updates and nextTick","/en/document/source-vue2/guide/nexttick","en/document/40.source-vue2/01.guide/05.nexttick",{"title":1469,"path":1470,"stem":1471},"Virtual DOM and patch","/en/document/source-vue2/guide/vnode-patch","en/document/40.source-vue2/01.guide/06.vnode-patch",{"title":1473,"path":1474,"stem":1475},"Template Compilation","/en/document/source-vue2/guide/compile","en/document/40.source-vue2/01.guide/07.compile",{"title":1477,"path":1478,"stem":1479},"computed and watch Internals","/en/document/source-vue2/guide/computed-watch","en/document/40.source-vue2/01.guide/08.computed-watch",{"title":1481,"icon":1443,"path":1482,"stem":1483,"children":1484,"page":49},"Vue 3 Source Code","/en/document/source-vue3","en/document/41.source-vue3",[1485],{"title":1486,"path":1487,"stem":1488,"children":1489},"Introduction to Vue 3 Source Code","/en/document/source-vue3/guide","en/document/41.source-vue3/01.guide/01.index",[1490,1491,1495,1499,1503,1507,1511,1514],{"title":1486,"path":1487,"stem":1488},{"title":1492,"path":1493,"stem":1494},"Creation and Mounting","/en/document/source-vue3/guide/create-app","en/document/41.source-vue3/01.guide/02.create-app",{"title":1496,"path":1497,"stem":1498},"Proxy-Based Reactivity","/en/document/source-vue3/guide/reactive","en/document/41.source-vue3/01.guide/03.reactive",{"title":1500,"path":1501,"stem":1502},"effect and Dependency Tracking","/en/document/source-vue3/guide/effect","en/document/41.source-vue3/01.guide/04.effect",{"title":1504,"path":1505,"stem":1506},"ref and computed","/en/document/source-vue3/guide/ref-computed","en/document/41.source-vue3/01.guide/05.ref-computed",{"title":1508,"path":1509,"stem":1510},"Scheduler and nextTick","/en/document/source-vue3/guide/scheduler-nexttick","en/document/41.source-vue3/01.guide/06.scheduler-nexttick",{"title":1469,"path":1512,"stem":1513},"/en/document/source-vue3/guide/vnode-patch","en/document/41.source-vue3/01.guide/07.vnode-patch",{"title":1473,"path":1515,"stem":1516},"/en/document/source-vue3/guide/compile","en/document/41.source-vue3/01.guide/08.compile",{"title":1518,"icon":1519,"path":1520,"stem":1521,"children":1522,"page":49},"Performance Optimization","i-lucide-zap","/en/document/performance","en/document/42.performance",[1523],{"title":1524,"path":1525,"stem":1526,"children":1527},"Introduction to Performance Optimization","/en/document/performance/guide","en/document/42.performance/01.guide/01.index",[1528,1529,1533,1537,1541,1545],{"title":1524,"path":1525,"stem":1526},{"title":1530,"path":1531,"stem":1532},"Loading Optimization","/en/document/performance/guide/loading","en/document/42.performance/01.guide/02.loading",{"title":1534,"path":1535,"stem":1536},"Rendering Optimization","/en/document/performance/guide/rendering","en/document/42.performance/01.guide/03.rendering",{"title":1538,"path":1539,"stem":1540},"Caching Strategies","/en/document/performance/guide/cache","en/document/42.performance/01.guide/04.cache",{"title":1542,"path":1543,"stem":1544},"Build Output Optimization","/en/document/performance/guide/build","en/document/42.performance/01.guide/05.build",{"title":1546,"path":1547,"stem":1548},"Performance Metrics and Tools","/en/document/performance/guide/metrics","en/document/42.performance/01.guide/06.metrics",{"title":1550,"icon":1551,"path":1552,"stem":1553,"children":1554,"page":49},"Frontend Monitoring","i-lucide-activity","/en/document/monitor","en/document/43.monitor",[1555],{"title":1556,"path":1557,"stem":1558,"children":1559},"Introduction to Frontend Monitoring","/en/document/monitor/guide","en/document/43.monitor/01.guide/01.index",[1560,1561,1565,1569,1573,1577],{"title":1556,"path":1557,"stem":1558},{"title":1562,"path":1563,"stem":1564},"Error Collection","/en/document/monitor/guide/error","en/document/43.monitor/01.guide/02.error",{"title":1566,"path":1567,"stem":1568},"Tracking and Reporting","/en/document/monitor/guide/tracking","en/document/43.monitor/01.guide/03.tracking",{"title":1570,"path":1571,"stem":1572},"Performance Data Reporting","/en/document/monitor/guide/performance-data","en/document/43.monitor/01.guide/04.performance-data",{"title":1574,"path":1575,"stem":1576},"Sentry in Practice","/en/document/monitor/guide/sentry","en/document/43.monitor/01.guide/05.sentry",{"title":1578,"path":1579,"stem":1580},"Logging and Alerts","/en/document/monitor/guide/logging","en/document/43.monitor/01.guide/06.logging",{"title":1582,"icon":1583,"path":1584,"stem":1585,"children":1586,"page":49},"Electron","i-simple-icons-electron","/en/document/electron","en/document/44.electron",[1587,1603,1621,1639,1656],{"title":1588,"path":1589,"stem":1590,"children":1591,"icon":1602},"Architecture Basics","/en/document/electron/guide","en/document/44.electron/01.guide/01.index",[1592,1594,1598],{"title":1593,"path":1589,"stem":1590},"Introduction to Electron",{"title":1595,"path":1596,"stem":1597},"Main Process, Renderer Process, and Preload Scripts","/en/document/electron/guide/process-model","en/document/44.electron/01.guide/02.process-model",{"title":1599,"path":1600,"stem":1601},"Integrating Electron with Vue","/en/document/electron/guide/vue-integration","en/document/44.electron/01.guide/03.vue-integration","i-lucide-layers",{"title":1604,"icon":1605,"path":1606,"stem":1607,"children":1608,"page":49},"Core Development","i-lucide-code-2","/en/document/electron/core","en/document/44.electron/02.core",[1609,1613,1617],{"title":1610,"path":1611,"stem":1612},"Window Creation and Application Lifecycle","/en/document/electron/core/window-lifecycle","en/document/44.electron/02.core/04.window-lifecycle",{"title":1614,"path":1615,"stem":1616},"IPC and API Design","/en/document/electron/core/ipc-design","en/document/44.electron/02.core/05.ipc-design",{"title":1618,"path":1619,"stem":1620},"Local Files and System Interaction","/en/document/electron/core/filesystem-system","en/document/44.electron/02.core/06.filesystem-system",{"title":1622,"icon":1623,"path":1624,"stem":1625,"children":1626,"page":49},"Desktop Capabilities and Security","i-lucide-monitor-cog","/en/document/electron/desktop","en/document/44.electron/03.desktop",[1627,1631,1635],{"title":1628,"path":1629,"stem":1630},"Desktop Security Basics","/en/document/electron/desktop/security","en/document/44.electron/03.desktop/07.security",{"title":1632,"path":1633,"stem":1634},"Menus, Tray Icons, and Multiple Windows","/en/document/electron/desktop/window-menu-tray","en/document/44.electron/03.desktop/08.window-menu-tray",{"title":1636,"path":1637,"stem":1638},"Sessions, Networking, and Local Storage","/en/document/electron/desktop/session-storage","en/document/44.electron/03.desktop/09.session-storage",{"title":1640,"icon":1075,"path":1641,"stem":1642,"children":1643,"page":49},"Resources, Performance, and Export","/en/document/electron/stability","en/document/44.electron/04.stability",[1644,1648,1652],{"title":1645,"path":1646,"stem":1647},"Custom Protocols, Resource Loading, and Deep Links","/en/document/electron/stability/protocol-loading","en/document/44.electron/04.stability/10.protocol-loading",{"title":1649,"path":1650,"stem":1651},"Long-running Tasks and Performance Troubleshooting","/en/document/electron/stability/tasks-performance","en/document/44.electron/04.stability/11.tasks-performance",{"title":1653,"path":1654,"stem":1655},"PDF Printing and Report Export","/en/document/electron/stability/pdf-report","en/document/44.electron/04.stability/12.pdf-report",{"title":1657,"icon":1658,"path":1659,"stem":1660,"children":1661,"page":49},"Delivery and Practical Project","i-lucide-rocket","/en/document/electron/delivery","en/document/44.electron/05.delivery",[1662,1666,1670,1674],{"title":1663,"path":1664,"stem":1665},"Application Packaging and Automatic Updates","/en/document/electron/delivery/package-update","en/document/44.electron/05.delivery/13.package-update",{"title":1667,"path":1668,"stem":1669},"Desktop Application Signing and Notarization","/en/document/electron/delivery/code-signing","en/document/44.electron/05.delivery/14.code-signing",{"title":1671,"path":1672,"stem":1673},"Testing, Monitoring, and Release","/en/document/electron/delivery/test-monitor-release","en/document/44.electron/05.delivery/15.test-monitor-release",{"title":1675,"path":1676,"stem":1677},"Project: A Desktop Document Manager","/en/document/electron/delivery/project-file-manager","en/document/44.electron/05.delivery/16.project-file-manager",{"title":1679,"icon":1680,"path":1681,"stem":1682,"children":1683,"page":49},"WebGIS","i-lucide-map","/en/document/webgis","en/document/45.webgis",[1684,1691,1705,1719,1737,1751],{"title":1685,"path":1686,"stem":1687,"children":1688,"icon":1680},"WebGIS Fundamentals","/en/document/webgis/guide","en/document/45.webgis/01.guide/01.index",[1689],{"title":1690,"path":1686,"stem":1687},"WebGIS Overview",{"title":1692,"icon":1693,"path":1694,"stem":1695,"children":1696,"page":49},"Spatial Data Fundamentals","i-lucide-shapes","/en/document/webgis/spatial","en/document/45.webgis/02.spatial",[1697,1701],{"title":1698,"path":1699,"stem":1700},"Vector and Raster","/en/document/webgis/spatial/vector-and-raster","en/document/45.webgis/02.spatial/02.vector-and-raster",{"title":1702,"path":1703,"stem":1704},"GeoJSON and Common Formats","/en/document/webgis/spatial/geojson-and-formats","en/document/45.webgis/02.spatial/03.geojson-and-formats",{"title":1706,"icon":1707,"path":1708,"stem":1709,"children":1710,"page":49},"Coordinates and Map Projections","i-lucide-compass","/en/document/webgis/coordinate","en/document/45.webgis/03.coordinate",[1711,1715],{"title":1712,"path":1713,"stem":1714},"CRS and Map Projections","/en/document/webgis/coordinate/coordinate-reference-systems","en/document/45.webgis/03.coordinate/04.coordinate-reference-systems",{"title":1716,"path":1717,"stem":1718},"Transformations and Misalignment","/en/document/webgis/coordinate/coordinate-offset","en/document/45.webgis/03.coordinate/05.coordinate-offset",{"title":1720,"icon":1721,"path":1722,"stem":1723,"children":1724,"page":49},"Tiles and Map Services","i-lucide-grid-2x2","/en/document/webgis/tiles","en/document/45.webgis/04.tiles",[1725,1729,1733],{"title":1726,"path":1727,"stem":1728},"Map Tiles","/en/document/webgis/tiles/map-tiles","en/document/45.webgis/04.tiles/06.map-tiles",{"title":1730,"path":1731,"stem":1732},"Raster and Vector Tiles","/en/document/webgis/tiles/raster-and-vector-tiles","en/document/45.webgis/04.tiles/07.raster-and-vector-tiles",{"title":1734,"path":1735,"stem":1736},"Map Services and OGC","/en/document/webgis/tiles/map-services","en/document/45.webgis/04.tiles/08.map-services",{"title":1738,"icon":1739,"path":1740,"stem":1741,"children":1742,"page":49},"Spatial Queries and Analysis","i-lucide-search","/en/document/webgis/analysis","en/document/45.webgis/05.analysis",[1743,1747],{"title":1744,"path":1745,"stem":1746},"Spatial Queries and Relationships","/en/document/webgis/analysis/spatial-relationships","en/document/45.webgis/05.analysis/09.spatial-relationships",{"title":1748,"path":1749,"stem":1750},"Distance, Area, and Spatial Analysis","/en/document/webgis/analysis/distance-and-analysis","en/document/45.webgis/05.analysis/10.distance-and-analysis",{"title":1752,"icon":1753,"path":1754,"stem":1755,"children":1756,"page":49},"GIS Data Engineering","i-lucide-database","/en/document/webgis/engineering","en/document/45.webgis/06.engineering",[1757,1761],{"title":1758,"path":1759,"stem":1760},"GIS Data Processing and Cleaning","/en/document/webgis/engineering/data-cleaning","en/document/45.webgis/06.engineering/11.data-cleaning",{"title":1762,"path":1763,"stem":1764},"Displaying Large Datasets","/en/document/webgis/engineering/large-data-display","en/document/45.webgis/06.engineering/12.large-data-display",{"title":1766,"icon":1767,"path":1768,"stem":1769,"children":1770,"page":49},"Mapbox GL JS","i-simple-icons-mapbox","/en/document/mapbox-gl-js","en/document/46.mapbox-gl-js",[1771,1786,1812],{"title":1772,"path":1773,"stem":1774,"children":1775,"icon":1680},"Map fundamentals","/en/document/mapbox-gl-js/start","en/document/46.mapbox-gl-js/01.start/01.index",[1776,1778,1782],{"title":1777,"path":1773,"stem":1774},"Getting started",{"title":1779,"path":1780,"stem":1781},"Initialization and camera control","/en/document/mapbox-gl-js/start/view-control","en/document/46.mapbox-gl-js/01.start/02.view-control",{"title":1783,"path":1784,"stem":1785},"Events and basic controls","/en/document/mapbox-gl-js/start/events-controls","en/document/46.mapbox-gl-js/01.start/03.events-controls",{"title":1787,"icon":1788,"path":1789,"stem":1790,"children":1791,"page":49},"Data and styling","i-lucide-layers-3","/en/document/mapbox-gl-js/data","en/document/46.mapbox-gl-js/02.data",[1792,1796,1800,1804,1808],{"title":1793,"path":1794,"stem":1795},"Sources and layers","/en/document/mapbox-gl-js/data/source-layer","en/document/46.mapbox-gl-js/02.data/04.source-layer",{"title":1797,"path":1798,"stem":1799},"GeoJSON geometry","/en/document/mapbox-gl-js/data/geojson-features","en/document/46.mapbox-gl-js/02.data/05.geojson-features",{"title":1801,"path":1802,"stem":1803},"Styling and expressions","/en/document/mapbox-gl-js/data/style-expressions","en/document/46.mapbox-gl-js/02.data/06.style-expressions",{"title":1805,"path":1806,"stem":1807},"Markers, popups, and symbols","/en/document/mapbox-gl-js/data/marker-popup-symbol","en/document/46.mapbox-gl-js/02.data/07.marker-popup-symbol",{"title":1809,"path":1810,"stem":1811},"Tile services","/en/document/mapbox-gl-js/data/tile-services","en/document/46.mapbox-gl-js/02.data/08.tile-services",{"title":1813,"icon":1814,"path":1815,"stem":1816,"children":1817,"page":49},"Application interactions","i-lucide-map-pinned","/en/document/mapbox-gl-js/business","en/document/46.mapbox-gl-js/03.business",[1818,1822,1826,1830,1834],{"title":1819,"path":1820,"stem":1821},"Queries and highlighting","/en/document/mapbox-gl-js/business/query-highlight","en/document/46.mapbox-gl-js/03.business/08.query-highlight",{"title":1823,"path":1824,"stem":1825},"Filtering and layer management","/en/document/mapbox-gl-js/business/filter-layers","en/document/46.mapbox-gl-js/03.business/09.filter-layers",{"title":1827,"path":1828,"stem":1829},"Point clustering","/en/document/mapbox-gl-js/business/clusters","en/document/46.mapbox-gl-js/03.business/10.clusters",{"title":1831,"path":1832,"stem":1833},"Drawing, editing, and measuring","/en/document/mapbox-gl-js/business/draw-measure","en/document/46.mapbox-gl-js/03.business/11.draw-measure",{"title":1835,"path":1836,"stem":1837},"Three.js integration","/en/document/mapbox-gl-js/business/three-in-mapbox","en/document/46.mapbox-gl-js/03.business/12.three-in-mapbox",{"title":1839,"icon":1788,"path":1840,"stem":1841,"children":1842,"page":49},"deck.gl","/en/document/deck-gl","en/document/47.deck-gl",[1843,1858,1875],{"title":1844,"path":1845,"stem":1846,"children":1847},"deck.gl Basics","/en/document/deck-gl/basics","en/document/47.deck-gl/01.basics/01.index",[1848,1850,1854],{"title":1849,"path":1845,"stem":1846},"Introduction to deck.gl",{"title":1851,"path":1852,"stem":1853},"Layers, Data, and Accessors","/en/document/deck-gl/basics/layer-data-accessor","en/document/47.deck-gl/01.basics/02.layer-data-accessor",{"title":1855,"path":1856,"stem":1857},"Common Basic Layers","/en/document/deck-gl/basics/common-layers","en/document/47.deck-gl/01.basics/03.common-layers",{"title":1859,"path":1860,"stem":1861,"children":1862,"page":49},"Map Interaction and Mapbox Integration","/en/document/deck-gl/interaction-mapbox","en/document/47.deck-gl/02.interaction-mapbox",[1863,1867,1871],{"title":1864,"path":1865,"stem":1866},"Picking and Tooltips","/en/document/deck-gl/interaction-mapbox/picking-tooltip","en/document/47.deck-gl/02.interaction-mapbox/04.picking-tooltip",{"title":1868,"path":1869,"stem":1870},"Coordinates and Units","/en/document/deck-gl/interaction-mapbox/coordinates-units","en/document/47.deck-gl/02.interaction-mapbox/05.coordinates-units",{"title":1872,"path":1873,"stem":1874},"deck.gl and Mapbox","/en/document/deck-gl/interaction-mapbox/mapbox-integration","en/document/47.deck-gl/02.interaction-mapbox/06.mapbox-integration",{"title":1876,"path":1877,"stem":1878,"children":1879,"page":49},"Dynamic Data and Thematic Visualization","/en/document/deck-gl/dynamic-thematic","en/document/47.deck-gl/03.dynamic-thematic",[1880,1884,1888,1892],{"title":1881,"path":1882,"stem":1883},"Layer Updates and Dynamic Data","/en/document/deck-gl/dynamic-thematic/layer-updates","en/document/47.deck-gl/03.dynamic-thematic/07.layer-updates",{"title":1885,"path":1886,"stem":1887},"Aggregation and Thematic Maps","/en/document/deck-gl/dynamic-thematic/aggregation-thematic","en/document/47.deck-gl/03.dynamic-thematic/08.aggregation-thematic",{"title":1889,"path":1890,"stem":1891},"Time Series and Trip Animation","/en/document/deck-gl/dynamic-thematic/trips-animation","en/document/47.deck-gl/03.dynamic-thematic/09.trips-animation",{"title":1893,"path":1894,"stem":1895},"Tiles and Large Spatial Datasets","/en/document/deck-gl/dynamic-thematic/tiles-large-data","en/document/47.deck-gl/03.dynamic-thematic/10.tiles-large-data",{"title":1897,"icon":803,"path":1898,"stem":1899,"children":1900,"page":49},"HTTP and Backend Fundamentals","/en/document/nodejs-backend","en/document/48.nodejs-backend",[1901,1921,1940,1959,1978,1997,2012,2027],{"title":1902,"path":1903,"stem":1904,"children":1905,"icon":1920},"Backend Fundamentals","/en/document/nodejs-backend/guide","en/document/48.nodejs-backend/01.guide/01.index",[1906,1908,1912,1916],{"title":1907,"path":1903,"stem":1904},"Frontend and Backend Responsibilities",{"title":1909,"path":1910,"stem":1911},"HTTP and HTTPS Fundamentals","/en/document/nodejs-backend/guide/http-https","en/document/48.nodejs-backend/01.guide/02.http-https",{"title":1913,"path":1914,"stem":1915},"Cookies, Sessions, and the Same-Origin Policy","/en/document/nodejs-backend/guide/cookies-origin","en/document/48.nodejs-backend/01.guide/03.cookies-origin",{"title":1917,"path":1918,"stem":1919},"The Request Lifecycle","/en/document/nodejs-backend/guide/request-lifecycle","en/document/48.nodejs-backend/01.guide/04.request-lifecycle","i-lucide-book-open",{"title":1922,"path":1923,"stem":1924,"children":1925,"icon":1920},"Node.js HTTP Services","/en/document/nodejs-backend/http","en/document/48.nodejs-backend/02.http/01.index",[1926,1928,1932,1936],{"title":1927,"path":1923,"stem":1924},"Create an HTTP Server with Node.js",{"title":1929,"path":1930,"stem":1931},"Parse HTTP Requests","/en/document/nodejs-backend/http/request","en/document/48.nodejs-backend/02.http/02.request",{"title":1933,"path":1934,"stem":1935},"Handle HTTP Responses","/en/document/nodejs-backend/http/response","en/document/48.nodejs-backend/02.http/03.response",{"title":1937,"path":1938,"stem":1939},"Route Matching and Request Processing","/en/document/nodejs-backend/http/routing","en/document/48.nodejs-backend/02.http/04.routing",{"title":1941,"path":1942,"stem":1943,"children":1944,"icon":1920},"RESTful API Design","/en/document/nodejs-backend/api","en/document/48.nodejs-backend/03.api/01.index",[1945,1947,1951,1955],{"title":1946,"path":1942,"stem":1943},"RESTful API Design and HTTP Methods",{"title":1948,"path":1949,"stem":1950},"Validate API Parameters and Data Formats","/en/document/nodejs-backend/api/validation","en/document/48.nodejs-backend/03.api/02.validation",{"title":1952,"path":1953,"stem":1954},"Response Formats, Error Codes, and Exception Handling","/en/document/nodejs-backend/api/errors","en/document/48.nodejs-backend/03.api/03.errors",{"title":1956,"path":1957,"stem":1958},"API Versioning, Pagination, Filtering, Sorting, and Documentation","/en/document/nodejs-backend/api/query-contract","en/document/48.nodejs-backend/03.api/04.query-contract",{"title":1960,"path":1961,"stem":1962,"children":1963,"icon":1920},"Authentication and Access Control","/en/document/nodejs-backend/auth","en/document/48.nodejs-backend/04.auth/01.index",[1964,1966,1970,1974],{"title":1965,"path":1961,"stem":1962},"Authentication and Authorization",{"title":1967,"path":1968,"stem":1969},"Sessions, JWTs, and Token Authentication","/en/document/nodejs-backend/auth/session-jwt","en/document/48.nodejs-backend/04.auth/02.session-jwt",{"title":1971,"path":1972,"stem":1973},"Access Tokens, Refresh Tokens, and Login State","/en/document/nodejs-backend/auth/token-lifecycle","en/document/48.nodejs-backend/04.auth/03.token-lifecycle",{"title":1975,"path":1976,"stem":1977},"RBAC and Endpoint-Level Access Control","/en/document/nodejs-backend/auth/rbac","en/document/48.nodejs-backend/04.auth/04.rbac",{"title":1979,"path":1980,"stem":1981,"children":1982,"icon":1920},"Backend Security","/en/document/nodejs-backend/security","en/document/48.nodejs-backend/05.security/01.index",[1983,1985,1989,1993],{"title":1984,"path":1980,"stem":1981},"CORS and Cross-Origin Requests",{"title":1986,"path":1987,"stem":1988},"XSS, CSRF, SQL Injection, and Web Security Risks","/en/document/nodejs-backend/security/web-risks","en/document/48.nodejs-backend/05.security/02.web-risks",{"title":1990,"path":1991,"stem":1992},"Password Security","/en/document/nodejs-backend/security/passwords","en/document/48.nodejs-backend/05.security/03.passwords",{"title":1994,"path":1995,"stem":1996},"API Protection","/en/document/nodejs-backend/security/request-protection","en/document/48.nodejs-backend/05.security/04.request-protection",{"title":1998,"path":1999,"stem":2000,"children":2001,"icon":1920},"Backend Engineering and Architecture","/en/document/nodejs-backend/architecture","en/document/48.nodejs-backend/06.architecture/01.index",[2002,2004,2008],{"title":2003,"path":1999,"stem":2000},"Backend Project Structure and Layered Architecture",{"title":2005,"path":2006,"stem":2007},"Controller, Service, and Repository Responsibilities","/en/document/nodejs-backend/architecture/layers","en/document/48.nodejs-backend/06.architecture/02.layers",{"title":2009,"path":2010,"stem":2011},"Configuration, Logging, and Error Handling","/en/document/nodejs-backend/architecture/configuration-logging","en/document/48.nodejs-backend/06.architecture/03.configuration-logging",{"title":2013,"path":2014,"stem":2015,"children":2016,"icon":1920},"Common Backend Features","/en/document/nodejs-backend/business","en/document/48.nodejs-backend/07.business/01.index",[2017,2019,2023],{"title":2018,"path":2014,"stem":2015},"File Uploads, Downloads, and Static Assets",{"title":2020,"path":2021,"stem":2022},"Email, Verification Codes, and Third-Party Services","/en/document/nodejs-backend/business/integrations","en/document/48.nodejs-backend/07.business/02.integrations",{"title":2024,"path":2025,"stem":2026},"WebSocket, SSE, and Real-Time Messaging","/en/document/nodejs-backend/business/realtime","en/document/48.nodejs-backend/07.business/03.realtime",{"title":2028,"path":2029,"stem":2030,"children":2031,"icon":1920},"API Testing and Deployment","/en/document/nodejs-backend/delivery","en/document/48.nodejs-backend/08.delivery/01.index",[2032,2034],{"title":2033,"path":2029,"stem":2030},"API Debugging and Automated Testing",{"title":2035,"path":2036,"stem":2037},"Deploying Node.js Services","/en/document/nodejs-backend/delivery/deployment","en/document/48.nodejs-backend/08.delivery/02.deployment",{"title":2039,"icon":2040,"path":2041,"stem":2042,"children":2043,"page":49},"Redis","i-simple-icons-redis","/en/document/redis","en/document/50.redis",[2044,2059,2074,2085],{"title":2045,"path":2046,"stem":2047,"children":2048},"Redis Basics and Data Structures","/en/document/redis/guide","en/document/50.redis/01.guide/01.index",[2049,2051,2055],{"title":2050,"path":2046,"stem":2047},"Introduction and Node.js Integration",{"title":2052,"path":2053,"stem":2054},"Core Data Types and Common Operations","/en/document/redis/guide/data-types","en/document/50.redis/01.guide/02.data-types",{"title":2056,"path":2057,"stem":2058},"Key Management and Expiration","/en/document/redis/guide/keys-expiration","en/document/50.redis/01.guide/03.keys-expiration",{"title":2060,"path":2061,"stem":2062,"children":2063},"Redis Core Mechanisms","/en/document/redis/mechanisms","en/document/50.redis/02.mechanisms/01.index",[2064,2066,2070],{"title":2065,"path":2061,"stem":2062},"Atomic Operations, Transactions, and Pipelining",{"title":2067,"path":2068,"stem":2069},"Memory Management and Eviction Policies","/en/document/redis/mechanisms/memory-eviction","en/document/50.redis/02.mechanisms/02.memory-eviction",{"title":2071,"path":2072,"stem":2073},"Persistence","/en/document/redis/mechanisms/persistence","en/document/50.redis/02.mechanisms/03.persistence",{"title":2075,"path":2076,"stem":2077,"children":2078},"Redis in Node.js Applications","/en/document/redis/applications","en/document/50.redis/03.applications/01.index",[2079,2081],{"title":2080,"path":2076,"stem":2077},"Data Caching",{"title":2082,"path":2083,"stem":2084},"Common Caching Problems and Solutions","/en/document/redis/applications/cache-protection","en/document/50.redis/03.applications/02.cache-protection",{"title":2086,"path":2087,"stem":2088,"children":2089},"Redis in Production","/en/document/redis/production","en/document/50.redis/04.production/01.index",[2090],{"title":2091,"path":2087,"stem":2088},"Connection Management, Security, and Troubleshooting",{"title":2093,"icon":2094,"path":2095,"stem":2096,"children":2097,"page":49},"BullMQ","i-lucide-list-todo","/en/document/bullmq","en/document/51.bullmq",[2098,2109,2124],{"title":2099,"path":2100,"stem":2101,"children":2102},"BullMQ Basics","/en/document/bullmq/guide","en/document/51.bullmq/01.guide/01.index",[2103,2105],{"title":2104,"path":2100,"stem":2101},"Introduction and Quick Start",{"title":2106,"path":2107,"stem":2108},"Queue, Worker, and Job","/en/document/bullmq/guide/queue-worker-job","en/document/51.bullmq/01.guide/02.queue-worker-job",{"title":2110,"path":2111,"stem":2112,"children":2113},"Scheduling and Management","/en/document/bullmq/scheduling","en/document/51.bullmq/02.scheduling/01.index",[2114,2116,2120],{"title":2115,"path":2111,"stem":2112},"Delayed and Scheduled Jobs",{"title":2117,"path":2118,"stem":2119},"Concurrency and Rate Limiting","/en/document/bullmq/scheduling/concurrency-rate-limiting","en/document/51.bullmq/02.scheduling/02.concurrency-rate-limiting",{"title":2121,"path":2122,"stem":2123},"States, Progress, and Events","/en/document/bullmq/scheduling/status-progress-events","en/document/51.bullmq/02.scheduling/03.status-progress-events",{"title":2125,"path":2126,"stem":2127,"children":2128},"Job Reliability","/en/document/bullmq/reliability","en/document/51.bullmq/03.reliability/01.index",[2129],{"title":2130,"path":2126,"stem":2127},"Retries and Error Handling",{"title":2132,"icon":2133,"path":2134,"stem":2135,"children":2136,"page":49},"RabbitMQ","i-simple-icons-rabbitmq","/en/document/rabbitmq","en/document/52.rabbitmq",[2137,2155,2170,2189],{"title":1777,"path":2138,"stem":2139,"children":2140},"/en/document/rabbitmq/guide","en/document/52.rabbitmq/01.guide/01.index",[2141,2143,2147,2151],{"title":2142,"path":2138,"stem":2139},"Introduction to RabbitMQ",{"title":2144,"path":2145,"stem":2146},"Installation and connection","/en/document/rabbitmq/guide/environment","en/document/52.rabbitmq/01.guide/02.environment",{"title":2148,"path":2149,"stem":2150},"Send and receive a message","/en/document/rabbitmq/guide/first-message","en/document/52.rabbitmq/01.guide/03.first-message",{"title":2152,"path":2153,"stem":2154},"Message bodies and properties","/en/document/rabbitmq/guide/message-format","en/document/52.rabbitmq/01.guide/04.message-format",{"title":2156,"path":2157,"stem":2158,"children":2159},"Exchanges and routing","/en/document/rabbitmq/routing","en/document/52.rabbitmq/02.routing/01.index",[2160,2162,2166],{"title":2161,"path":2157,"stem":2158},"Exchanges and publish/subscribe",{"title":2163,"path":2164,"stem":2165},"Exact routing with direct exchanges","/en/document/rabbitmq/routing/direct","en/document/52.rabbitmq/02.routing/02.direct",{"title":2167,"path":2168,"stem":2169},"Wildcard routing with topic exchanges","/en/document/rabbitmq/routing/topic","en/document/52.rabbitmq/02.routing/03.topic",{"title":2171,"path":2172,"stem":2173,"children":2174},"Message reliability","/en/document/rabbitmq/reliability","en/document/52.rabbitmq/03.reliability/01.index",[2175,2177,2181,2185],{"title":2176,"path":2172,"stem":2173},"Message processing and consumer acknowledgements",{"title":2178,"path":2179,"stem":2180},"Publisher confirms and returned messages","/en/document/rabbitmq/reliability/publisher-confirms","en/document/52.rabbitmq/03.reliability/02.publisher-confirms",{"title":2182,"path":2183,"stem":2184},"Queue durability and message persistence","/en/document/rabbitmq/reliability/persistence","en/document/52.rabbitmq/03.reliability/03.persistence",{"title":2186,"path":2187,"stem":2188},"Consumer failures and dead-letter handling","/en/document/rabbitmq/reliability/dead-letter","en/document/52.rabbitmq/03.reliability/04.dead-letter",{"title":2190,"path":2191,"stem":2192,"children":2193},"Consumers and operations","/en/document/rabbitmq/management","en/document/52.rabbitmq/04.management/01.index",[2194,2196],{"title":2195,"path":2191,"stem":2192},"Multiple consumers and prefetch control",{"title":2197,"path":2198,"stem":2199},"Queue state and troubleshooting","/en/document/rabbitmq/management/monitoring","en/document/52.rabbitmq/04.management/02.monitoring",{"title":2201,"icon":2202,"path":2203,"stem":2204,"children":2205,"page":49},"Socket.IO","i-simple-icons-socketdotio","/en/document/socket-io","en/document/53.socket-io",[2206,2221,2236,2247],{"title":2207,"path":2208,"stem":2209,"children":2210},"Introduction and Messaging","/en/document/socket-io/guide","en/document/53.socket-io/01.guide/01.index",[2211,2213,2217],{"title":2212,"path":2208,"stem":2209},"Introduction and Setup",{"title":2214,"path":2215,"stem":2216},"Emitting and Listening for Events","/en/document/socket-io/guide/events","en/document/53.socket-io/01.guide/02.events",{"title":2218,"path":2219,"stem":2220},"Acknowledgements and Input Validation","/en/document/socket-io/guide/acknowledgements","en/document/53.socket-io/01.guide/03.acknowledgements",{"title":2222,"path":2223,"stem":2224,"children":2225},"Broadcasting, Rooms, and Authentication","/en/document/socket-io/messaging","en/document/53.socket-io/02.messaging/01.index",[2226,2228,2232],{"title":2227,"path":2223,"stem":2224},"Broadcasting and Message Recipients",{"title":2229,"path":2230,"stem":2231},"Joining Rooms and Group Chat","/en/document/socket-io/messaging/rooms","en/document/53.socket-io/02.messaging/02.rooms",{"title":2233,"path":2234,"stem":2235},"Authentication and Room Permissions","/en/document/socket-io/messaging/authentication","en/document/53.socket-io/02.messaging/03.authentication",{"title":2237,"path":2238,"stem":2239,"children":2240},"Disconnections and Message Recovery","/en/document/socket-io/reliability","en/document/53.socket-io/03.reliability/01.index",[2241,2243],{"title":2242,"path":2238,"stem":2239},"Reconnection and Connection Status",{"title":2244,"path":2245,"stem":2246},"Recent Messages and Recovery","/en/document/socket-io/reliability/history","en/document/53.socket-io/03.reliability/02.history",{"title":2248,"path":2249,"stem":2250,"children":2251},"Deployment and Troubleshooting","/en/document/socket-io/production","en/document/53.socket-io/04.production/01.index",[2252],{"title":2248,"path":2249,"stem":2250},{"title":2254,"icon":2255,"path":2256,"stem":2257,"children":2258,"page":49},"Nginx","i-simple-icons-nginx","/en/document/nginx","en/document/55.nginx",[2259,2277,2296,2311],{"title":1300,"path":2260,"stem":2261,"children":2262},"/en/document/nginx/guide","en/document/55.nginx/01.guide/01.index",[2263,2265,2269,2273],{"title":2264,"path":2260,"stem":2261},"Course Overview",{"title":2266,"path":2267,"stem":2268},"Installation and Setup","/en/document/nginx/guide/install","en/document/55.nginx/01.guide/02.install",{"title":2270,"path":2271,"stem":2272},"Configuration Structure","/en/document/nginx/guide/configuration","en/document/55.nginx/01.guide/03.configuration",{"title":2274,"path":2275,"stem":2276},"Starting and Reloading","/en/document/nginx/guide/lifecycle","en/document/55.nginx/01.guide/04.lifecycle",{"title":2278,"path":2279,"stem":2280,"children":2281},"Serving Static Websites","/en/document/nginx/website","en/document/55.nginx/02.website/01.index",[2282,2284,2288,2292],{"title":2283,"path":2279,"stem":2280},"Static Files and Directories",{"title":2285,"path":2286,"stem":2287},"Site and Path Matching","/en/document/nginx/website/location","en/document/55.nginx/02.website/02.location",{"title":2289,"path":2290,"stem":2291},"Frontend Routing and Fallbacks","/en/document/nginx/website/spa-routing","en/document/55.nginx/02.website/03.spa-routing",{"title":2293,"path":2294,"stem":2295},"Caching and Compression","/en/document/nginx/website/cache-gzip","en/document/55.nginx/02.website/04.cache-gzip",{"title":2297,"path":2298,"stem":2299,"children":2300},"Proxying and Load Balancing","/en/document/nginx/proxy","en/document/55.nginx/03.proxy/01.index",[2301,2303,2307],{"title":2302,"path":2298,"stem":2299},"Reverse Proxy Basics",{"title":2304,"path":2305,"stem":2306},"Forwarded Headers and Timeouts","/en/document/nginx/proxy/forwarded-headers","en/document/55.nginx/03.proxy/02.forwarded-headers",{"title":2308,"path":2309,"stem":2310},"Load Balancing","/en/document/nginx/proxy/load-balancing","en/document/55.nginx/03.proxy/03.load-balancing",{"title":2312,"path":2313,"stem":2314,"children":2315},"Troubleshooting and Deployment","/en/document/nginx/operations","en/document/55.nginx/04.operations/01.index",[2316,2318,2322],{"title":2317,"path":2313,"stem":2314},"Logs and Troubleshooting",{"title":2319,"path":2320,"stem":2321},"Size and Rate Limits","/en/document/nginx/operations/request-limits","en/document/55.nginx/04.operations/02.request-limits",{"title":2323,"path":2324,"stem":2325},"HTTPS and Certificates","/en/document/nginx/operations/https","en/document/55.nginx/04.operations/03.https",{"title":2327,"icon":2328,"path":2329,"stem":2330,"children":2331,"page":49},"Linux and server fundamentals","i-simple-icons-linux","/en/document/linux","en/document/56.linux",[2332,2359,2382],{"title":2333,"path":2334,"stem":2335,"children":2336},"Linux basics","/en/document/linux/guide","en/document/56.linux/01.guide/01.index",[2337,2339,2343,2347,2351,2355],{"title":2338,"path":2334,"stem":2335},"Linux course overview",{"title":2340,"path":2341,"stem":2342},"Filesystems and directories","/en/document/linux/guide/filesystem","en/document/56.linux/01.guide/02.filesystem",{"title":2344,"path":2345,"stem":2346},"Viewing files and using Vim","/en/document/linux/guide/editing","en/document/56.linux/01.guide/03.editing",{"title":2348,"path":2349,"stem":2350},"Search, pipelines, and redirection","/en/document/linux/guide/search-pipelines","en/document/56.linux/01.guide/04.search-pipelines",{"title":2352,"path":2353,"stem":2354},"Users, groups, and permissions","/en/document/linux/guide/permissions","en/document/56.linux/01.guide/05.permissions",{"title":2356,"path":2357,"stem":2358},"SSH and file transfers","/en/document/linux/guide/ssh","en/document/56.linux/01.guide/06.ssh",{"title":2360,"path":2361,"stem":2362,"children":2363},"Linux server administration","/en/document/linux/server","en/document/56.linux/02.server/01.index",[2364,2366,2370,2374,2378],{"title":2365,"path":2361,"stem":2362},"Packages and environment variables",{"title":2367,"path":2368,"stem":2369},"Processes and background execution","/en/document/linux/server/processes","en/document/56.linux/02.server/02.processes",{"title":2371,"path":2372,"stem":2373},"systemd service management","/en/document/linux/server/systemd","en/document/56.linux/02.server/03.systemd",{"title":2375,"path":2376,"stem":2377},"System resources and disks","/en/document/linux/server/resources","en/document/56.linux/02.server/05.resources",{"title":2379,"path":2380,"stem":2381},"System and application logs","/en/document/linux/server/logs","en/document/56.linux/02.server/06.logs",{"title":2383,"path":2384,"stem":2385,"children":2386},"Shell scripting and server practice","/en/document/linux/practice","en/document/56.linux/03.practice/01.index",[2387,2389,2393],{"title":2388,"path":2384,"stem":2385},"Bash scripting basics",{"title":2390,"path":2391,"stem":2392},"Scheduled tasks with cron","/en/document/linux/practice/cron","en/document/56.linux/03.practice/02.cron",{"title":2394,"path":2395,"stem":2396},"Basic server security","/en/document/linux/practice/security","en/document/56.linux/03.practice/03.security",{"title":2398,"icon":2399,"path":2400,"stem":2401,"children":2402,"page":49},"BFF and Multi-Service Architecture","i-lucide-network","/en/document/backend-architecture","en/document/57.backend-architecture",[2403,2418],{"title":2404,"path":2405,"stem":2406,"children":2407},"BFF Fundamentals and Practice","/en/document/backend-architecture/guide","en/document/57.backend-architecture/01.guide/01.index",[2408,2410,2414],{"title":2409,"path":2405,"stem":2406},"BFF Overview",{"title":2411,"path":2412,"stem":2413},"API Aggregation","/en/document/backend-architecture/guide/aggregation","en/document/57.backend-architecture/01.guide/02.aggregation",{"title":2415,"path":2416,"stem":2417},"API Adaptation and Boundaries","/en/document/backend-architecture/guide/adaptation","en/document/57.backend-architecture/01.guide/03.adaptation",{"title":2419,"path":2420,"stem":2421,"children":2422},"Service Decomposition and Communication","/en/document/backend-architecture/services","en/document/57.backend-architecture/02.services/01.index",[2423,2425,2429,2433],{"title":2424,"path":2420,"stem":2421},"From a Monolith to Services",{"title":2426,"path":2427,"stem":2428},"HTTP Service Communication","/en/document/backend-architecture/services/http-collaboration","en/document/57.backend-architecture/02.services/02.http-collaboration",{"title":2430,"path":2431,"stem":2432},"Unified API Entry Point","/en/document/backend-architecture/services/api-entry","en/document/57.backend-architecture/02.services/03.api-entry",{"title":2434,"path":2435,"stem":2436},"Service Call Failure Handling","/en/document/backend-architecture/services/failure-handling","en/document/57.backend-architecture/02.services/04.failure-handling",{"title":2438,"icon":2399,"path":2439,"stem":2440,"children":2441,"page":49},"Microservices Architecture","/en/document/microservices","en/document/58.microservices",[2442,2461,2480],{"title":2443,"path":2444,"stem":2445,"children":2446},"Microservices Architecture and Design","/en/document/microservices/guide","en/document/58.microservices/01.guide/01.index",[2447,2449,2453,2457],{"title":2448,"path":2444,"stem":2445},"Introduction to Microservices",{"title":2450,"path":2451,"stem":2452},"Designing and Decomposing Microservices","/en/document/microservices/guide/service-design","en/document/58.microservices/01.guide/02.service-design",{"title":2454,"path":2455,"stem":2456},"Project Structure and Setup","/en/document/microservices/guide/project-setup","en/document/58.microservices/01.guide/03.project-setup",{"title":2458,"path":2459,"stem":2460},"Service Communication and Discovery","/en/document/microservices/guide/communication-discovery","en/document/58.microservices/01.guide/04.communication-discovery",{"title":2462,"path":2463,"stem":2464,"children":2465},"Microservices Business Development","/en/document/microservices/development","en/document/58.microservices/02.development/01.index",[2466,2468,2472,2476],{"title":2467,"path":2463,"stem":2464},"Database Design",{"title":2469,"path":2470,"stem":2471},"Business Events","/en/document/microservices/development/business-events","en/document/58.microservices/02.development/02.business-events",{"title":2473,"path":2474,"stem":2475},"Distributed Transactions and Data Consistency","/en/document/microservices/development/distributed-transactions","en/document/58.microservices/02.development/03.distributed-transactions",{"title":2477,"path":2478,"stem":2479},"Fault Tolerance and Reliability","/en/document/microservices/development/resilience","en/document/58.microservices/02.development/04.resilience",{"title":2481,"path":2482,"stem":2483,"children":2484},"Microservices Operations and Governance","/en/document/microservices/operations","en/document/58.microservices/03.operations/01.index",[2485,2487,2491],{"title":2486,"path":2482,"stem":2483},"Security",{"title":2488,"path":2489,"stem":2490},"Observability","/en/document/microservices/operations/observability","en/document/58.microservices/03.operations/02.observability",{"title":2492,"path":2493,"stem":2494},"Deployment and Scaling","/en/document/microservices/operations/deployment-scaling","en/document/58.microservices/03.operations/04.deployment-scaling",{"title":2496,"icon":2497,"path":2498,"stem":2499,"children":2500,"page":49},"Kubernetes Application Deployment","i-simple-icons-kubernetes","/en/document/kubernetes","en/document/59.kubernetes",[2501,2524],{"title":2502,"path":2503,"stem":2504,"children":2505},"Kubernetes Fundamentals and Application Deployment","/en/document/kubernetes/guide","en/document/59.kubernetes/01.guide/01.index",[2506,2508,2512,2516,2520],{"title":2507,"path":2503,"stem":2504},"Introduction",{"title":2509,"path":2510,"stem":2511},"Environment Setup and Basic Operations","/en/document/kubernetes/guide/setup","en/document/59.kubernetes/01.guide/02.setup",{"title":2513,"path":2514,"stem":2515},"Pod","/en/document/kubernetes/guide/pod","en/document/59.kubernetes/01.guide/03.pod",{"title":2517,"path":2518,"stem":2519},"Deployment","/en/document/kubernetes/guide/deployment","en/document/59.kubernetes/01.guide/04.deployment",{"title":2521,"path":2522,"stem":2523},"Service","/en/document/kubernetes/guide/service","en/document/59.kubernetes/01.guide/05.service",{"title":2525,"path":2526,"stem":2527,"children":2528,"page":49},"Service Configuration and Runtime Management","/en/document/kubernetes/management","en/document/59.kubernetes/02.management",[2529,2533,2537,2541,2545,2549,2553],{"title":2530,"path":2531,"stem":2532},"Gateway API","/en/document/kubernetes/management/gateway-api","en/document/59.kubernetes/02.management/06.gateway-api",{"title":2534,"path":2535,"stem":2536},"ConfigMaps and Secrets","/en/document/kubernetes/management/configmap-secret","en/document/59.kubernetes/02.management/07.configmap-secret",{"title":2538,"path":2539,"stem":2540},"Health Checks","/en/document/kubernetes/management/probes","en/document/59.kubernetes/02.management/08.probes",{"title":2542,"path":2543,"stem":2544},"Resource Requests and Limits","/en/document/kubernetes/management/resources","en/document/59.kubernetes/02.management/09.resources",{"title":2546,"path":2547,"stem":2548},"Rolling Updates and Rollbacks","/en/document/kubernetes/management/rolling-update","en/document/59.kubernetes/02.management/10.rolling-update",{"title":2550,"path":2551,"stem":2552},"Scaling and Autoscaling","/en/document/kubernetes/management/autoscaling","en/document/59.kubernetes/02.management/11.autoscaling",{"title":2554,"path":2555,"stem":2556},"Storage and Persistence","/en/document/kubernetes/management/storage","en/document/59.kubernetes/02.management/12.storage",{"title":2558,"icon":2559,"path":2560,"stem":2561,"children":2562,"page":49},"LLM Fundamentals","i-lucide-brain","/en/document/llm","en/document/60.llm",[2563,2586,2604],{"title":2564,"path":2565,"stem":2566,"children":2567},"Large Language Model Fundamentals","/en/document/llm/guide","en/document/60.llm/01.guide/01.index",[2568,2570,2574,2578,2582],{"title":2569,"path":2565,"stem":2566},"LLM Overview",{"title":2571,"path":2572,"stem":2573},"How LLMs Work","/en/document/llm/guide/how-llms-work","en/document/60.llm/01.guide/02.how-llms-work",{"title":2575,"path":2576,"stem":2577},"Tokens and Context","/en/document/llm/guide/tokens-and-context-window","en/document/60.llm/01.guide/03.tokens-and-context-window",{"title":2579,"path":2580,"stem":2581},"Model Types and Parameters","/en/document/llm/guide/model-types-and-parameters","en/document/60.llm/01.guide/04.model-types-and-parameters",{"title":2583,"path":2584,"stem":2585},"Embeddings and Semantics","/en/document/llm/guide/embeddings","en/document/60.llm/01.guide/05.embeddings",{"title":2587,"path":2588,"stem":2589,"children":2590},"Prompt Engineering","/en/document/llm/prompt-engineering","en/document/60.llm/02.prompt-engineering/01.index",[2591,2592,2596,2600],{"title":2587,"path":2588,"stem":2589},{"title":2593,"path":2594,"stem":2595},"Roles and Instructions","/en/document/llm/prompt-engineering/roles-and-instructions","en/document/60.llm/02.prompt-engineering/02.roles-and-instructions",{"title":2597,"path":2598,"stem":2599},"Few-Shot Examples","/en/document/llm/prompt-engineering/few-shot","en/document/60.llm/02.prompt-engineering/03.few-shot",{"title":2601,"path":2602,"stem":2603},"Structured Output and Task Decomposition","/en/document/llm/prompt-engineering/structured-output-and-complex-tasks","en/document/60.llm/02.prompt-engineering/04.structured-output-and-complex-tasks",{"title":2605,"path":2606,"stem":2607,"children":2608},"Context Engineering and Practice","/en/document/llm/context-engineering","en/document/60.llm/03.context-engineering/01.index",[2609,2611],{"title":2610,"path":2606,"stem":2607},"Context Engineering",{"title":2612,"path":2613,"stem":2614},"Testing and Optimization","/en/document/llm/context-engineering/prompt-testing-and-optimization","en/document/60.llm/03.context-engineering/02.prompt-testing-and-optimization",{"title":2616,"icon":2617,"path":2618,"stem":2619,"children":2620,"page":49},"AI SDK","i-lucide-code-xml","/en/document/ai-sdk","en/document/61.ai-sdk",[2621,2640,2657],{"title":2622,"path":2623,"stem":2624,"children":2625},"Basic API Calls","/en/document/ai-sdk/guide","en/document/61.ai-sdk/01.guide/01.index",[2626,2628,2632,2636],{"title":2627,"path":2623,"stem":2624},"Introduction to AI SDKs",{"title":2629,"path":2630,"stem":2631},"Text Generation and Parameters","/en/document/ai-sdk/guide/text-generation","en/document/61.ai-sdk/01.guide/02.text-generation",{"title":2633,"path":2634,"stem":2635},"Message Management and Multi-Turn Conversations","/en/document/ai-sdk/guide/conversation","en/document/61.ai-sdk/01.guide/03.conversation",{"title":2637,"path":2638,"stem":2639},"Streaming Output","/en/document/ai-sdk/guide/streaming","en/document/61.ai-sdk/01.guide/04.streaming",{"title":2641,"path":2642,"stem":2643,"children":2644,"page":49},"Model Capabilities and Integration","/en/document/ai-sdk/capabilities","en/document/61.ai-sdk/02.capabilities",[2645,2649,2653],{"title":2646,"path":2647,"stem":2648},"Structured Output","/en/document/ai-sdk/capabilities/structured-output","en/document/61.ai-sdk/02.capabilities/05.structured-output",{"title":2650,"path":2651,"stem":2652},"Function Calling","/en/document/ai-sdk/capabilities/function-calling","en/document/61.ai-sdk/02.capabilities/06.function-calling",{"title":2654,"path":2655,"stem":2656},"Multimodal Input","/en/document/ai-sdk/capabilities/multimodal","en/document/61.ai-sdk/02.capabilities/07.multimodal",{"title":2658,"path":2659,"stem":2660,"children":2661,"page":49},"Building Applications","/en/document/ai-sdk/application","en/document/61.ai-sdk/03.application",[2662,2666],{"title":2663,"path":2664,"stem":2665},"AI Service API","/en/document/ai-sdk/application/express-api","en/document/61.ai-sdk/03.application/08.express-api",{"title":2667,"path":2668,"stem":2669},"Persisting Conversation History","/en/document/ai-sdk/application/persistence","en/document/61.ai-sdk/03.application/09.persistence",{"title":2671,"icon":2672,"path":2673,"stem":2674,"children":2675,"page":49},"RAG (Retrieval-Augmented Generation)","i-lucide-book-open-check","/en/document/rag","en/document/62.rag",[2676,2691,2712],{"title":2677,"path":2678,"stem":2679,"children":2680},"RAG Fundamentals and Implementation","/en/document/rag/guide","en/document/62.rag/01.guide/01.index",[2681,2683,2687],{"title":2682,"path":2678,"stem":2679},"RAG Overview",{"title":2684,"path":2685,"stem":2686},"Your First RAG Application","/en/document/rag/guide/first-rag","en/document/62.rag/01.guide/02.first-rag",{"title":2688,"path":2689,"stem":2690},"Loading and Chunking","/en/document/rag/guide/document-chunking","en/document/62.rag/01.guide/03.document-chunking",{"title":2692,"path":2693,"stem":2694,"children":2695,"page":49},"Knowledge Storage and Retrieval","/en/document/rag/knowledge-retrieval","en/document/62.rag/02.knowledge-retrieval",[2696,2700,2704,2708],{"title":2697,"path":2698,"stem":2699},"Vector Databases","/en/document/rag/knowledge-retrieval/vector-database","en/document/62.rag/02.knowledge-retrieval/01.vector-database",{"title":2701,"path":2702,"stem":2703},"Similarity Search","/en/document/rag/knowledge-retrieval/similarity-search","en/document/62.rag/02.knowledge-retrieval/02.similarity-search",{"title":2705,"path":2706,"stem":2707},"Retrieval and Answers","/en/document/rag/knowledge-retrieval/grounded-answer","en/document/62.rag/02.knowledge-retrieval/03.grounded-answer",{"title":2709,"path":2710,"stem":2711},"Conversational RAG","/en/document/rag/knowledge-retrieval/conversational-rag","en/document/62.rag/02.knowledge-retrieval/04.conversational-rag",{"title":2713,"path":2714,"stem":2715,"children":2716,"page":49},"Maintenance and Optimization","/en/document/rag/management-optimization","en/document/62.rag/03.management-optimization",[2717,2721,2725,2729,2733],{"title":2718,"path":2719,"stem":2720},"Knowledge Base Maintenance","/en/document/rag/management-optimization/knowledge-maintenance","en/document/62.rag/03.management-optimization/01.knowledge-maintenance",{"title":2722,"path":2723,"stem":2724},"RAG Evaluation","/en/document/rag/management-optimization/rag-evaluation","en/document/62.rag/03.management-optimization/02.rag-evaluation",{"title":2726,"path":2727,"stem":2728},"Hybrid Retrieval","/en/document/rag/management-optimization/retrieval-optimization","en/document/62.rag/03.management-optimization/03.retrieval-optimization",{"title":2730,"path":2731,"stem":2732},"RRF Rank Fusion","/en/document/rag/management-optimization/retrieval-reranking","en/document/62.rag/03.management-optimization/04.retrieval-reranking",{"title":2734,"path":2735,"stem":2736},"Rerankers","/en/document/rag/management-optimization/reranker","en/document/62.rag/03.management-optimization/05.reranker",{"title":2738,"icon":2739,"path":2740,"stem":2741,"children":2742,"page":49},"MCP","i-lucide-plug","/en/document/mcp","en/document/63.mcp",[2743,2754,2771],{"title":2744,"path":2745,"stem":2746,"children":2747},"MCP Basics","/en/document/mcp/guide","en/document/63.mcp/01.guide/01.index",[2748,2750],{"title":2749,"path":2745,"stem":2746},"MCP Overview",{"title":2751,"path":2752,"stem":2753},"Your First MCP Server","/en/document/mcp/guide/first-server","en/document/63.mcp/01.guide/02.first-server",{"title":2755,"path":2756,"stem":2757,"children":2758,"page":49},"MCP Server Development","/en/document/mcp/server","en/document/63.mcp/02.server",[2759,2763,2767],{"title":2760,"path":2761,"stem":2762},"Tools","/en/document/mcp/server/tools","en/document/63.mcp/02.server/01.tools",{"title":2764,"path":2765,"stem":2766},"Resources","/en/document/mcp/server/resources","en/document/63.mcp/02.server/02.resources",{"title":2768,"path":2769,"stem":2770},"Prompts","/en/document/mcp/server/prompts","en/document/63.mcp/02.server/03.prompts",{"title":2772,"path":2773,"stem":2774,"children":2775,"page":49},"MCP Application Integration","/en/document/mcp/integration","en/document/63.mcp/03.integration",[2776,2780],{"title":2777,"path":2778,"stem":2779},"AI Application Integration","/en/document/mcp/integration/ai-integration","en/document/63.mcp/03.integration/03.ai-integration",{"title":1965,"path":2781,"stem":2782},"/en/document/mcp/integration/auth-deployment","en/document/63.mcp/03.integration/04.auth-deployment",{"title":2784,"icon":2785,"path":2786,"stem":2787,"children":2788,"page":49},"LangChain","i-lucide-bot","/en/document/ai-agent","en/document/64.ai-agent",[2789,2800,2815],{"title":2790,"path":2791,"stem":2792,"children":2793},"Agent Basics","/en/document/ai-agent/guide","en/document/64.ai-agent/01.guide/01.index",[2794,2796],{"title":2795,"path":2791,"stem":2792},"AI Agent Overview",{"title":2797,"path":2798,"stem":2799},"Agent Loop","/en/document/ai-agent/guide/agent-loop","en/document/64.ai-agent/01.guide/02.agent-loop",{"title":2801,"path":2802,"stem":2803,"children":2804},"Agent Development","/en/document/ai-agent/langchain","en/document/64.ai-agent/02.langchain/01.index",[2805,2807,2811],{"title":2806,"path":2802,"stem":2803},"Your First LangChain Agent",{"title":2808,"path":2809,"stem":2810},"RAG and MCP Integration","/en/document/ai-agent/langchain/rag-mcp","en/document/64.ai-agent/02.langchain/02.rag-mcp",{"title":2812,"path":2813,"stem":2814},"Streaming","/en/document/ai-agent/langchain/streaming","en/document/64.ai-agent/02.langchain/03.streaming",{"title":2816,"path":2817,"stem":2818,"children":2819},"Advanced Agents","/en/document/ai-agent/advanced","en/document/64.ai-agent/03.advanced/01.index",[2820,2822,2826],{"title":2821,"path":2817,"stem":2818},"Short-Term Memory",{"title":2823,"path":2824,"stem":2825},"Long-Term Memory","/en/document/ai-agent/advanced/long-term-memory","en/document/64.ai-agent/03.advanced/02.long-term-memory",{"title":2827,"path":2828,"stem":2829},"Middleware and Execution Controls","/en/document/ai-agent/advanced/middleware","en/document/64.ai-agent/03.advanced/03.middleware",{"title":2831,"icon":2832,"path":2833,"stem":2834,"children":2835,"page":49},"LangGraph","i-lucide-workflow","/en/document/langgraph","en/document/65.langgraph",[2836,2850,2865],{"title":2837,"path":2838,"stem":2839,"children":2840,"icon":1920},"LangGraph Basics","/en/document/langgraph/guide","en/document/65.langgraph/01.guide/01.index",[2841,2843,2847],{"title":2842,"path":2838,"stem":2839},"LangGraph Overview",{"title":2844,"path":2845,"stem":2846},"Your First Workflow","/en/document/langgraph/guide/first-workflow","en/document/65.langgraph/01.guide/02.first-workflow",{"title":725,"path":2848,"stem":2849},"/en/document/langgraph/guide/state","en/document/65.langgraph/01.guide/03.state",{"title":2851,"path":2852,"stem":2853,"children":2854,"icon":2832},"Workflow Orchestration","/en/document/langgraph/workflow","en/document/65.langgraph/02.workflow/01.index",[2855,2857,2861],{"title":2856,"path":2852,"stem":2853},"Conditional Branches and Loops",{"title":2858,"path":2859,"stem":2860},"Parallel Execution","/en/document/langgraph/workflow/parallel","en/document/65.langgraph/02.workflow/02.parallel",{"title":2862,"path":2863,"stem":2864},"Subgraphs and Workflow Reuse","/en/document/langgraph/workflow/subgraphs","en/document/65.langgraph/02.workflow/03.subgraphs",{"title":2866,"path":2867,"stem":2868,"children":2869,"icon":1602},"Advanced LangGraph","/en/document/langgraph/advanced","en/document/65.langgraph/03.advanced/01.index",[2870,2872,2876],{"title":2871,"path":2867,"stem":2868},"State Persistence",{"title":2873,"path":2874,"stem":2875},"Interrupts and Resuming","/en/document/langgraph/advanced/interrupts","en/document/65.langgraph/03.advanced/02.interrupts",{"title":2877,"path":2878,"stem":2879},"Custom Agents","/en/document/langgraph/advanced/custom-agent","en/document/65.langgraph/03.advanced/03.custom-agent",{"title":2881,"icon":2882,"path":2883,"stem":2884,"children":2885,"page":49},"AI Security","i-lucide-shield-check","/en/document/ai-security","en/document/66.ai-security",[2886,2901,2920],{"title":2887,"path":2888,"stem":2889,"children":2890,"icon":1920},"AI Security Basics","/en/document/ai-security/guide","en/document/66.ai-security/01.guide/01.index",[2891,2893,2897],{"title":2892,"path":2888,"stem":2889},"AI Security Overview",{"title":2894,"path":2895,"stem":2896},"Prompt Injection","/en/document/ai-security/guide/prompt-injection","en/document/66.ai-security/01.guide/02.prompt-injection",{"title":2898,"path":2899,"stem":2900},"Sensitive Data Protection","/en/document/ai-security/guide/sensitive-data","en/document/66.ai-security/01.guide/03.sensitive-data",{"title":2902,"path":2903,"stem":2904,"children":2905,"icon":2882},"AI Application Protection","/en/document/ai-security/protection","en/document/66.ai-security/02.protection/01.index",[2906,2908,2912,2916],{"title":2907,"path":2903,"stem":2904},"Input Security and Content Moderation",{"title":2909,"path":2910,"stem":2911},"Model Output Safety","/en/document/ai-security/protection/output-safety","en/document/66.ai-security/02.protection/02.output-safety",{"title":2913,"path":2914,"stem":2915},"Resource Consumption Protection","/en/document/ai-security/protection/resource-protection","en/document/66.ai-security/02.protection/03.resource-protection",{"title":2917,"path":2918,"stem":2919},"Token and Cost Control","/en/document/ai-security/protection/token-cost","en/document/66.ai-security/02.protection/04.token-cost",{"title":2921,"path":2922,"stem":2923,"children":2924,"icon":2943},"Advanced Security","/en/document/ai-security/advanced","en/document/66.ai-security/03.advanced/01.index",[2925,2927,2931,2935,2939],{"title":2926,"path":2922,"stem":2923},"RAG Security",{"title":2928,"path":2929,"stem":2930},"MCP Security","/en/document/ai-security/advanced/mcp-security","en/document/66.ai-security/03.advanced/02.mcp-security",{"title":2932,"path":2933,"stem":2934},"Agent Permissions and Execution Safety","/en/document/ai-security/advanced/agent-execution","en/document/66.ai-security/03.advanced/03.agent-execution",{"title":2936,"path":2937,"stem":2938},"Agent Memory and Context Security","/en/document/ai-security/advanced/agent-context","en/document/66.ai-security/03.advanced/04.agent-context",{"title":2940,"path":2941,"stem":2942},"AI Security Testing","/en/document/ai-security/advanced/security-testing","en/document/66.ai-security/03.advanced/05.security-testing","i-lucide-lock-keyhole",{"id":2945,"title":2928,"body":2946,"description":7256,"extension":7257,"links":7258,"meta":7259,"navigation":7260,"path":2929,"seo":7261,"stem":2930,"__hash__":7262},"englishPages/en/document/66.ai-security/03.advanced/02.mcp-security.md",{"type":2947,"value":2948,"toc":7234},"minimal",[2949,2954,2958,2961,2965,2968,2971,3021,3024,3027,3033,3035,3039,3042,3085,3090,3097,3151,3158,3162,3165,3195,3202,4347,4350,4363,4374,4380,4384,4390,4703,4705,4709,4713,4719,4981,4988,5003,5009,5013,5016,5019,5025,5396,5411,5415,5421,5756,5763,5783,5789,5792,5794,5798,5801,5860,5863,5867,5873,6096,6102,6235,6245,6249,6256,6262,6471,6476,6502,6508,6651,6660,6664,6667,6673,7019,7024,7039,7052,7061,7088,7094,7125,7128,7143,7146,7153,7158,7161,7163,7167,7170,7173,7180,7183,7185,7189,7195,7198,7200,7204,7216,7225,7227,7230],[2950,2951,2953],"h2",{"id":2952},"introduction","🎯 Introduction",[2955,2956,2957],"p",{},"A document assistant only needs to retrieve documents, but connecting to an MCP server may also expose deletion tools. Connecting to an untrusted service can also leak business data. This article uses Streamable HTTP to restrict server addresses and tool calls, detect tool definition changes, and use MCP access tokens correctly.",[2959,2960],"hr",{},[2950,2962,2964],{"id":2963},"connect-to-mcp-servers-safely","🧱 Connect to MCP servers safely",[2955,2966,2967],{},"MCP clients send tool arguments to servers. Connecting to the wrong service can therefore expose business data as well as malicious tools.",[2955,2969,2970],{},"Suppose a document assistant may connect only to the company's document service:",[2972,2973,2974,2987],"table",{},[2975,2976,2977],"thead",{},[2978,2979,2980,2984],"tr",{},[2981,2982,2983],"th",{},"MCP address (example)",[2981,2985,2986],{},"Connection allowed?",[2988,2989,2990,3002,3012],"tbody",{},[2978,2991,2992,2999],{},[2993,2994,2995],"td",{},[2996,2997,2998],"code",{},"https://mcp.example.com/mcp",[2993,3000,3001],{},"Approved; allow",[2978,3003,3004,3009],{},[2993,3005,3006],{},[2996,3007,3008],{},"https://unknown.example.com/mcp",[2993,3010,3011],{},"Not approved; reject",[2978,3013,3014,3019],{},[2993,3015,3016],{},[2996,3017,3018],{},"http://192.168.1.100/mcp",[2993,3020,3011],{},[2955,3022,3023],{},"Store the complete MCP URL in server-side configuration and let the application choose the destination. Do not use model-generated URLs. In production, use HTTPS and verify server certificates.",[2955,3025,3026],{},"If users can supply MCP URLs, the application may be induced to request internal business services. This is server-side request forgery (SSRF). Checking domain names alone is insufficient because a domain can resolve to a private IP address.",[3028,3029,3030],"tip",{},[2955,3031,3032],{},"For dynamic connections, use network egress policies to restrict reachable IP addresses and ports. Apply the same restrictions to subsequent requests from redirects and OAuth discovery.",[2959,3034],{},[2950,3036,3038],{"id":3037},"create-a-test-server","🛠 Create a test server",[2955,3040,3041],{},"In this document assistant example, the client should allow only reads, but the server offers two tools:",[2972,3043,3044,3057],{},[2975,3045,3046],{},[2978,3047,3048,3051,3054],{},[2981,3049,3050],{},"Tool",[2981,3052,3053],{},"Function",[2981,3055,3056],{},"Client policy",[2988,3058,3059,3072],{},[2978,3060,3061,3066,3069],{},[2993,3062,3063],{},[2996,3064,3065],{},"read_document",[2993,3067,3068],{},"Read a document",[2993,3070,3071],{},"Allow",[2978,3073,3074,3079,3082],{},[2993,3075,3076],{},[2996,3077,3078],{},"delete_document",[2993,3080,3081],{},"Simulate document deletion",[2993,3083,3084],{},"Reject",[3086,3087,3089],"h3",{"id":3088},"tool-annotations","Tool annotations",[2955,3091,3092,3093,3096],{},"Tool ",[2996,3094,3095],{},"annotations"," are server-provided behavior hints. They can inform risk displays but must not grant permissions.",[2972,3098,3099,3109],{},[2975,3100,3101],{},[2978,3102,3103,3106],{},[2981,3104,3105],{},"Property",[2981,3107,3108],{},"Meaning claimed by the server",[2988,3110,3111,3121,3131,3141],{},[2978,3112,3113,3118],{},[2993,3114,3115],{},[2996,3116,3117],{},"readOnlyHint",[2993,3119,3120],{},"Whether the tool is read-only and does not modify its environment",[2978,3122,3123,3128],{},[2993,3124,3125],{},[2996,3126,3127],{},"destructiveHint",[2993,3129,3130],{},"Whether a non-read-only operation may be destructive",[2978,3132,3133,3138],{},[2993,3134,3135],{},[2996,3136,3137],{},"idempotentHint",[2993,3139,3140],{},"Whether repeating a non-read-only tool with identical arguments has no additional effect",[2978,3142,3143,3148],{},[2993,3144,3145],{},[2996,3146,3147],{},"openWorldHint",[2993,3149,3150],{},"Whether the tool interacts with an external environment",[2955,3152,3153,3154,3157],{},"The delete tool below deliberately declares ",[2996,3155,3156],{},"readOnlyHint: true"," to verify that the client does not expose tools solely on the basis of annotations.",[3086,3159,3161],{"id":3160},"create-an-mcp-server","Create an MCP server",[2955,3163,3164],{},"Use Node.js 22, MCP TypeScript SDK 1.26.0, Express 5.1.0, and Zod 3.25.76 (for the later schema change experiment). Install dependencies in a separate directory:",[3166,3167,3172],"pre",{"className":3168,"code":3169,"language":3170,"meta":3171,"style":3171},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install @modelcontextprotocol/sdk@1.26.0 express@5.1.0 zod@3.25.76\n","bash","",[2996,3173,3174],{"__ignoreMap":3171},[3175,3176,3179,3182,3186,3189,3192],"span",{"class":3177,"line":3178},"line",1,[3175,3180,733],{"class":3181},"sYGMc",[3175,3183,3185],{"class":3184},"sIEYB"," install",[3175,3187,3188],{"class":3184}," @modelcontextprotocol/sdk@1.26.0",[3175,3190,3191],{"class":3184}," express@5.1.0",[3175,3193,3194],{"class":3184}," zod@3.25.76\n",[2955,3196,3197,3198,3201],{},"Create ",[2996,3199,3200],{},"server.mjs"," using stateless Streamable HTTP. The delete tool only logs calls and returns test text; it never deletes real data.",[3166,3203,3207],{"className":3204,"code":3205,"language":3206,"meta":3171,"style":3171},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import express from 'express';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';\n\nconst app = express();\napp.use(express.json());\n\nfunction createServer() {\n    const server = new McpServer({\n        name: 'document-server',\n        version: '1.0.0'\n    });\n\n    server.registerTool('read_document', {\n        description: 'Read a document',\n        inputSchema: {},\n        annotations: { readOnlyHint: true }\n    }, async () => {\n        return {\n            content: [{ type: 'text', text: 'Document content: MCP usage guide' }]\n        };\n    });\n\n    server.registerTool('delete_document', {\n        description: 'Delete a document',\n        inputSchema: {},\n        annotations: { readOnlyHint: true }\n    }, async () => {\n        console.log('Delete tool call received');\n        return {\n            content: [{ type: 'text', text: 'Delete tool called (simulation only)' }]\n        };\n    });\n\n    return server;\n}\n\napp.post('/mcp', async (req, res) => {\n    // Accept only the local test address; reject other Host and browser origins.\n    if (req.get('Host') !== '127.0.0.1:3000') {\n        return res.sendStatus(403);\n    }\n\n    const origin = req.get('Origin');\n    if (origin && origin !== 'http://127.0.0.1:3000') {\n        return res.sendStatus(403);\n    }\n\n    // Stateless mode: use separate instances for each request.\n    const server = createServer();\n    const transport = new StreamableHTTPServerTransport({\n        sessionIdGenerator: undefined,\n        enableJsonResponse: true\n    });\n\n    res.on('close', () => {\n        void server.close();\n    });\n\n    await server.connect(transport);\n    await transport.handleRequest(req, res, req.body);\n});\n\napp.all('/mcp', (req, res) => {\n    res.set('Allow', 'POST').sendStatus(405);\n});\n\napp.listen(3000, '127.0.0.1', () => {\n    console.log('MCP Server: http://127.0.0.1:3000/mcp');\n});\n","js",[2996,3208,3209,3235,3261,3284,3291,3313,3338,3343,3357,3381,3400,3416,3427,3432,3456,3472,3483,3505,3522,3530,3575,3581,3590,3595,3616,3632,3641,3658,3671,3695,3702,3740,3745,3754,3759,3769,3775,3780,3821,3828,3869,3891,3897,3902,3932,3961,3980,3985,3990,3996,4011,4029,4040,4051,4060,4065,4093,4109,4118,4123,4145,4178,4188,4193,4227,4269,4278,4283,4315,4338],{"__ignoreMap":3171},[3175,3210,3211,3215,3219,3222,3226,3229,3232],{"class":3177,"line":3178},[3175,3212,3214],{"class":3213},"s8pZq","import",[3175,3216,3218],{"class":3217},"sndM8"," express ",[3175,3220,3221],{"class":3213},"from",[3175,3223,3225],{"class":3224},"s86vT"," '",[3175,3227,3228],{"class":3184},"express",[3175,3230,3231],{"class":3224},"'",[3175,3233,3234],{"class":3224},";\n",[3175,3236,3238,3240,3243,3246,3249,3252,3254,3257,3259],{"class":3177,"line":3237},2,[3175,3239,3214],{"class":3213},[3175,3241,3242],{"class":3224}," {",[3175,3244,3245],{"class":3217}," McpServer",[3175,3247,3248],{"class":3224}," }",[3175,3250,3251],{"class":3213}," from",[3175,3253,3225],{"class":3224},[3175,3255,3256],{"class":3184},"@modelcontextprotocol/sdk/server/mcp.js",[3175,3258,3231],{"class":3224},[3175,3260,3234],{"class":3224},[3175,3262,3264,3266,3268,3271,3273,3275,3277,3280,3282],{"class":3177,"line":3263},3,[3175,3265,3214],{"class":3213},[3175,3267,3242],{"class":3224},[3175,3269,3270],{"class":3217}," StreamableHTTPServerTransport",[3175,3272,3248],{"class":3224},[3175,3274,3251],{"class":3213},[3175,3276,3225],{"class":3224},[3175,3278,3279],{"class":3184},"@modelcontextprotocol/sdk/server/streamableHttp.js",[3175,3281,3231],{"class":3224},[3175,3283,3234],{"class":3224},[3175,3285,3287],{"class":3177,"line":3286},4,[3175,3288,3290],{"emptyLinePlaceholder":3289},true,"\n",[3175,3292,3294,3298,3301,3304,3308,3311],{"class":3177,"line":3293},5,[3175,3295,3297],{"class":3296},"s50WR","const",[3175,3299,3300],{"class":3217}," app ",[3175,3302,3303],{"class":3224},"=",[3175,3305,3307],{"class":3306},"swgpB"," express",[3175,3309,3310],{"class":3217},"()",[3175,3312,3234],{"class":3224},[3175,3314,3316,3319,3322,3325,3328,3330,3333,3336],{"class":3177,"line":3315},6,[3175,3317,3318],{"class":3217},"app",[3175,3320,3321],{"class":3224},".",[3175,3323,3324],{"class":3306},"use",[3175,3326,3327],{"class":3217},"(express",[3175,3329,3321],{"class":3224},[3175,3331,3332],{"class":3306},"json",[3175,3334,3335],{"class":3217},"())",[3175,3337,3234],{"class":3224},[3175,3339,3341],{"class":3177,"line":3340},7,[3175,3342,3290],{"emptyLinePlaceholder":3289},[3175,3344,3346,3349,3352,3354],{"class":3177,"line":3345},8,[3175,3347,3348],{"class":3296},"function",[3175,3350,3351],{"class":3306}," createServer",[3175,3353,3310],{"class":3224},[3175,3355,3356],{"class":3224}," {\n",[3175,3358,3360,3363,3366,3369,3372,3374,3378],{"class":3177,"line":3359},9,[3175,3361,3362],{"class":3296},"    const",[3175,3364,3365],{"class":3217}," server",[3175,3367,3368],{"class":3224}," =",[3175,3370,3371],{"class":3224}," new",[3175,3373,3245],{"class":3306},[3175,3375,3377],{"class":3376},"sd2Uz","(",[3175,3379,3380],{"class":3224},"{\n",[3175,3382,3384,3387,3390,3392,3395,3397],{"class":3177,"line":3383},10,[3175,3385,3386],{"class":3376},"        name",[3175,3388,3389],{"class":3224},":",[3175,3391,3225],{"class":3224},[3175,3393,3394],{"class":3184},"document-server",[3175,3396,3231],{"class":3224},[3175,3398,3399],{"class":3224},",\n",[3175,3401,3403,3406,3408,3410,3413],{"class":3177,"line":3402},11,[3175,3404,3405],{"class":3376},"        version",[3175,3407,3389],{"class":3224},[3175,3409,3225],{"class":3224},[3175,3411,3412],{"class":3184},"1.0.0",[3175,3414,3415],{"class":3224},"'\n",[3175,3417,3419,3422,3425],{"class":3177,"line":3418},12,[3175,3420,3421],{"class":3224},"    }",[3175,3423,3424],{"class":3376},")",[3175,3426,3234],{"class":3224},[3175,3428,3430],{"class":3177,"line":3429},13,[3175,3431,3290],{"emptyLinePlaceholder":3289},[3175,3433,3435,3438,3440,3443,3445,3447,3449,3451,3454],{"class":3177,"line":3434},14,[3175,3436,3437],{"class":3217},"    server",[3175,3439,3321],{"class":3224},[3175,3441,3442],{"class":3306},"registerTool",[3175,3444,3377],{"class":3376},[3175,3446,3231],{"class":3224},[3175,3448,3065],{"class":3184},[3175,3450,3231],{"class":3224},[3175,3452,3453],{"class":3224},",",[3175,3455,3356],{"class":3224},[3175,3457,3459,3462,3464,3466,3468,3470],{"class":3177,"line":3458},15,[3175,3460,3461],{"class":3376},"        description",[3175,3463,3389],{"class":3224},[3175,3465,3225],{"class":3224},[3175,3467,3068],{"class":3184},[3175,3469,3231],{"class":3224},[3175,3471,3399],{"class":3224},[3175,3473,3475,3478,3480],{"class":3177,"line":3474},16,[3175,3476,3477],{"class":3376},"        inputSchema",[3175,3479,3389],{"class":3224},[3175,3481,3482],{"class":3224}," {},\n",[3175,3484,3486,3489,3491,3493,3496,3498,3502],{"class":3177,"line":3485},17,[3175,3487,3488],{"class":3376},"        annotations",[3175,3490,3389],{"class":3224},[3175,3492,3242],{"class":3224},[3175,3494,3495],{"class":3376}," readOnlyHint",[3175,3497,3389],{"class":3224},[3175,3499,3501],{"class":3500},"sPKOg"," true",[3175,3503,3504],{"class":3224}," }\n",[3175,3506,3508,3511,3514,3517,3520],{"class":3177,"line":3507},18,[3175,3509,3510],{"class":3224},"    },",[3175,3512,3513],{"class":3296}," async",[3175,3515,3516],{"class":3224}," ()",[3175,3518,3519],{"class":3296}," =>",[3175,3521,3356],{"class":3224},[3175,3523,3525,3528],{"class":3177,"line":3524},19,[3175,3526,3527],{"class":3213},"        return",[3175,3529,3356],{"class":3224},[3175,3531,3533,3536,3538,3541,3544,3547,3549,3551,3554,3556,3558,3561,3563,3565,3568,3570,3572],{"class":3177,"line":3532},20,[3175,3534,3535],{"class":3376},"            content",[3175,3537,3389],{"class":3224},[3175,3539,3540],{"class":3376}," [",[3175,3542,3543],{"class":3224},"{",[3175,3545,3546],{"class":3376}," type",[3175,3548,3389],{"class":3224},[3175,3550,3225],{"class":3224},[3175,3552,3553],{"class":3184},"text",[3175,3555,3231],{"class":3224},[3175,3557,3453],{"class":3224},[3175,3559,3560],{"class":3376}," text",[3175,3562,3389],{"class":3224},[3175,3564,3225],{"class":3224},[3175,3566,3567],{"class":3184},"Document content: MCP usage guide",[3175,3569,3231],{"class":3224},[3175,3571,3248],{"class":3224},[3175,3573,3574],{"class":3376},"]\n",[3175,3576,3578],{"class":3177,"line":3577},21,[3175,3579,3580],{"class":3224},"        };\n",[3175,3582,3584,3586,3588],{"class":3177,"line":3583},22,[3175,3585,3421],{"class":3224},[3175,3587,3424],{"class":3376},[3175,3589,3234],{"class":3224},[3175,3591,3593],{"class":3177,"line":3592},23,[3175,3594,3290],{"emptyLinePlaceholder":3289},[3175,3596,3598,3600,3602,3604,3606,3608,3610,3612,3614],{"class":3177,"line":3597},24,[3175,3599,3437],{"class":3217},[3175,3601,3321],{"class":3224},[3175,3603,3442],{"class":3306},[3175,3605,3377],{"class":3376},[3175,3607,3231],{"class":3224},[3175,3609,3078],{"class":3184},[3175,3611,3231],{"class":3224},[3175,3613,3453],{"class":3224},[3175,3615,3356],{"class":3224},[3175,3617,3619,3621,3623,3625,3628,3630],{"class":3177,"line":3618},25,[3175,3620,3461],{"class":3376},[3175,3622,3389],{"class":3224},[3175,3624,3225],{"class":3224},[3175,3626,3627],{"class":3184},"Delete a document",[3175,3629,3231],{"class":3224},[3175,3631,3399],{"class":3224},[3175,3633,3635,3637,3639],{"class":3177,"line":3634},26,[3175,3636,3477],{"class":3376},[3175,3638,3389],{"class":3224},[3175,3640,3482],{"class":3224},[3175,3642,3644,3646,3648,3650,3652,3654,3656],{"class":3177,"line":3643},27,[3175,3645,3488],{"class":3376},[3175,3647,3389],{"class":3224},[3175,3649,3242],{"class":3224},[3175,3651,3495],{"class":3376},[3175,3653,3389],{"class":3224},[3175,3655,3501],{"class":3500},[3175,3657,3504],{"class":3224},[3175,3659,3661,3663,3665,3667,3669],{"class":3177,"line":3660},28,[3175,3662,3510],{"class":3224},[3175,3664,3513],{"class":3296},[3175,3666,3516],{"class":3224},[3175,3668,3519],{"class":3296},[3175,3670,3356],{"class":3224},[3175,3672,3674,3677,3679,3682,3684,3686,3689,3691,3693],{"class":3177,"line":3673},29,[3175,3675,3676],{"class":3217},"        console",[3175,3678,3321],{"class":3224},[3175,3680,3681],{"class":3306},"log",[3175,3683,3377],{"class":3376},[3175,3685,3231],{"class":3224},[3175,3687,3688],{"class":3184},"Delete tool call received",[3175,3690,3231],{"class":3224},[3175,3692,3424],{"class":3376},[3175,3694,3234],{"class":3224},[3175,3696,3698,3700],{"class":3177,"line":3697},30,[3175,3699,3527],{"class":3213},[3175,3701,3356],{"class":3224},[3175,3703,3705,3707,3709,3711,3713,3715,3717,3719,3721,3723,3725,3727,3729,3731,3734,3736,3738],{"class":3177,"line":3704},31,[3175,3706,3535],{"class":3376},[3175,3708,3389],{"class":3224},[3175,3710,3540],{"class":3376},[3175,3712,3543],{"class":3224},[3175,3714,3546],{"class":3376},[3175,3716,3389],{"class":3224},[3175,3718,3225],{"class":3224},[3175,3720,3553],{"class":3184},[3175,3722,3231],{"class":3224},[3175,3724,3453],{"class":3224},[3175,3726,3560],{"class":3376},[3175,3728,3389],{"class":3224},[3175,3730,3225],{"class":3224},[3175,3732,3733],{"class":3184},"Delete tool called (simulation only)",[3175,3735,3231],{"class":3224},[3175,3737,3248],{"class":3224},[3175,3739,3574],{"class":3376},[3175,3741,3743],{"class":3177,"line":3742},32,[3175,3744,3580],{"class":3224},[3175,3746,3748,3750,3752],{"class":3177,"line":3747},33,[3175,3749,3421],{"class":3224},[3175,3751,3424],{"class":3376},[3175,3753,3234],{"class":3224},[3175,3755,3757],{"class":3177,"line":3756},34,[3175,3758,3290],{"emptyLinePlaceholder":3289},[3175,3760,3762,3765,3767],{"class":3177,"line":3761},35,[3175,3763,3764],{"class":3213},"    return",[3175,3766,3365],{"class":3217},[3175,3768,3234],{"class":3224},[3175,3770,3772],{"class":3177,"line":3771},36,[3175,3773,3774],{"class":3224},"}\n",[3175,3776,3778],{"class":3177,"line":3777},37,[3175,3779,3290],{"emptyLinePlaceholder":3289},[3175,3781,3783,3785,3787,3790,3792,3794,3797,3799,3801,3803,3806,3810,3812,3815,3817,3819],{"class":3177,"line":3782},38,[3175,3784,3318],{"class":3217},[3175,3786,3321],{"class":3224},[3175,3788,3789],{"class":3306},"post",[3175,3791,3377],{"class":3217},[3175,3793,3231],{"class":3224},[3175,3795,3796],{"class":3184},"/mcp",[3175,3798,3231],{"class":3224},[3175,3800,3453],{"class":3224},[3175,3802,3513],{"class":3296},[3175,3804,3805],{"class":3224}," (",[3175,3807,3809],{"class":3808},"sK9QF","req",[3175,3811,3453],{"class":3224},[3175,3813,3814],{"class":3808}," res",[3175,3816,3424],{"class":3224},[3175,3818,3519],{"class":3296},[3175,3820,3356],{"class":3224},[3175,3822,3824],{"class":3177,"line":3823},39,[3175,3825,3827],{"class":3826},"syuKq","    // Accept only the local test address; reject other Host and browser origins.\n",[3175,3829,3831,3834,3836,3838,3840,3843,3845,3847,3850,3852,3855,3858,3860,3863,3865,3867],{"class":3177,"line":3830},40,[3175,3832,3833],{"class":3213},"    if",[3175,3835,3805],{"class":3376},[3175,3837,3809],{"class":3217},[3175,3839,3321],{"class":3224},[3175,3841,3842],{"class":3306},"get",[3175,3844,3377],{"class":3376},[3175,3846,3231],{"class":3224},[3175,3848,3849],{"class":3184},"Host",[3175,3851,3231],{"class":3224},[3175,3853,3854],{"class":3376},") ",[3175,3856,3857],{"class":3224},"!==",[3175,3859,3225],{"class":3224},[3175,3861,3862],{"class":3184},"127.0.0.1:3000",[3175,3864,3231],{"class":3224},[3175,3866,3854],{"class":3376},[3175,3868,3380],{"class":3224},[3175,3870,3872,3874,3876,3878,3881,3883,3887,3889],{"class":3177,"line":3871},41,[3175,3873,3527],{"class":3213},[3175,3875,3814],{"class":3217},[3175,3877,3321],{"class":3224},[3175,3879,3880],{"class":3306},"sendStatus",[3175,3882,3377],{"class":3376},[3175,3884,3886],{"class":3885},"smPcV","403",[3175,3888,3424],{"class":3376},[3175,3890,3234],{"class":3224},[3175,3892,3894],{"class":3177,"line":3893},42,[3175,3895,3896],{"class":3224},"    }\n",[3175,3898,3900],{"class":3177,"line":3899},43,[3175,3901,3290],{"emptyLinePlaceholder":3289},[3175,3903,3905,3907,3910,3912,3915,3917,3919,3921,3923,3926,3928,3930],{"class":3177,"line":3904},44,[3175,3906,3362],{"class":3296},[3175,3908,3909],{"class":3217}," origin",[3175,3911,3368],{"class":3224},[3175,3913,3914],{"class":3217}," req",[3175,3916,3321],{"class":3224},[3175,3918,3842],{"class":3306},[3175,3920,3377],{"class":3376},[3175,3922,3231],{"class":3224},[3175,3924,3925],{"class":3184},"Origin",[3175,3927,3231],{"class":3224},[3175,3929,3424],{"class":3376},[3175,3931,3234],{"class":3224},[3175,3933,3935,3937,3939,3942,3945,3947,3950,3952,3955,3957,3959],{"class":3177,"line":3934},45,[3175,3936,3833],{"class":3213},[3175,3938,3805],{"class":3376},[3175,3940,3941],{"class":3217},"origin",[3175,3943,3944],{"class":3224}," &&",[3175,3946,3909],{"class":3217},[3175,3948,3949],{"class":3224}," !==",[3175,3951,3225],{"class":3224},[3175,3953,3954],{"class":3184},"http://127.0.0.1:3000",[3175,3956,3231],{"class":3224},[3175,3958,3854],{"class":3376},[3175,3960,3380],{"class":3224},[3175,3962,3964,3966,3968,3970,3972,3974,3976,3978],{"class":3177,"line":3963},46,[3175,3965,3527],{"class":3213},[3175,3967,3814],{"class":3217},[3175,3969,3321],{"class":3224},[3175,3971,3880],{"class":3306},[3175,3973,3377],{"class":3376},[3175,3975,3886],{"class":3885},[3175,3977,3424],{"class":3376},[3175,3979,3234],{"class":3224},[3175,3981,3983],{"class":3177,"line":3982},47,[3175,3984,3896],{"class":3224},[3175,3986,3988],{"class":3177,"line":3987},48,[3175,3989,3290],{"emptyLinePlaceholder":3289},[3175,3991,3993],{"class":3177,"line":3992},49,[3175,3994,3995],{"class":3826},"    // Stateless mode: use separate instances for each request.\n",[3175,3997,3999,4001,4003,4005,4007,4009],{"class":3177,"line":3998},50,[3175,4000,3362],{"class":3296},[3175,4002,3365],{"class":3217},[3175,4004,3368],{"class":3224},[3175,4006,3351],{"class":3306},[3175,4008,3310],{"class":3376},[3175,4010,3234],{"class":3224},[3175,4012,4014,4016,4019,4021,4023,4025,4027],{"class":3177,"line":4013},51,[3175,4015,3362],{"class":3296},[3175,4017,4018],{"class":3217}," transport",[3175,4020,3368],{"class":3224},[3175,4022,3371],{"class":3224},[3175,4024,3270],{"class":3306},[3175,4026,3377],{"class":3376},[3175,4028,3380],{"class":3224},[3175,4030,4032,4035,4037],{"class":3177,"line":4031},52,[3175,4033,4034],{"class":3376},"        sessionIdGenerator",[3175,4036,3389],{"class":3224},[3175,4038,4039],{"class":3224}," undefined,\n",[3175,4041,4043,4046,4048],{"class":3177,"line":4042},53,[3175,4044,4045],{"class":3376},"        enableJsonResponse",[3175,4047,3389],{"class":3224},[3175,4049,4050],{"class":3500}," true\n",[3175,4052,4054,4056,4058],{"class":3177,"line":4053},54,[3175,4055,3421],{"class":3224},[3175,4057,3424],{"class":3376},[3175,4059,3234],{"class":3224},[3175,4061,4063],{"class":3177,"line":4062},55,[3175,4064,3290],{"emptyLinePlaceholder":3289},[3175,4066,4068,4071,4073,4076,4078,4080,4083,4085,4087,4089,4091],{"class":3177,"line":4067},56,[3175,4069,4070],{"class":3217},"    res",[3175,4072,3321],{"class":3224},[3175,4074,4075],{"class":3306},"on",[3175,4077,3377],{"class":3376},[3175,4079,3231],{"class":3224},[3175,4081,4082],{"class":3184},"close",[3175,4084,3231],{"class":3224},[3175,4086,3453],{"class":3224},[3175,4088,3516],{"class":3224},[3175,4090,3519],{"class":3296},[3175,4092,3356],{"class":3224},[3175,4094,4096,4099,4101,4103,4105,4107],{"class":3177,"line":4095},57,[3175,4097,4098],{"class":3224},"        void",[3175,4100,3365],{"class":3217},[3175,4102,3321],{"class":3224},[3175,4104,4082],{"class":3306},[3175,4106,3310],{"class":3376},[3175,4108,3234],{"class":3224},[3175,4110,4112,4114,4116],{"class":3177,"line":4111},58,[3175,4113,3421],{"class":3224},[3175,4115,3424],{"class":3376},[3175,4117,3234],{"class":3224},[3175,4119,4121],{"class":3177,"line":4120},59,[3175,4122,3290],{"emptyLinePlaceholder":3289},[3175,4124,4126,4129,4131,4133,4136,4138,4141,4143],{"class":3177,"line":4125},60,[3175,4127,4128],{"class":3213},"    await",[3175,4130,3365],{"class":3217},[3175,4132,3321],{"class":3224},[3175,4134,4135],{"class":3306},"connect",[3175,4137,3377],{"class":3376},[3175,4139,4140],{"class":3217},"transport",[3175,4142,3424],{"class":3376},[3175,4144,3234],{"class":3224},[3175,4146,4148,4150,4152,4154,4157,4159,4161,4163,4165,4167,4169,4171,4174,4176],{"class":3177,"line":4147},61,[3175,4149,4128],{"class":3213},[3175,4151,4018],{"class":3217},[3175,4153,3321],{"class":3224},[3175,4155,4156],{"class":3306},"handleRequest",[3175,4158,3377],{"class":3376},[3175,4160,3809],{"class":3217},[3175,4162,3453],{"class":3224},[3175,4164,3814],{"class":3217},[3175,4166,3453],{"class":3224},[3175,4168,3914],{"class":3217},[3175,4170,3321],{"class":3224},[3175,4172,4173],{"class":3217},"body",[3175,4175,3424],{"class":3376},[3175,4177,3234],{"class":3224},[3175,4179,4181,4184,4186],{"class":3177,"line":4180},62,[3175,4182,4183],{"class":3224},"}",[3175,4185,3424],{"class":3217},[3175,4187,3234],{"class":3224},[3175,4189,4191],{"class":3177,"line":4190},63,[3175,4192,3290],{"emptyLinePlaceholder":3289},[3175,4194,4196,4198,4200,4203,4205,4207,4209,4211,4213,4215,4217,4219,4221,4223,4225],{"class":3177,"line":4195},64,[3175,4197,3318],{"class":3217},[3175,4199,3321],{"class":3224},[3175,4201,4202],{"class":3306},"all",[3175,4204,3377],{"class":3217},[3175,4206,3231],{"class":3224},[3175,4208,3796],{"class":3184},[3175,4210,3231],{"class":3224},[3175,4212,3453],{"class":3224},[3175,4214,3805],{"class":3224},[3175,4216,3809],{"class":3808},[3175,4218,3453],{"class":3224},[3175,4220,3814],{"class":3808},[3175,4222,3424],{"class":3224},[3175,4224,3519],{"class":3296},[3175,4226,3356],{"class":3224},[3175,4228,4230,4232,4234,4237,4239,4241,4243,4245,4247,4249,4252,4254,4256,4258,4260,4262,4265,4267],{"class":3177,"line":4229},65,[3175,4231,4070],{"class":3217},[3175,4233,3321],{"class":3224},[3175,4235,4236],{"class":3306},"set",[3175,4238,3377],{"class":3376},[3175,4240,3231],{"class":3224},[3175,4242,3071],{"class":3184},[3175,4244,3231],{"class":3224},[3175,4246,3453],{"class":3224},[3175,4248,3225],{"class":3224},[3175,4250,4251],{"class":3184},"POST",[3175,4253,3231],{"class":3224},[3175,4255,3424],{"class":3376},[3175,4257,3321],{"class":3224},[3175,4259,3880],{"class":3306},[3175,4261,3377],{"class":3376},[3175,4263,4264],{"class":3885},"405",[3175,4266,3424],{"class":3376},[3175,4268,3234],{"class":3224},[3175,4270,4272,4274,4276],{"class":3177,"line":4271},66,[3175,4273,4183],{"class":3224},[3175,4275,3424],{"class":3217},[3175,4277,3234],{"class":3224},[3175,4279,4281],{"class":3177,"line":4280},67,[3175,4282,3290],{"emptyLinePlaceholder":3289},[3175,4284,4286,4288,4290,4293,4295,4298,4300,4302,4305,4307,4309,4311,4313],{"class":3177,"line":4285},68,[3175,4287,3318],{"class":3217},[3175,4289,3321],{"class":3224},[3175,4291,4292],{"class":3306},"listen",[3175,4294,3377],{"class":3217},[3175,4296,4297],{"class":3885},"3000",[3175,4299,3453],{"class":3224},[3175,4301,3225],{"class":3224},[3175,4303,4304],{"class":3184},"127.0.0.1",[3175,4306,3231],{"class":3224},[3175,4308,3453],{"class":3224},[3175,4310,3516],{"class":3224},[3175,4312,3519],{"class":3296},[3175,4314,3356],{"class":3224},[3175,4316,4318,4321,4323,4325,4327,4329,4332,4334,4336],{"class":3177,"line":4317},69,[3175,4319,4320],{"class":3217},"    console",[3175,4322,3321],{"class":3224},[3175,4324,3681],{"class":3306},[3175,4326,3377],{"class":3376},[3175,4328,3231],{"class":3224},[3175,4330,4331],{"class":3184},"MCP Server: http://127.0.0.1:3000/mcp",[3175,4333,3231],{"class":3224},[3175,4335,3424],{"class":3376},[3175,4337,3234],{"class":3224},[3175,4339,4341,4343,4345],{"class":3177,"line":4340},70,[3175,4342,4183],{"class":3224},[3175,4344,3424],{"class":3217},[3175,4346,3234],{"class":3224},[2955,4348,4349],{},"Start the server. Expected output is shown below:",[3166,4351,4353],{"className":3168,"code":4352,"language":3170,"meta":3171,"style":3171},"node server.mjs\n",[2996,4354,4355],{"__ignoreMap":3171},[3175,4356,4357,4360],{"class":3177,"line":3178},[3175,4358,4359],{"class":3181},"node",[3175,4361,4362],{"class":3184}," server.mjs\n",[3166,4364,4368],{"className":4365,"code":4366,"language":4367,"meta":3171,"style":3171},"language-console shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","MCP Server: http://127.0.0.1:3000/mcp\n","console",[2996,4369,4370],{"__ignoreMap":3171},[3175,4371,4372],{"class":3177,"line":3178},[3175,4373,4366],{},[4375,4376,4377],"warning",{},[2955,4378,4379],{},"This server has no user authentication and is for local testing only. Production requires appropriate connection authentication, Origin checks, and business authorization. Do not expose this server publicly.",[3086,4381,4383],{"id":4382},"create-an-mcp-client","Create an MCP client",[2955,4385,3197,4386,4389],{},[2996,4387,4388],{},"client.mjs"," with reusable connection and tool discovery functions for the remaining experiments.",[3166,4391,4393],{"className":3204,"code":4392,"language":3206,"meta":3171,"style":3171},"import { Client } from '@modelcontextprotocol/sdk/client/index.js';\nimport { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';\n\nexport async function connectClient() {\n    const client = new Client({\n        name: 'document-client',\n        version: '1.0.0'\n    });\n\n    const url = new URL('http://127.0.0.1:3000/mcp');\n    await client.connect(new StreamableHTTPClientTransport(url));\n    return client;\n}\n\nexport async function listTools(client) {\n    const { tools, nextCursor } = await client.listTools();\n\n    // This demo has one page; reject incomplete lists when pagination is required.\n    if (nextCursor) {\n        throw new Error('Retrieve the complete tool list first');\n    }\n\n    return tools;\n}\n",[2996,4394,4395,4417,4439,4443,4460,4477,4492,4504,4512,4516,4543,4570,4578,4582,4586,4606,4638,4642,4647,4660,4683,4687,4691,4699],{"__ignoreMap":3171},[3175,4396,4397,4399,4401,4404,4406,4408,4410,4413,4415],{"class":3177,"line":3178},[3175,4398,3214],{"class":3213},[3175,4400,3242],{"class":3224},[3175,4402,4403],{"class":3217}," Client",[3175,4405,3248],{"class":3224},[3175,4407,3251],{"class":3213},[3175,4409,3225],{"class":3224},[3175,4411,4412],{"class":3184},"@modelcontextprotocol/sdk/client/index.js",[3175,4414,3231],{"class":3224},[3175,4416,3234],{"class":3224},[3175,4418,4419,4421,4423,4426,4428,4430,4432,4435,4437],{"class":3177,"line":3237},[3175,4420,3214],{"class":3213},[3175,4422,3242],{"class":3224},[3175,4424,4425],{"class":3217}," StreamableHTTPClientTransport",[3175,4427,3248],{"class":3224},[3175,4429,3251],{"class":3213},[3175,4431,3225],{"class":3224},[3175,4433,4434],{"class":3184},"@modelcontextprotocol/sdk/client/streamableHttp.js",[3175,4436,3231],{"class":3224},[3175,4438,3234],{"class":3224},[3175,4440,4441],{"class":3177,"line":3263},[3175,4442,3290],{"emptyLinePlaceholder":3289},[3175,4444,4445,4448,4450,4453,4456,4458],{"class":3177,"line":3286},[3175,4446,4447],{"class":3213},"export",[3175,4449,3513],{"class":3296},[3175,4451,4452],{"class":3296}," function",[3175,4454,4455],{"class":3306}," connectClient",[3175,4457,3310],{"class":3224},[3175,4459,3356],{"class":3224},[3175,4461,4462,4464,4467,4469,4471,4473,4475],{"class":3177,"line":3293},[3175,4463,3362],{"class":3296},[3175,4465,4466],{"class":3217}," client",[3175,4468,3368],{"class":3224},[3175,4470,3371],{"class":3224},[3175,4472,4403],{"class":3306},[3175,4474,3377],{"class":3376},[3175,4476,3380],{"class":3224},[3175,4478,4479,4481,4483,4485,4488,4490],{"class":3177,"line":3315},[3175,4480,3386],{"class":3376},[3175,4482,3389],{"class":3224},[3175,4484,3225],{"class":3224},[3175,4486,4487],{"class":3184},"document-client",[3175,4489,3231],{"class":3224},[3175,4491,3399],{"class":3224},[3175,4493,4494,4496,4498,4500,4502],{"class":3177,"line":3340},[3175,4495,3405],{"class":3376},[3175,4497,3389],{"class":3224},[3175,4499,3225],{"class":3224},[3175,4501,3412],{"class":3184},[3175,4503,3415],{"class":3224},[3175,4505,4506,4508,4510],{"class":3177,"line":3345},[3175,4507,3421],{"class":3224},[3175,4509,3424],{"class":3376},[3175,4511,3234],{"class":3224},[3175,4513,4514],{"class":3177,"line":3359},[3175,4515,3290],{"emptyLinePlaceholder":3289},[3175,4517,4518,4520,4523,4525,4527,4530,4532,4534,4537,4539,4541],{"class":3177,"line":3383},[3175,4519,3362],{"class":3296},[3175,4521,4522],{"class":3217}," url",[3175,4524,3368],{"class":3224},[3175,4526,3371],{"class":3224},[3175,4528,4529],{"class":3306}," URL",[3175,4531,3377],{"class":3376},[3175,4533,3231],{"class":3224},[3175,4535,4536],{"class":3184},"http://127.0.0.1:3000/mcp",[3175,4538,3231],{"class":3224},[3175,4540,3424],{"class":3376},[3175,4542,3234],{"class":3224},[3175,4544,4545,4547,4549,4551,4553,4555,4558,4560,4562,4565,4568],{"class":3177,"line":3402},[3175,4546,4128],{"class":3213},[3175,4548,4466],{"class":3217},[3175,4550,3321],{"class":3224},[3175,4552,4135],{"class":3306},[3175,4554,3377],{"class":3376},[3175,4556,4557],{"class":3224},"new",[3175,4559,4425],{"class":3306},[3175,4561,3377],{"class":3376},[3175,4563,4564],{"class":3217},"url",[3175,4566,4567],{"class":3376},"))",[3175,4569,3234],{"class":3224},[3175,4571,4572,4574,4576],{"class":3177,"line":3418},[3175,4573,3764],{"class":3213},[3175,4575,4466],{"class":3217},[3175,4577,3234],{"class":3224},[3175,4579,4580],{"class":3177,"line":3429},[3175,4581,3774],{"class":3224},[3175,4583,4584],{"class":3177,"line":3434},[3175,4585,3290],{"emptyLinePlaceholder":3289},[3175,4587,4588,4590,4592,4594,4597,4599,4602,4604],{"class":3177,"line":3458},[3175,4589,4447],{"class":3213},[3175,4591,3513],{"class":3296},[3175,4593,4452],{"class":3296},[3175,4595,4596],{"class":3306}," listTools",[3175,4598,3377],{"class":3224},[3175,4600,4601],{"class":3808},"client",[3175,4603,3424],{"class":3224},[3175,4605,3356],{"class":3224},[3175,4607,4608,4610,4612,4615,4617,4620,4622,4624,4627,4629,4631,4634,4636],{"class":3177,"line":3474},[3175,4609,3362],{"class":3296},[3175,4611,3242],{"class":3224},[3175,4613,4614],{"class":3217}," tools",[3175,4616,3453],{"class":3224},[3175,4618,4619],{"class":3217}," nextCursor",[3175,4621,3248],{"class":3224},[3175,4623,3368],{"class":3224},[3175,4625,4626],{"class":3213}," await",[3175,4628,4466],{"class":3217},[3175,4630,3321],{"class":3224},[3175,4632,4633],{"class":3306},"listTools",[3175,4635,3310],{"class":3376},[3175,4637,3234],{"class":3224},[3175,4639,4640],{"class":3177,"line":3485},[3175,4641,3290],{"emptyLinePlaceholder":3289},[3175,4643,4644],{"class":3177,"line":3507},[3175,4645,4646],{"class":3826},"    // This demo has one page; reject incomplete lists when pagination is required.\n",[3175,4648,4649,4651,4653,4656,4658],{"class":3177,"line":3524},[3175,4650,3833],{"class":3213},[3175,4652,3805],{"class":3376},[3175,4654,4655],{"class":3217},"nextCursor",[3175,4657,3854],{"class":3376},[3175,4659,3380],{"class":3224},[3175,4661,4662,4665,4667,4670,4672,4674,4677,4679,4681],{"class":3177,"line":3532},[3175,4663,4664],{"class":3213},"        throw",[3175,4666,3371],{"class":3224},[3175,4668,4669],{"class":3306}," Error",[3175,4671,3377],{"class":3376},[3175,4673,3231],{"class":3224},[3175,4675,4676],{"class":3184},"Retrieve the complete tool list first",[3175,4678,3231],{"class":3224},[3175,4680,3424],{"class":3376},[3175,4682,3234],{"class":3224},[3175,4684,4685],{"class":3177,"line":3577},[3175,4686,3896],{"class":3224},[3175,4688,4689],{"class":3177,"line":3583},[3175,4690,3290],{"emptyLinePlaceholder":3289},[3175,4692,4693,4695,4697],{"class":3177,"line":3592},[3175,4694,3764],{"class":3213},[3175,4696,4614],{"class":3217},[3175,4698,3234],{"class":3224},[3175,4700,4701],{"class":3177,"line":3597},[3175,4702,3774],{"class":3224},[2959,4704],{},[2950,4706,4708],{"id":4707},"restrict-mcp-tool-calls","🛠 Restrict MCP tool calls",[3086,4710,4712],{"id":4711},"observe-calls-without-protection","Observe calls without protection",[2955,4714,3197,4715,4718],{},[2996,4716,4717],{},"test-unprotected.mjs"," to discover all tools and call the unapproved delete tool directly.",[3166,4720,4722],{"className":3204,"code":4721,"language":3206,"meta":3171,"style":3171},"import { connectClient, listTools } from './client.mjs';\n\nconst client = await connectClient();\n\ntry {\n    const tools = await listTools(client);\n    console.log('Server tools:', tools.map((tool) => tool.name).sort());\n\n    const result = await client.callTool({\n        name: 'delete_document',\n        arguments: {}\n    });\n\n    console.log(result.content[0].text);\n} finally {\n    await client.close();\n}\n",[2996,4723,4724,4749,4753,4770,4774,4781,4801,4857,4861,4883,4897,4907,4915,4919,4954,4963,4977],{"__ignoreMap":3171},[3175,4725,4726,4728,4730,4732,4734,4736,4738,4740,4742,4745,4747],{"class":3177,"line":3178},[3175,4727,3214],{"class":3213},[3175,4729,3242],{"class":3224},[3175,4731,4455],{"class":3217},[3175,4733,3453],{"class":3224},[3175,4735,4596],{"class":3217},[3175,4737,3248],{"class":3224},[3175,4739,3251],{"class":3213},[3175,4741,3225],{"class":3224},[3175,4743,4744],{"class":3184},"./client.mjs",[3175,4746,3231],{"class":3224},[3175,4748,3234],{"class":3224},[3175,4750,4751],{"class":3177,"line":3237},[3175,4752,3290],{"emptyLinePlaceholder":3289},[3175,4754,4755,4757,4760,4762,4764,4766,4768],{"class":3177,"line":3263},[3175,4756,3297],{"class":3296},[3175,4758,4759],{"class":3217}," client ",[3175,4761,3303],{"class":3224},[3175,4763,4626],{"class":3213},[3175,4765,4455],{"class":3306},[3175,4767,3310],{"class":3217},[3175,4769,3234],{"class":3224},[3175,4771,4772],{"class":3177,"line":3286},[3175,4773,3290],{"emptyLinePlaceholder":3289},[3175,4775,4776,4779],{"class":3177,"line":3293},[3175,4777,4778],{"class":3213},"try",[3175,4780,3356],{"class":3224},[3175,4782,4783,4785,4787,4789,4791,4793,4795,4797,4799],{"class":3177,"line":3315},[3175,4784,3362],{"class":3296},[3175,4786,4614],{"class":3217},[3175,4788,3368],{"class":3224},[3175,4790,4626],{"class":3213},[3175,4792,4596],{"class":3306},[3175,4794,3377],{"class":3376},[3175,4796,4601],{"class":3217},[3175,4798,3424],{"class":3376},[3175,4800,3234],{"class":3224},[3175,4802,4803,4805,4807,4809,4811,4813,4816,4818,4820,4822,4824,4827,4829,4831,4834,4836,4838,4841,4843,4846,4848,4850,4853,4855],{"class":3177,"line":3340},[3175,4804,4320],{"class":3217},[3175,4806,3321],{"class":3224},[3175,4808,3681],{"class":3306},[3175,4810,3377],{"class":3376},[3175,4812,3231],{"class":3224},[3175,4814,4815],{"class":3184},"Server tools:",[3175,4817,3231],{"class":3224},[3175,4819,3453],{"class":3224},[3175,4821,4614],{"class":3217},[3175,4823,3321],{"class":3224},[3175,4825,4826],{"class":3306},"map",[3175,4828,3377],{"class":3376},[3175,4830,3377],{"class":3224},[3175,4832,4833],{"class":3808},"tool",[3175,4835,3424],{"class":3224},[3175,4837,3519],{"class":3296},[3175,4839,4840],{"class":3217}," tool",[3175,4842,3321],{"class":3224},[3175,4844,4845],{"class":3217},"name",[3175,4847,3424],{"class":3376},[3175,4849,3321],{"class":3224},[3175,4851,4852],{"class":3306},"sort",[3175,4854,3335],{"class":3376},[3175,4856,3234],{"class":3224},[3175,4858,4859],{"class":3177,"line":3345},[3175,4860,3290],{"emptyLinePlaceholder":3289},[3175,4862,4863,4865,4868,4870,4872,4874,4876,4879,4881],{"class":3177,"line":3359},[3175,4864,3362],{"class":3296},[3175,4866,4867],{"class":3217}," result",[3175,4869,3368],{"class":3224},[3175,4871,4626],{"class":3213},[3175,4873,4466],{"class":3217},[3175,4875,3321],{"class":3224},[3175,4877,4878],{"class":3306},"callTool",[3175,4880,3377],{"class":3376},[3175,4882,3380],{"class":3224},[3175,4884,4885,4887,4889,4891,4893,4895],{"class":3177,"line":3383},[3175,4886,3386],{"class":3376},[3175,4888,3389],{"class":3224},[3175,4890,3225],{"class":3224},[3175,4892,3078],{"class":3184},[3175,4894,3231],{"class":3224},[3175,4896,3399],{"class":3224},[3175,4898,4899,4902,4904],{"class":3177,"line":3402},[3175,4900,4901],{"class":3376},"        arguments",[3175,4903,3389],{"class":3224},[3175,4905,4906],{"class":3224}," {}\n",[3175,4908,4909,4911,4913],{"class":3177,"line":3418},[3175,4910,3421],{"class":3224},[3175,4912,3424],{"class":3376},[3175,4914,3234],{"class":3224},[3175,4916,4917],{"class":3177,"line":3429},[3175,4918,3290],{"emptyLinePlaceholder":3289},[3175,4920,4921,4923,4925,4927,4929,4932,4934,4937,4940,4943,4946,4948,4950,4952],{"class":3177,"line":3434},[3175,4922,4320],{"class":3217},[3175,4924,3321],{"class":3224},[3175,4926,3681],{"class":3306},[3175,4928,3377],{"class":3376},[3175,4930,4931],{"class":3217},"result",[3175,4933,3321],{"class":3224},[3175,4935,4936],{"class":3217},"content",[3175,4938,4939],{"class":3376},"[",[3175,4941,4942],{"class":3885},"0",[3175,4944,4945],{"class":3376},"]",[3175,4947,3321],{"class":3224},[3175,4949,3553],{"class":3217},[3175,4951,3424],{"class":3376},[3175,4953,3234],{"class":3224},[3175,4955,4956,4958,4961],{"class":3177,"line":3458},[3175,4957,4183],{"class":3224},[3175,4959,4960],{"class":3213}," finally",[3175,4962,3356],{"class":3224},[3175,4964,4965,4967,4969,4971,4973,4975],{"class":3177,"line":3474},[3175,4966,4128],{"class":3213},[3175,4968,4466],{"class":3217},[3175,4970,3321],{"class":3224},[3175,4972,4082],{"class":3306},[3175,4974,3310],{"class":3376},[3175,4976,3234],{"class":3224},[3175,4978,4979],{"class":3177,"line":3485},[3175,4980,3774],{"class":3224},[2955,4982,4983,4984,4987],{},"Keep the server running and execute ",[2996,4985,4986],{},"node test-unprotected.mjs"," in another terminal. Expected output:",[3166,4989,4991],{"className":4365,"code":4990,"language":4367,"meta":3171,"style":3171},"Server tools: [ 'delete_document', 'read_document' ]\nDelete tool called (simulation only)\n",[2996,4992,4993,4998],{"__ignoreMap":3171},[3175,4994,4995],{"class":3177,"line":3178},[3175,4996,4997],{},"Server tools: [ 'delete_document', 'read_document' ]\n",[3175,4999,5000],{"class":3177,"line":3237},[3175,5001,5002],{},"Delete tool called (simulation only)\n",[2955,5004,5005,5006,5008],{},"The server also logs ",[2996,5007,3688],{},". Although the assistant only needs reads, the client can still call the delete tool.",[3086,5010,5012],{"id":5011},"add-a-tool-allowlist","Add a tool allowlist",[2955,5014,5015],{},"Apply security checks in two places: limit definitions exposed to the model during discovery, and reject unapproved tools before sending calls.",[5017,5018],"ai-security-mcp-boundary",{},[2955,5020,3197,5021,5024],{},[2996,5022,5023],{},"guard.mjs"," to implement both checks centrally.",[3166,5026,5028],{"className":3204,"code":5027,"language":3206,"meta":3171,"style":3171},"import { listTools } from './client.mjs';\n\nconst allowedNames = new Set(['read_document']);\n\nexport async function getApprovedTools(client) {\n    const tools = await listTools(client);\n    return tools.filter((tool) => allowedNames.has(tool.name));\n}\n\nexport async function callApprovedTool(client, name, args = {}) {\n    if (!allowedNames.has(name)) {\n        throw new Error(`Tool call forbidden: ${name}`);\n    }\n\n    const tools = await getApprovedTools(client);\n    if (!tools.some((tool) => tool.name === name)) {\n        throw new Error(`Tool unavailable: ${name}`);\n    }\n\n    return client.callTool({ name, arguments: args });\n}\n",[2996,5029,5030,5050,5054,5082,5086,5105,5125,5166,5170,5174,5206,5231,5259,5263,5267,5287,5328,5353,5357,5361,5392],{"__ignoreMap":3171},[3175,5031,5032,5034,5036,5038,5040,5042,5044,5046,5048],{"class":3177,"line":3178},[3175,5033,3214],{"class":3213},[3175,5035,3242],{"class":3224},[3175,5037,4596],{"class":3217},[3175,5039,3248],{"class":3224},[3175,5041,3251],{"class":3213},[3175,5043,3225],{"class":3224},[3175,5045,4744],{"class":3184},[3175,5047,3231],{"class":3224},[3175,5049,3234],{"class":3224},[3175,5051,5052],{"class":3177,"line":3237},[3175,5053,3290],{"emptyLinePlaceholder":3289},[3175,5055,5056,5058,5061,5063,5065,5068,5071,5073,5075,5077,5080],{"class":3177,"line":3263},[3175,5057,3297],{"class":3296},[3175,5059,5060],{"class":3217}," allowedNames ",[3175,5062,3303],{"class":3224},[3175,5064,3371],{"class":3224},[3175,5066,5067],{"class":3306}," Set",[3175,5069,5070],{"class":3217},"([",[3175,5072,3231],{"class":3224},[3175,5074,3065],{"class":3184},[3175,5076,3231],{"class":3224},[3175,5078,5079],{"class":3217},"])",[3175,5081,3234],{"class":3224},[3175,5083,5084],{"class":3177,"line":3286},[3175,5085,3290],{"emptyLinePlaceholder":3289},[3175,5087,5088,5090,5092,5094,5097,5099,5101,5103],{"class":3177,"line":3293},[3175,5089,4447],{"class":3213},[3175,5091,3513],{"class":3296},[3175,5093,4452],{"class":3296},[3175,5095,5096],{"class":3306}," getApprovedTools",[3175,5098,3377],{"class":3224},[3175,5100,4601],{"class":3808},[3175,5102,3424],{"class":3224},[3175,5104,3356],{"class":3224},[3175,5106,5107,5109,5111,5113,5115,5117,5119,5121,5123],{"class":3177,"line":3315},[3175,5108,3362],{"class":3296},[3175,5110,4614],{"class":3217},[3175,5112,3368],{"class":3224},[3175,5114,4626],{"class":3213},[3175,5116,4596],{"class":3306},[3175,5118,3377],{"class":3376},[3175,5120,4601],{"class":3217},[3175,5122,3424],{"class":3376},[3175,5124,3234],{"class":3224},[3175,5126,5127,5129,5131,5133,5136,5138,5140,5142,5144,5146,5149,5151,5154,5156,5158,5160,5162,5164],{"class":3177,"line":3340},[3175,5128,3764],{"class":3213},[3175,5130,4614],{"class":3217},[3175,5132,3321],{"class":3224},[3175,5134,5135],{"class":3306},"filter",[3175,5137,3377],{"class":3376},[3175,5139,3377],{"class":3224},[3175,5141,4833],{"class":3808},[3175,5143,3424],{"class":3224},[3175,5145,3519],{"class":3296},[3175,5147,5148],{"class":3217}," allowedNames",[3175,5150,3321],{"class":3224},[3175,5152,5153],{"class":3306},"has",[3175,5155,3377],{"class":3376},[3175,5157,4833],{"class":3217},[3175,5159,3321],{"class":3224},[3175,5161,4845],{"class":3217},[3175,5163,4567],{"class":3376},[3175,5165,3234],{"class":3224},[3175,5167,5168],{"class":3177,"line":3345},[3175,5169,3774],{"class":3224},[3175,5171,5172],{"class":3177,"line":3359},[3175,5173,3290],{"emptyLinePlaceholder":3289},[3175,5175,5176,5178,5180,5182,5185,5187,5189,5191,5194,5196,5199,5201,5204],{"class":3177,"line":3383},[3175,5177,4447],{"class":3213},[3175,5179,3513],{"class":3296},[3175,5181,4452],{"class":3296},[3175,5183,5184],{"class":3306}," callApprovedTool",[3175,5186,3377],{"class":3224},[3175,5188,4601],{"class":3808},[3175,5190,3453],{"class":3224},[3175,5192,5193],{"class":3808}," name",[3175,5195,3453],{"class":3224},[3175,5197,5198],{"class":3808}," args",[3175,5200,3368],{"class":3224},[3175,5202,5203],{"class":3224}," {})",[3175,5205,3356],{"class":3224},[3175,5207,5208,5210,5212,5215,5218,5220,5222,5224,5226,5229],{"class":3177,"line":3402},[3175,5209,3833],{"class":3213},[3175,5211,3805],{"class":3376},[3175,5213,5214],{"class":3224},"!",[3175,5216,5217],{"class":3217},"allowedNames",[3175,5219,3321],{"class":3224},[3175,5221,5153],{"class":3306},[3175,5223,3377],{"class":3376},[3175,5225,4845],{"class":3217},[3175,5227,5228],{"class":3376},")) ",[3175,5230,3380],{"class":3224},[3175,5232,5233,5235,5237,5239,5241,5244,5247,5250,5252,5255,5257],{"class":3177,"line":3418},[3175,5234,4664],{"class":3213},[3175,5236,3371],{"class":3224},[3175,5238,4669],{"class":3306},[3175,5240,3377],{"class":3376},[3175,5242,5243],{"class":3224},"`",[3175,5245,5246],{"class":3184},"Tool call forbidden: ",[3175,5248,5249],{"class":3224},"${",[3175,5251,4845],{"class":3217},[3175,5253,5254],{"class":3224},"}`",[3175,5256,3424],{"class":3376},[3175,5258,3234],{"class":3224},[3175,5260,5261],{"class":3177,"line":3429},[3175,5262,3896],{"class":3224},[3175,5264,5265],{"class":3177,"line":3434},[3175,5266,3290],{"emptyLinePlaceholder":3289},[3175,5268,5269,5271,5273,5275,5277,5279,5281,5283,5285],{"class":3177,"line":3458},[3175,5270,3362],{"class":3296},[3175,5272,4614],{"class":3217},[3175,5274,3368],{"class":3224},[3175,5276,4626],{"class":3213},[3175,5278,5096],{"class":3306},[3175,5280,3377],{"class":3376},[3175,5282,4601],{"class":3217},[3175,5284,3424],{"class":3376},[3175,5286,3234],{"class":3224},[3175,5288,5289,5291,5293,5295,5298,5300,5303,5305,5307,5309,5311,5313,5315,5317,5319,5322,5324,5326],{"class":3177,"line":3474},[3175,5290,3833],{"class":3213},[3175,5292,3805],{"class":3376},[3175,5294,5214],{"class":3224},[3175,5296,5297],{"class":3217},"tools",[3175,5299,3321],{"class":3224},[3175,5301,5302],{"class":3306},"some",[3175,5304,3377],{"class":3376},[3175,5306,3377],{"class":3224},[3175,5308,4833],{"class":3808},[3175,5310,3424],{"class":3224},[3175,5312,3519],{"class":3296},[3175,5314,4840],{"class":3217},[3175,5316,3321],{"class":3224},[3175,5318,4845],{"class":3217},[3175,5320,5321],{"class":3224}," ===",[3175,5323,5193],{"class":3217},[3175,5325,5228],{"class":3376},[3175,5327,3380],{"class":3224},[3175,5329,5330,5332,5334,5336,5338,5340,5343,5345,5347,5349,5351],{"class":3177,"line":3485},[3175,5331,4664],{"class":3213},[3175,5333,3371],{"class":3224},[3175,5335,4669],{"class":3306},[3175,5337,3377],{"class":3376},[3175,5339,5243],{"class":3224},[3175,5341,5342],{"class":3184},"Tool unavailable: ",[3175,5344,5249],{"class":3224},[3175,5346,4845],{"class":3217},[3175,5348,5254],{"class":3224},[3175,5350,3424],{"class":3376},[3175,5352,3234],{"class":3224},[3175,5354,5355],{"class":3177,"line":3507},[3175,5356,3896],{"class":3224},[3175,5358,5359],{"class":3177,"line":3524},[3175,5360,3290],{"emptyLinePlaceholder":3289},[3175,5362,5363,5365,5367,5369,5371,5373,5375,5377,5379,5382,5384,5386,5388,5390],{"class":3177,"line":3532},[3175,5364,3764],{"class":3213},[3175,5366,4466],{"class":3217},[3175,5368,3321],{"class":3224},[3175,5370,4878],{"class":3306},[3175,5372,3377],{"class":3376},[3175,5374,3543],{"class":3224},[3175,5376,5193],{"class":3217},[3175,5378,3453],{"class":3224},[3175,5380,5381],{"class":3376}," arguments",[3175,5383,3389],{"class":3224},[3175,5385,5198],{"class":3217},[3175,5387,3248],{"class":3224},[3175,5389,3424],{"class":3376},[3175,5391,3234],{"class":3224},[3175,5393,5394],{"class":3177,"line":3577},[3175,5395,3774],{"class":3224},[2955,5397,5398,5399,5402,5403,5406,5407,5410],{},"When connecting a model, convert the complete definitions returned by ",[2996,5400,5401],{},"getApprovedTools()"," into the model API's format. Route model call requests through ",[2996,5404,5405],{},"callApprovedTool()"," rather than calling the SDK's ",[2996,5408,5409],{},"callTool()"," directly.",[3086,5412,5414],{"id":5413},"verify-the-safeguards","Verify the safeguards",[2955,5416,3197,5417,5420],{},[2996,5418,5419],{},"test-guard.mjs"," to test both read and delete tools.",[3166,5422,5424],{"className":3204,"code":5423,"language":3206,"meta":3171,"style":3171},"import { connectClient } from './client.mjs';\nimport { getApprovedTools, callApprovedTool } from './guard.mjs';\n\nconst client = await connectClient();\n\ntry {\n    const tools = await getApprovedTools(client);\n    console.log('Allowed tools:', tools.map((tool) => tool.name));\n\n    const result = await callApprovedTool(client, 'read_document');\n    if (result.isError) {\n        throw new Error('Read tool execution failed');\n    }\n    console.log(result.content[0].text);\n\n    await callApprovedTool(client, 'delete_document');\n} catch (error) {\n    console.log(error.message);\n} finally {\n    await client.close();\n}\n",[2996,5425,5426,5446,5471,5475,5491,5495,5501,5521,5566,5570,5598,5615,5636,5640,5670,5674,5696,5708,5730,5738,5752],{"__ignoreMap":3171},[3175,5427,5428,5430,5432,5434,5436,5438,5440,5442,5444],{"class":3177,"line":3178},[3175,5429,3214],{"class":3213},[3175,5431,3242],{"class":3224},[3175,5433,4455],{"class":3217},[3175,5435,3248],{"class":3224},[3175,5437,3251],{"class":3213},[3175,5439,3225],{"class":3224},[3175,5441,4744],{"class":3184},[3175,5443,3231],{"class":3224},[3175,5445,3234],{"class":3224},[3175,5447,5448,5450,5452,5454,5456,5458,5460,5462,5464,5467,5469],{"class":3177,"line":3237},[3175,5449,3214],{"class":3213},[3175,5451,3242],{"class":3224},[3175,5453,5096],{"class":3217},[3175,5455,3453],{"class":3224},[3175,5457,5184],{"class":3217},[3175,5459,3248],{"class":3224},[3175,5461,3251],{"class":3213},[3175,5463,3225],{"class":3224},[3175,5465,5466],{"class":3184},"./guard.mjs",[3175,5468,3231],{"class":3224},[3175,5470,3234],{"class":3224},[3175,5472,5473],{"class":3177,"line":3263},[3175,5474,3290],{"emptyLinePlaceholder":3289},[3175,5476,5477,5479,5481,5483,5485,5487,5489],{"class":3177,"line":3286},[3175,5478,3297],{"class":3296},[3175,5480,4759],{"class":3217},[3175,5482,3303],{"class":3224},[3175,5484,4626],{"class":3213},[3175,5486,4455],{"class":3306},[3175,5488,3310],{"class":3217},[3175,5490,3234],{"class":3224},[3175,5492,5493],{"class":3177,"line":3293},[3175,5494,3290],{"emptyLinePlaceholder":3289},[3175,5496,5497,5499],{"class":3177,"line":3315},[3175,5498,4778],{"class":3213},[3175,5500,3356],{"class":3224},[3175,5502,5503,5505,5507,5509,5511,5513,5515,5517,5519],{"class":3177,"line":3340},[3175,5504,3362],{"class":3296},[3175,5506,4614],{"class":3217},[3175,5508,3368],{"class":3224},[3175,5510,4626],{"class":3213},[3175,5512,5096],{"class":3306},[3175,5514,3377],{"class":3376},[3175,5516,4601],{"class":3217},[3175,5518,3424],{"class":3376},[3175,5520,3234],{"class":3224},[3175,5522,5523,5525,5527,5529,5531,5533,5536,5538,5540,5542,5544,5546,5548,5550,5552,5554,5556,5558,5560,5562,5564],{"class":3177,"line":3345},[3175,5524,4320],{"class":3217},[3175,5526,3321],{"class":3224},[3175,5528,3681],{"class":3306},[3175,5530,3377],{"class":3376},[3175,5532,3231],{"class":3224},[3175,5534,5535],{"class":3184},"Allowed tools:",[3175,5537,3231],{"class":3224},[3175,5539,3453],{"class":3224},[3175,5541,4614],{"class":3217},[3175,5543,3321],{"class":3224},[3175,5545,4826],{"class":3306},[3175,5547,3377],{"class":3376},[3175,5549,3377],{"class":3224},[3175,5551,4833],{"class":3808},[3175,5553,3424],{"class":3224},[3175,5555,3519],{"class":3296},[3175,5557,4840],{"class":3217},[3175,5559,3321],{"class":3224},[3175,5561,4845],{"class":3217},[3175,5563,4567],{"class":3376},[3175,5565,3234],{"class":3224},[3175,5567,5568],{"class":3177,"line":3359},[3175,5569,3290],{"emptyLinePlaceholder":3289},[3175,5571,5572,5574,5576,5578,5580,5582,5584,5586,5588,5590,5592,5594,5596],{"class":3177,"line":3383},[3175,5573,3362],{"class":3296},[3175,5575,4867],{"class":3217},[3175,5577,3368],{"class":3224},[3175,5579,4626],{"class":3213},[3175,5581,5184],{"class":3306},[3175,5583,3377],{"class":3376},[3175,5585,4601],{"class":3217},[3175,5587,3453],{"class":3224},[3175,5589,3225],{"class":3224},[3175,5591,3065],{"class":3184},[3175,5593,3231],{"class":3224},[3175,5595,3424],{"class":3376},[3175,5597,3234],{"class":3224},[3175,5599,5600,5602,5604,5606,5608,5611,5613],{"class":3177,"line":3402},[3175,5601,3833],{"class":3213},[3175,5603,3805],{"class":3376},[3175,5605,4931],{"class":3217},[3175,5607,3321],{"class":3224},[3175,5609,5610],{"class":3217},"isError",[3175,5612,3854],{"class":3376},[3175,5614,3380],{"class":3224},[3175,5616,5617,5619,5621,5623,5625,5627,5630,5632,5634],{"class":3177,"line":3418},[3175,5618,4664],{"class":3213},[3175,5620,3371],{"class":3224},[3175,5622,4669],{"class":3306},[3175,5624,3377],{"class":3376},[3175,5626,3231],{"class":3224},[3175,5628,5629],{"class":3184},"Read tool execution failed",[3175,5631,3231],{"class":3224},[3175,5633,3424],{"class":3376},[3175,5635,3234],{"class":3224},[3175,5637,5638],{"class":3177,"line":3429},[3175,5639,3896],{"class":3224},[3175,5641,5642,5644,5646,5648,5650,5652,5654,5656,5658,5660,5662,5664,5666,5668],{"class":3177,"line":3434},[3175,5643,4320],{"class":3217},[3175,5645,3321],{"class":3224},[3175,5647,3681],{"class":3306},[3175,5649,3377],{"class":3376},[3175,5651,4931],{"class":3217},[3175,5653,3321],{"class":3224},[3175,5655,4936],{"class":3217},[3175,5657,4939],{"class":3376},[3175,5659,4942],{"class":3885},[3175,5661,4945],{"class":3376},[3175,5663,3321],{"class":3224},[3175,5665,3553],{"class":3217},[3175,5667,3424],{"class":3376},[3175,5669,3234],{"class":3224},[3175,5671,5672],{"class":3177,"line":3458},[3175,5673,3290],{"emptyLinePlaceholder":3289},[3175,5675,5676,5678,5680,5682,5684,5686,5688,5690,5692,5694],{"class":3177,"line":3474},[3175,5677,4128],{"class":3213},[3175,5679,5184],{"class":3306},[3175,5681,3377],{"class":3376},[3175,5683,4601],{"class":3217},[3175,5685,3453],{"class":3224},[3175,5687,3225],{"class":3224},[3175,5689,3078],{"class":3184},[3175,5691,3231],{"class":3224},[3175,5693,3424],{"class":3376},[3175,5695,3234],{"class":3224},[3175,5697,5698,5700,5703,5706],{"class":3177,"line":3485},[3175,5699,4183],{"class":3224},[3175,5701,5702],{"class":3213}," catch",[3175,5704,5705],{"class":3217}," (error) ",[3175,5707,3380],{"class":3224},[3175,5709,5710,5712,5714,5716,5718,5721,5723,5726,5728],{"class":3177,"line":3507},[3175,5711,4320],{"class":3217},[3175,5713,3321],{"class":3224},[3175,5715,3681],{"class":3306},[3175,5717,3377],{"class":3376},[3175,5719,5720],{"class":3217},"error",[3175,5722,3321],{"class":3224},[3175,5724,5725],{"class":3217},"message",[3175,5727,3424],{"class":3376},[3175,5729,3234],{"class":3224},[3175,5731,5732,5734,5736],{"class":3177,"line":3524},[3175,5733,4183],{"class":3224},[3175,5735,4960],{"class":3213},[3175,5737,3356],{"class":3224},[3175,5739,5740,5742,5744,5746,5748,5750],{"class":3177,"line":3532},[3175,5741,4128],{"class":3213},[3175,5743,4466],{"class":3217},[3175,5745,3321],{"class":3224},[3175,5747,4082],{"class":3306},[3175,5749,3310],{"class":3376},[3175,5751,3234],{"class":3224},[3175,5753,5754],{"class":3177,"line":3577},[3175,5755,3774],{"class":3224},[2955,5757,5758,5759,5762],{},"Run ",[2996,5760,5761],{},"node test-guard.mjs",". Expected output:",[3166,5764,5766],{"className":4365,"code":5765,"language":4367,"meta":3171,"style":3171},"Allowed tools: [ 'read_document' ]\nDocument content: MCP usage guide\nTool call forbidden: delete_document\n",[2996,5767,5768,5773,5778],{"__ignoreMap":3171},[3175,5769,5770],{"class":3177,"line":3178},[3175,5771,5772],{},"Allowed tools: [ 'read_document' ]\n",[3175,5774,5775],{"class":3177,"line":3237},[3175,5776,5777],{},"Document content: MCP usage guide\n",[3175,5779,5780],{"class":3177,"line":3263},[3175,5781,5782],{},"Tool call forbidden: delete_document\n",[2955,5784,5785,5786,5788],{},"This time, the server adds no ",[2996,5787,3688],{}," log. The client blocks the request before execution rather than checking its result afterward.",[2955,5790,5791],{},"Bind allowlists to approved service connections. The server must still determine whether the caller can access each document; a client allowlist cannot replace business authorization.",[2959,5793],{},[2950,5795,5797],{"id":5796},"detect-tool-definition-changes","🛠 Detect tool definition changes",[2955,5799,5800],{},"An allowlist checks only names. If an approved read tool starts requiring new arguments, or its description changes from “Read a document” to “Read and modify a document,” its name alone cannot reveal the change.",[2972,5802,5803,5816],{},[2975,5804,5805],{},[2978,5806,5807,5810,5813],{},[2981,5808,5809],{},"Field",[2981,5811,5812],{},"Approved tool",[2981,5814,5815],{},"Updated tool",[2988,5817,5818,5832,5844],{},[2978,5819,5820,5824,5828],{},[2993,5821,5822],{},[2996,5823,4845],{},[2993,5825,5826],{},[2996,5827,3065],{},[2993,5829,5830],{},[2996,5831,3065],{},[2978,5833,5834,5839,5841],{},[2993,5835,5836],{},[2996,5837,5838],{},"description",[2993,5840,3068],{},[2993,5842,5843],{},"Read and modify a document",[2978,5845,5846,5850,5855],{},[2993,5847,5848],{},[2996,5849,3117],{},[2993,5851,5852],{},[2996,5853,5854],{},"true",[2993,5856,5857],{},[2996,5858,5859],{},"false",[2955,5861,5862],{},"When approving a tool, save its complete reviewed definition along with its name.",[3086,5864,5866],{"id":5865},"save-the-approved-definition","Save the approved definition",[2955,5868,3197,5869,5872],{},[2996,5870,5871],{},"review-tool.mjs"," to print the read tool's definition. This standalone script is for manual review, not routine calls.",[3166,5874,5876],{"className":3204,"code":5875,"language":3206,"meta":3171,"style":3171},"import { connectClient, listTools } from './client.mjs';\n\nconst client = await connectClient();\n\ntry {\n    const tools = await listTools(client);\n    const tool = tools.find((item) => item.name === 'read_document');\n    if (!tool) {\n        throw new Error('Read tool not found');\n    }\n    console.log(JSON.stringify(tool, null, 4));\n} finally {\n    await client.close();\n}\n",[2996,5877,5878,5902,5906,5922,5926,5932,5952,5997,6011,6032,6036,6070,6078,6092],{"__ignoreMap":3171},[3175,5879,5880,5882,5884,5886,5888,5890,5892,5894,5896,5898,5900],{"class":3177,"line":3178},[3175,5881,3214],{"class":3213},[3175,5883,3242],{"class":3224},[3175,5885,4455],{"class":3217},[3175,5887,3453],{"class":3224},[3175,5889,4596],{"class":3217},[3175,5891,3248],{"class":3224},[3175,5893,3251],{"class":3213},[3175,5895,3225],{"class":3224},[3175,5897,4744],{"class":3184},[3175,5899,3231],{"class":3224},[3175,5901,3234],{"class":3224},[3175,5903,5904],{"class":3177,"line":3237},[3175,5905,3290],{"emptyLinePlaceholder":3289},[3175,5907,5908,5910,5912,5914,5916,5918,5920],{"class":3177,"line":3263},[3175,5909,3297],{"class":3296},[3175,5911,4759],{"class":3217},[3175,5913,3303],{"class":3224},[3175,5915,4626],{"class":3213},[3175,5917,4455],{"class":3306},[3175,5919,3310],{"class":3217},[3175,5921,3234],{"class":3224},[3175,5923,5924],{"class":3177,"line":3286},[3175,5925,3290],{"emptyLinePlaceholder":3289},[3175,5927,5928,5930],{"class":3177,"line":3293},[3175,5929,4778],{"class":3213},[3175,5931,3356],{"class":3224},[3175,5933,5934,5936,5938,5940,5942,5944,5946,5948,5950],{"class":3177,"line":3315},[3175,5935,3362],{"class":3296},[3175,5937,4614],{"class":3217},[3175,5939,3368],{"class":3224},[3175,5941,4626],{"class":3213},[3175,5943,4596],{"class":3306},[3175,5945,3377],{"class":3376},[3175,5947,4601],{"class":3217},[3175,5949,3424],{"class":3376},[3175,5951,3234],{"class":3224},[3175,5953,5954,5956,5958,5960,5962,5964,5967,5969,5971,5974,5976,5978,5981,5983,5985,5987,5989,5991,5993,5995],{"class":3177,"line":3340},[3175,5955,3362],{"class":3296},[3175,5957,4840],{"class":3217},[3175,5959,3368],{"class":3224},[3175,5961,4614],{"class":3217},[3175,5963,3321],{"class":3224},[3175,5965,5966],{"class":3306},"find",[3175,5968,3377],{"class":3376},[3175,5970,3377],{"class":3224},[3175,5972,5973],{"class":3808},"item",[3175,5975,3424],{"class":3224},[3175,5977,3519],{"class":3296},[3175,5979,5980],{"class":3217}," item",[3175,5982,3321],{"class":3224},[3175,5984,4845],{"class":3217},[3175,5986,5321],{"class":3224},[3175,5988,3225],{"class":3224},[3175,5990,3065],{"class":3184},[3175,5992,3231],{"class":3224},[3175,5994,3424],{"class":3376},[3175,5996,3234],{"class":3224},[3175,5998,5999,6001,6003,6005,6007,6009],{"class":3177,"line":3345},[3175,6000,3833],{"class":3213},[3175,6002,3805],{"class":3376},[3175,6004,5214],{"class":3224},[3175,6006,4833],{"class":3217},[3175,6008,3854],{"class":3376},[3175,6010,3380],{"class":3224},[3175,6012,6013,6015,6017,6019,6021,6023,6026,6028,6030],{"class":3177,"line":3359},[3175,6014,4664],{"class":3213},[3175,6016,3371],{"class":3224},[3175,6018,4669],{"class":3306},[3175,6020,3377],{"class":3376},[3175,6022,3231],{"class":3224},[3175,6024,6025],{"class":3184},"Read tool not found",[3175,6027,3231],{"class":3224},[3175,6029,3424],{"class":3376},[3175,6031,3234],{"class":3224},[3175,6033,6034],{"class":3177,"line":3383},[3175,6035,3896],{"class":3224},[3175,6037,6038,6040,6042,6044,6046,6049,6051,6054,6056,6058,6060,6063,6066,6068],{"class":3177,"line":3402},[3175,6039,4320],{"class":3217},[3175,6041,3321],{"class":3224},[3175,6043,3681],{"class":3306},[3175,6045,3377],{"class":3376},[3175,6047,6048],{"class":3217},"JSON",[3175,6050,3321],{"class":3224},[3175,6052,6053],{"class":3306},"stringify",[3175,6055,3377],{"class":3376},[3175,6057,4833],{"class":3217},[3175,6059,3453],{"class":3224},[3175,6061,6062],{"class":3224}," null,",[3175,6064,6065],{"class":3885}," 4",[3175,6067,4567],{"class":3376},[3175,6069,3234],{"class":3224},[3175,6071,6072,6074,6076],{"class":3177,"line":3418},[3175,6073,4183],{"class":3224},[3175,6075,4960],{"class":3213},[3175,6077,3356],{"class":3224},[3175,6079,6080,6082,6084,6086,6088,6090],{"class":3177,"line":3429},[3175,6081,4128],{"class":3213},[3175,6083,4466],{"class":3217},[3175,6085,3321],{"class":3224},[3175,6087,4082],{"class":3306},[3175,6089,3310],{"class":3376},[3175,6091,3234],{"class":3224},[3175,6093,6094],{"class":3177,"line":3434},[3175,6095,3774],{"class":3224},[2955,6097,5758,6098,6101],{},[2996,6099,6100],{},"node review-tool.mjs",". The JSON resembles the following (exact schema fields depend on the SDK output):",[3166,6103,6106],{"className":6104,"code":6105,"language":3332,"meta":3171,"style":3171},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n    \"name\": \"read_document\",\n    \"description\": \"Read a document\",\n    \"inputSchema\": {\n        \"type\": \"object\",\n        \"properties\": {}\n    },\n    \"annotations\": {\n        \"readOnlyHint\": true\n    }\n}\n",[2996,6107,6108,6112,6133,6151,6164,6185,6198,6203,6215,6227,6231],{"__ignoreMap":3171},[3175,6109,6110],{"class":3177,"line":3178},[3175,6111,3380],{"class":3224},[3175,6113,6114,6117,6119,6122,6124,6127,6129,6131],{"class":3177,"line":3237},[3175,6115,6116],{"class":3224},"    \"",[3175,6118,4845],{"class":3296},[3175,6120,6121],{"class":3224},"\"",[3175,6123,3389],{"class":3224},[3175,6125,6126],{"class":3224}," \"",[3175,6128,3065],{"class":3184},[3175,6130,6121],{"class":3224},[3175,6132,3399],{"class":3224},[3175,6134,6135,6137,6139,6141,6143,6145,6147,6149],{"class":3177,"line":3263},[3175,6136,6116],{"class":3224},[3175,6138,5838],{"class":3296},[3175,6140,6121],{"class":3224},[3175,6142,3389],{"class":3224},[3175,6144,6126],{"class":3224},[3175,6146,3068],{"class":3184},[3175,6148,6121],{"class":3224},[3175,6150,3399],{"class":3224},[3175,6152,6153,6155,6158,6160,6162],{"class":3177,"line":3286},[3175,6154,6116],{"class":3224},[3175,6156,6157],{"class":3296},"inputSchema",[3175,6159,6121],{"class":3224},[3175,6161,3389],{"class":3224},[3175,6163,3356],{"class":3224},[3175,6165,6166,6169,6172,6174,6176,6178,6181,6183],{"class":3177,"line":3293},[3175,6167,6168],{"class":3224},"        \"",[3175,6170,6171],{"class":3181},"type",[3175,6173,6121],{"class":3224},[3175,6175,3389],{"class":3224},[3175,6177,6126],{"class":3224},[3175,6179,6180],{"class":3184},"object",[3175,6182,6121],{"class":3224},[3175,6184,3399],{"class":3224},[3175,6186,6187,6189,6192,6194,6196],{"class":3177,"line":3315},[3175,6188,6168],{"class":3224},[3175,6190,6191],{"class":3181},"properties",[3175,6193,6121],{"class":3224},[3175,6195,3389],{"class":3224},[3175,6197,4906],{"class":3224},[3175,6199,6200],{"class":3177,"line":3340},[3175,6201,6202],{"class":3224},"    },\n",[3175,6204,6205,6207,6209,6211,6213],{"class":3177,"line":3345},[3175,6206,6116],{"class":3224},[3175,6208,3095],{"class":3296},[3175,6210,6121],{"class":3224},[3175,6212,3389],{"class":3224},[3175,6214,3356],{"class":3224},[3175,6216,6217,6219,6221,6223,6225],{"class":3177,"line":3359},[3175,6218,6168],{"class":3224},[3175,6220,3117],{"class":3181},[3175,6222,6121],{"class":3224},[3175,6224,3389],{"class":3224},[3175,6226,4050],{"class":3224},[3175,6228,6229],{"class":3177,"line":3383},[3175,6230,3896],{"class":3224},[3175,6232,6233],{"class":3177,"line":3402},[3175,6234,3774],{"class":3224},[2955,6236,6237,6238,6240,6241,6244],{},"Review the read tool in ",[2996,6239,3200],{}," to confirm its purpose, parameters, and execution behavior. Then save the complete JSON object printed in the terminal as ",[2996,6242,6243],{},"approved-tool.json"," in the same directory. Do not copy the illustrative JSON above or update the approval file automatically on every connection.",[3086,6246,6248],{"id":6247},"add-definition-checks","Add definition checks",[2955,6250,6251,6252,6255],{},"Use Node.js ",[2996,6253,6254],{},"isDeepStrictEqual()"," to compare complete definitions. It checks fields and values regardless of object property order.",[2955,6257,3197,6258,6261],{},[2996,6259,6260],{},"check-definition.mjs"," to read the manually approved definition and check the current tool:",[3166,6263,6265],{"className":3204,"code":6264,"language":3206,"meta":3171,"style":3171},"import { readFile } from 'node:fs/promises';\nimport { isDeepStrictEqual } from 'node:util';\n\nconst approvedDefinition = JSON.parse(\n    await readFile(new URL('./approved-tool.json', import.meta.url), 'utf8')\n);\n\nexport function checkDefinition(tool) {\n    if (!isDeepStrictEqual(tool, approvedDefinition)) {\n        throw new Error(`Tool definition changed: ${tool.name}`);\n    }\n}\n",[2996,6266,6267,6289,6311,6315,6335,6383,6389,6393,6410,6434,6463,6467],{"__ignoreMap":3171},[3175,6268,6269,6271,6273,6276,6278,6280,6282,6285,6287],{"class":3177,"line":3178},[3175,6270,3214],{"class":3213},[3175,6272,3242],{"class":3224},[3175,6274,6275],{"class":3217}," readFile",[3175,6277,3248],{"class":3224},[3175,6279,3251],{"class":3213},[3175,6281,3225],{"class":3224},[3175,6283,6284],{"class":3184},"node:fs/promises",[3175,6286,3231],{"class":3224},[3175,6288,3234],{"class":3224},[3175,6290,6291,6293,6295,6298,6300,6302,6304,6307,6309],{"class":3177,"line":3237},[3175,6292,3214],{"class":3213},[3175,6294,3242],{"class":3224},[3175,6296,6297],{"class":3217}," isDeepStrictEqual",[3175,6299,3248],{"class":3224},[3175,6301,3251],{"class":3213},[3175,6303,3225],{"class":3224},[3175,6305,6306],{"class":3184},"node:util",[3175,6308,3231],{"class":3224},[3175,6310,3234],{"class":3224},[3175,6312,6313],{"class":3177,"line":3263},[3175,6314,3290],{"emptyLinePlaceholder":3289},[3175,6316,6317,6319,6322,6324,6327,6329,6332],{"class":3177,"line":3286},[3175,6318,3297],{"class":3296},[3175,6320,6321],{"class":3217}," approvedDefinition ",[3175,6323,3303],{"class":3224},[3175,6325,6326],{"class":3217}," JSON",[3175,6328,3321],{"class":3224},[3175,6330,6331],{"class":3306},"parse",[3175,6333,6334],{"class":3217},"(\n",[3175,6336,6337,6339,6341,6343,6345,6347,6349,6351,6354,6356,6358,6361,6363,6366,6368,6371,6373,6375,6378,6380],{"class":3177,"line":3293},[3175,6338,4128],{"class":3213},[3175,6340,6275],{"class":3306},[3175,6342,3377],{"class":3217},[3175,6344,4557],{"class":3224},[3175,6346,4529],{"class":3306},[3175,6348,3377],{"class":3217},[3175,6350,3231],{"class":3224},[3175,6352,6353],{"class":3184},"./approved-tool.json",[3175,6355,3231],{"class":3224},[3175,6357,3453],{"class":3224},[3175,6359,6360],{"class":3213}," import",[3175,6362,3321],{"class":3224},[3175,6364,6365],{"class":3217},"meta",[3175,6367,3321],{"class":3224},[3175,6369,6370],{"class":3217},"url)",[3175,6372,3453],{"class":3224},[3175,6374,3225],{"class":3224},[3175,6376,6377],{"class":3184},"utf8",[3175,6379,3231],{"class":3224},[3175,6381,6382],{"class":3217},")\n",[3175,6384,6385,6387],{"class":3177,"line":3315},[3175,6386,3424],{"class":3217},[3175,6388,3234],{"class":3224},[3175,6390,6391],{"class":3177,"line":3340},[3175,6392,3290],{"emptyLinePlaceholder":3289},[3175,6394,6395,6397,6399,6402,6404,6406,6408],{"class":3177,"line":3345},[3175,6396,4447],{"class":3213},[3175,6398,4452],{"class":3296},[3175,6400,6401],{"class":3306}," checkDefinition",[3175,6403,3377],{"class":3224},[3175,6405,4833],{"class":3808},[3175,6407,3424],{"class":3224},[3175,6409,3356],{"class":3224},[3175,6411,6412,6414,6416,6418,6421,6423,6425,6427,6430,6432],{"class":3177,"line":3359},[3175,6413,3833],{"class":3213},[3175,6415,3805],{"class":3376},[3175,6417,5214],{"class":3224},[3175,6419,6420],{"class":3306},"isDeepStrictEqual",[3175,6422,3377],{"class":3376},[3175,6424,4833],{"class":3217},[3175,6426,3453],{"class":3224},[3175,6428,6429],{"class":3217}," approvedDefinition",[3175,6431,5228],{"class":3376},[3175,6433,3380],{"class":3224},[3175,6435,6436,6438,6440,6442,6444,6446,6449,6451,6453,6455,6457,6459,6461],{"class":3177,"line":3383},[3175,6437,4664],{"class":3213},[3175,6439,3371],{"class":3224},[3175,6441,4669],{"class":3306},[3175,6443,3377],{"class":3376},[3175,6445,5243],{"class":3224},[3175,6447,6448],{"class":3184},"Tool definition changed: ",[3175,6450,5249],{"class":3224},[3175,6452,4833],{"class":3217},[3175,6454,3321],{"class":3224},[3175,6456,4845],{"class":3217},[3175,6458,5254],{"class":3224},[3175,6460,3424],{"class":3376},[3175,6462,3234],{"class":3224},[3175,6464,6465],{"class":3177,"line":3402},[3175,6466,3896],{"class":3224},[3175,6468,6469],{"class":3177,"line":3418},[3175,6470,3774],{"class":3224},[2955,6472,6473,6474,3389],{},"Import the check at the top of ",[2996,6475,5023],{},[3166,6477,6479],{"className":3204,"code":6478,"language":3206,"meta":3171,"style":3171},"import { checkDefinition } from './check-definition.mjs';\n",[2996,6480,6481],{"__ignoreMap":3171},[3175,6482,6483,6485,6487,6489,6491,6493,6495,6498,6500],{"class":3177,"line":3178},[3175,6484,3214],{"class":3213},[3175,6486,3242],{"class":3224},[3175,6488,6401],{"class":3217},[3175,6490,3248],{"class":3224},[3175,6492,3251],{"class":3213},[3175,6494,3225],{"class":3224},[3175,6496,6497],{"class":3184},"./check-definition.mjs",[3175,6499,3231],{"class":3224},[3175,6501,3234],{"class":3224},[2955,6503,6504,6505,6507],{},"Replace ",[2996,6506,5401],{}," with:",[3166,6509,6511],{"className":3204,"code":6510,"language":3206,"meta":3171,"style":3171},"export async function getApprovedTools(client) {\n    const tools = await listTools(client);\n    const approvedTools = tools.filter((tool) => allowedNames.has(tool.name));\n\n    for (const tool of approvedTools) {\n        checkDefinition(tool);\n    }\n\n    return approvedTools;\n}\n",[2996,6512,6513,6531,6551,6594,6598,6618,6631,6635,6639,6647],{"__ignoreMap":3171},[3175,6514,6515,6517,6519,6521,6523,6525,6527,6529],{"class":3177,"line":3178},[3175,6516,4447],{"class":3213},[3175,6518,3513],{"class":3296},[3175,6520,4452],{"class":3296},[3175,6522,5096],{"class":3306},[3175,6524,3377],{"class":3224},[3175,6526,4601],{"class":3808},[3175,6528,3424],{"class":3224},[3175,6530,3356],{"class":3224},[3175,6532,6533,6535,6537,6539,6541,6543,6545,6547,6549],{"class":3177,"line":3237},[3175,6534,3362],{"class":3296},[3175,6536,4614],{"class":3217},[3175,6538,3368],{"class":3224},[3175,6540,4626],{"class":3213},[3175,6542,4596],{"class":3306},[3175,6544,3377],{"class":3376},[3175,6546,4601],{"class":3217},[3175,6548,3424],{"class":3376},[3175,6550,3234],{"class":3224},[3175,6552,6553,6555,6558,6560,6562,6564,6566,6568,6570,6572,6574,6576,6578,6580,6582,6584,6586,6588,6590,6592],{"class":3177,"line":3263},[3175,6554,3362],{"class":3296},[3175,6556,6557],{"class":3217}," approvedTools",[3175,6559,3368],{"class":3224},[3175,6561,4614],{"class":3217},[3175,6563,3321],{"class":3224},[3175,6565,5135],{"class":3306},[3175,6567,3377],{"class":3376},[3175,6569,3377],{"class":3224},[3175,6571,4833],{"class":3808},[3175,6573,3424],{"class":3224},[3175,6575,3519],{"class":3296},[3175,6577,5148],{"class":3217},[3175,6579,3321],{"class":3224},[3175,6581,5153],{"class":3306},[3175,6583,3377],{"class":3376},[3175,6585,4833],{"class":3217},[3175,6587,3321],{"class":3224},[3175,6589,4845],{"class":3217},[3175,6591,4567],{"class":3376},[3175,6593,3234],{"class":3224},[3175,6595,6596],{"class":3177,"line":3286},[3175,6597,3290],{"emptyLinePlaceholder":3289},[3175,6599,6600,6603,6605,6607,6609,6612,6614,6616],{"class":3177,"line":3293},[3175,6601,6602],{"class":3213},"    for",[3175,6604,3805],{"class":3376},[3175,6606,3297],{"class":3296},[3175,6608,4840],{"class":3217},[3175,6610,6611],{"class":3224}," of",[3175,6613,6557],{"class":3217},[3175,6615,3854],{"class":3376},[3175,6617,3380],{"class":3224},[3175,6619,6620,6623,6625,6627,6629],{"class":3177,"line":3315},[3175,6621,6622],{"class":3306},"        checkDefinition",[3175,6624,3377],{"class":3376},[3175,6626,4833],{"class":3217},[3175,6628,3424],{"class":3376},[3175,6630,3234],{"class":3224},[3175,6632,6633],{"class":3177,"line":3340},[3175,6634,3896],{"class":3224},[3175,6636,6637],{"class":3177,"line":3345},[3175,6638,3290],{"emptyLinePlaceholder":3289},[3175,6640,6641,6643,6645],{"class":3177,"line":3359},[3175,6642,3764],{"class":3213},[3175,6644,6557],{"class":3217},[3175,6646,3234],{"class":3224},[3175,6648,6649],{"class":3177,"line":3383},[3175,6650,3774],{"class":3224},[2955,6652,6653,6654,6656,6657,6659],{},"No changes to ",[2996,6655,5405],{}," are needed. It already calls ",[2996,6658,5401],{}," before sending a request, so both discovery and execution check definitions.",[3086,6661,6663],{"id":6662},"test-definition-changes","Test definition changes",[2955,6665,6666],{},"Change the tool description and input parameters separately to see whether the client rejects changed tools. Leave the approval file unchanged.",[2955,6668,3197,6669,6672],{},[2996,6670,6671],{},"test-definition.mjs"," to test discovery and execution separately, so an error in the first test does not prevent the second from running.",[3166,6674,6676],{"className":3204,"code":6675,"language":3206,"meta":3171,"style":3171},"import { connectClient } from './client.mjs';\nimport { getApprovedTools, callApprovedTool } from './guard.mjs';\n\nconst client = await connectClient();\n\ntry {\n    try {\n        await getApprovedTools(client);\n        console.log('Discovery: passed');\n    } catch (error) {\n        console.log('Discovery:', error.message);\n    }\n\n    try {\n        const result = await callApprovedTool(client, 'read_document');\n        if (result.isError) {\n            throw new Error('Read tool execution failed');\n        }\n        console.log('Call: passed');\n    } catch (error) {\n        console.log('Call:', error.message);\n    }\n} finally {\n    await client.close();\n}\n",[2996,6677,6678,6698,6722,6726,6742,6746,6752,6759,6774,6795,6809,6839,6843,6847,6853,6882,6899,6920,6925,6946,6960,6989,6993,7001,7015],{"__ignoreMap":3171},[3175,6679,6680,6682,6684,6686,6688,6690,6692,6694,6696],{"class":3177,"line":3178},[3175,6681,3214],{"class":3213},[3175,6683,3242],{"class":3224},[3175,6685,4455],{"class":3217},[3175,6687,3248],{"class":3224},[3175,6689,3251],{"class":3213},[3175,6691,3225],{"class":3224},[3175,6693,4744],{"class":3184},[3175,6695,3231],{"class":3224},[3175,6697,3234],{"class":3224},[3175,6699,6700,6702,6704,6706,6708,6710,6712,6714,6716,6718,6720],{"class":3177,"line":3237},[3175,6701,3214],{"class":3213},[3175,6703,3242],{"class":3224},[3175,6705,5096],{"class":3217},[3175,6707,3453],{"class":3224},[3175,6709,5184],{"class":3217},[3175,6711,3248],{"class":3224},[3175,6713,3251],{"class":3213},[3175,6715,3225],{"class":3224},[3175,6717,5466],{"class":3184},[3175,6719,3231],{"class":3224},[3175,6721,3234],{"class":3224},[3175,6723,6724],{"class":3177,"line":3263},[3175,6725,3290],{"emptyLinePlaceholder":3289},[3175,6727,6728,6730,6732,6734,6736,6738,6740],{"class":3177,"line":3286},[3175,6729,3297],{"class":3296},[3175,6731,4759],{"class":3217},[3175,6733,3303],{"class":3224},[3175,6735,4626],{"class":3213},[3175,6737,4455],{"class":3306},[3175,6739,3310],{"class":3217},[3175,6741,3234],{"class":3224},[3175,6743,6744],{"class":3177,"line":3293},[3175,6745,3290],{"emptyLinePlaceholder":3289},[3175,6747,6748,6750],{"class":3177,"line":3315},[3175,6749,4778],{"class":3213},[3175,6751,3356],{"class":3224},[3175,6753,6754,6757],{"class":3177,"line":3340},[3175,6755,6756],{"class":3213},"    try",[3175,6758,3356],{"class":3224},[3175,6760,6761,6764,6766,6768,6770,6772],{"class":3177,"line":3345},[3175,6762,6763],{"class":3213},"        await",[3175,6765,5096],{"class":3306},[3175,6767,3377],{"class":3376},[3175,6769,4601],{"class":3217},[3175,6771,3424],{"class":3376},[3175,6773,3234],{"class":3224},[3175,6775,6776,6778,6780,6782,6784,6786,6789,6791,6793],{"class":3177,"line":3359},[3175,6777,3676],{"class":3217},[3175,6779,3321],{"class":3224},[3175,6781,3681],{"class":3306},[3175,6783,3377],{"class":3376},[3175,6785,3231],{"class":3224},[3175,6787,6788],{"class":3184},"Discovery: passed",[3175,6790,3231],{"class":3224},[3175,6792,3424],{"class":3376},[3175,6794,3234],{"class":3224},[3175,6796,6797,6799,6801,6803,6805,6807],{"class":3177,"line":3383},[3175,6798,3421],{"class":3224},[3175,6800,5702],{"class":3213},[3175,6802,3805],{"class":3376},[3175,6804,5720],{"class":3217},[3175,6806,3854],{"class":3376},[3175,6808,3380],{"class":3224},[3175,6810,6811,6813,6815,6817,6819,6821,6824,6826,6828,6831,6833,6835,6837],{"class":3177,"line":3402},[3175,6812,3676],{"class":3217},[3175,6814,3321],{"class":3224},[3175,6816,3681],{"class":3306},[3175,6818,3377],{"class":3376},[3175,6820,3231],{"class":3224},[3175,6822,6823],{"class":3184},"Discovery:",[3175,6825,3231],{"class":3224},[3175,6827,3453],{"class":3224},[3175,6829,6830],{"class":3217}," error",[3175,6832,3321],{"class":3224},[3175,6834,5725],{"class":3217},[3175,6836,3424],{"class":3376},[3175,6838,3234],{"class":3224},[3175,6840,6841],{"class":3177,"line":3418},[3175,6842,3896],{"class":3224},[3175,6844,6845],{"class":3177,"line":3429},[3175,6846,3290],{"emptyLinePlaceholder":3289},[3175,6848,6849,6851],{"class":3177,"line":3434},[3175,6850,6756],{"class":3213},[3175,6852,3356],{"class":3224},[3175,6854,6855,6858,6860,6862,6864,6866,6868,6870,6872,6874,6876,6878,6880],{"class":3177,"line":3458},[3175,6856,6857],{"class":3296},"        const",[3175,6859,4867],{"class":3217},[3175,6861,3368],{"class":3224},[3175,6863,4626],{"class":3213},[3175,6865,5184],{"class":3306},[3175,6867,3377],{"class":3376},[3175,6869,4601],{"class":3217},[3175,6871,3453],{"class":3224},[3175,6873,3225],{"class":3224},[3175,6875,3065],{"class":3184},[3175,6877,3231],{"class":3224},[3175,6879,3424],{"class":3376},[3175,6881,3234],{"class":3224},[3175,6883,6884,6887,6889,6891,6893,6895,6897],{"class":3177,"line":3474},[3175,6885,6886],{"class":3213},"        if",[3175,6888,3805],{"class":3376},[3175,6890,4931],{"class":3217},[3175,6892,3321],{"class":3224},[3175,6894,5610],{"class":3217},[3175,6896,3854],{"class":3376},[3175,6898,3380],{"class":3224},[3175,6900,6901,6904,6906,6908,6910,6912,6914,6916,6918],{"class":3177,"line":3485},[3175,6902,6903],{"class":3213},"            throw",[3175,6905,3371],{"class":3224},[3175,6907,4669],{"class":3306},[3175,6909,3377],{"class":3376},[3175,6911,3231],{"class":3224},[3175,6913,5629],{"class":3184},[3175,6915,3231],{"class":3224},[3175,6917,3424],{"class":3376},[3175,6919,3234],{"class":3224},[3175,6921,6922],{"class":3177,"line":3507},[3175,6923,6924],{"class":3224},"        }\n",[3175,6926,6927,6929,6931,6933,6935,6937,6940,6942,6944],{"class":3177,"line":3524},[3175,6928,3676],{"class":3217},[3175,6930,3321],{"class":3224},[3175,6932,3681],{"class":3306},[3175,6934,3377],{"class":3376},[3175,6936,3231],{"class":3224},[3175,6938,6939],{"class":3184},"Call: passed",[3175,6941,3231],{"class":3224},[3175,6943,3424],{"class":3376},[3175,6945,3234],{"class":3224},[3175,6947,6948,6950,6952,6954,6956,6958],{"class":3177,"line":3532},[3175,6949,3421],{"class":3224},[3175,6951,5702],{"class":3213},[3175,6953,3805],{"class":3376},[3175,6955,5720],{"class":3217},[3175,6957,3854],{"class":3376},[3175,6959,3380],{"class":3224},[3175,6961,6962,6964,6966,6968,6970,6972,6975,6977,6979,6981,6983,6985,6987],{"class":3177,"line":3577},[3175,6963,3676],{"class":3217},[3175,6965,3321],{"class":3224},[3175,6967,3681],{"class":3306},[3175,6969,3377],{"class":3376},[3175,6971,3231],{"class":3224},[3175,6973,6974],{"class":3184},"Call:",[3175,6976,3231],{"class":3224},[3175,6978,3453],{"class":3224},[3175,6980,6830],{"class":3217},[3175,6982,3321],{"class":3224},[3175,6984,5725],{"class":3217},[3175,6986,3424],{"class":3376},[3175,6988,3234],{"class":3224},[3175,6990,6991],{"class":3177,"line":3583},[3175,6992,3896],{"class":3224},[3175,6994,6995,6997,6999],{"class":3177,"line":3592},[3175,6996,4183],{"class":3224},[3175,6998,4960],{"class":3213},[3175,7000,3356],{"class":3224},[3175,7002,7003,7005,7007,7009,7011,7013],{"class":3177,"line":3597},[3175,7004,4128],{"class":3213},[3175,7006,4466],{"class":3217},[3175,7008,3321],{"class":3224},[3175,7010,4082],{"class":3306},[3175,7012,3310],{"class":3376},[3175,7014,3234],{"class":3224},[3175,7016,7017],{"class":3177,"line":3618},[3175,7018,3774],{"class":3224},[2955,7020,5758,7021,5762],{},[2996,7022,7023],{},"node test-definition.mjs",[3166,7025,7027],{"className":4365,"code":7026,"language":4367,"meta":3171,"style":3171},"Discovery: passed\nCall: passed\n",[2996,7028,7029,7034],{"__ignoreMap":3171},[3175,7030,7031],{"class":3177,"line":3178},[3175,7032,7033],{},"Discovery: passed\n",[3175,7035,7036],{"class":3177,"line":3237},[3175,7037,7038],{},"Call: passed\n",[2955,7040,7041,7042,7044,7045,7047,7048,7051],{},"Experiment 1: Change the description. Set the read tool's ",[2996,7043,5838],{}," in ",[2996,7046,3200],{}," to ",[2996,7049,7050],{},"'Read and modify a document'",", restart the server, and run the test.",[2955,7053,7054,7055,7058,7059,3389],{},"Experiment 2: Change input parameters. Restore the original description and import ",[2996,7056,7057],{},"z"," at the top of ",[2996,7060,3200],{},[3166,7062,7064],{"className":3204,"code":7063,"language":3206,"meta":3171,"style":3171},"import { z } from 'zod';\n",[2996,7065,7066],{"__ignoreMap":3171},[3175,7067,7068,7070,7072,7075,7077,7079,7081,7084,7086],{"class":3177,"line":3178},[3175,7069,3214],{"class":3213},[3175,7071,3242],{"class":3224},[3175,7073,7074],{"class":3217}," z",[3175,7076,3248],{"class":3224},[3175,7078,3251],{"class":3213},[3175,7080,3225],{"class":3224},[3175,7082,7083],{"class":3184},"zod",[3175,7085,3231],{"class":3224},[3175,7087,3234],{"class":3224},[2955,7089,7090,7091,6507],{},"Replace the read tool's ",[2996,7092,7093],{},"inputSchema: {}",[3166,7095,7097],{"className":3204,"code":7096,"language":3206,"meta":3171,"style":3171},"inputSchema: { documentId: z.string() },\n",[2996,7098,7099],{"__ignoreMap":3171},[3175,7100,7101,7103,7105,7107,7110,7112,7114,7116,7119,7122],{"class":3177,"line":3178},[3175,7102,6157],{"class":3181},[3175,7104,3389],{"class":3224},[3175,7106,3242],{"class":3224},[3175,7108,7109],{"class":3181}," documentId",[3175,7111,3389],{"class":3224},[3175,7113,7074],{"class":3217},[3175,7115,3321],{"class":3224},[3175,7117,7118],{"class":3306},"string",[3175,7120,7121],{"class":3376},"() ",[3175,7123,7124],{"class":3224},"},\n",[2955,7126,7127],{},"Restart the server and run the test. Both experiments should output:",[3166,7129,7131],{"className":4365,"code":7130,"language":4367,"meta":3171,"style":3171},"Discovery: Tool definition changed: read_document\nCall: Tool definition changed: read_document\n",[2996,7132,7133,7138],{"__ignoreMap":3171},[3175,7134,7135],{"class":3177,"line":3178},[3175,7136,7137],{},"Discovery: Tool definition changed: read_document\n",[3175,7139,7140],{"class":3177,"line":3237},[3175,7141,7142],{},"Call: Tool definition changed: read_document\n",[2955,7144,7145],{},"The tool name is unchanged, but both entry points reject it. Restore the original definition and restart the server after testing.",[2955,7147,7148,7149,7152],{},"Servers declaring support for tool list change notifications can send ",[2996,7150,7151],{},"notifications/tools/list_changed",". On receiving one, pause affected tools and retrieve and review their definitions again. This stateless HTTP experiment fetches the list before calls and does not depend on notifications.",[4375,7154,7155],{},[2955,7156,7157],{},"Matching definitions do not guarantee matching behavior: a server can change behavior without changing definitions, or change between a check and a call. Review service provenance, manage versions, and restrict server permissions as well.",[2955,7159,7160],{},"Trusted application configuration must maintain approval records. Models and tool result content must not modify them.",[2959,7162],{},[2950,7164,7166],{"id":7165},"mcp-authentication-and-authorization","🧱 MCP authentication and authorization",[2955,7168,7169],{},"Suppose the document MCP server requires login authorization and the assistant only needs to read documents accessible to the user. In the MCP OAuth flow, the client requests an access token intended for the document MCP server from the authorization server, requesting only read scopes where possible.",[7171,7172],"ai-security-mcp-authorization",{},[2955,7174,7175,7176,7179],{},"The client sends the token in the ",[2996,7177,7178],{},"Authorization: Bearer \u003Ctoken>"," header. The server must verify that it is valid, was issued for this service, and grants the permissions needed for the operation.",[2955,7181,7182],{},"If the document MCP server also calls other business APIs, obtain suitable credentials through authorization methods supported by those APIs. Do not pass the client's MCP access token through directly.",[2959,7184],{},[2950,7186,7188],{"id":7187},"questions-and-answers","❓ Questions and answers",[2955,7190,7191,7192,7194],{},"Q1: Can two MCP servers offering ",[2996,7193,3065],{}," share one approval record?",[2955,7196,7197],{},"No. Matching names do not imply matching provenance, definitions, or permissions. Identify tools by service and tool name, and route calls to the corresponding approved connection.",[2959,7199],{},[2950,7201,7203],{"id":7202},"exercise","🧪 Exercise",[2955,7205,7206,7207,7210,7211,7047,7213,7215],{},"Register ",[2996,7208,7209],{},"search_documents"," on the test server without changing client approval records. Restart the server, change the final tool call in ",[2996,7212,5419],{},[2996,7214,7209],{},", and run the test.",[2955,7217,7218,7219,7221,7222,3321],{},"Acceptance criteria: The allowed list still contains only ",[2996,7220,3065],{},", reading succeeds, and the final output is ",[2996,7223,7224],{},"Tool call forbidden: search_documents",[2959,7226],{},[2955,7228,7229],{},"🎉 You can now apply safeguards to MCP connections and detect tool definition changes.",[7231,7232,7233],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}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 .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sYGMc, html code.shiki .sYGMc{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sIEYB, html code.shiki .sIEYB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s8pZq, html code.shiki .s8pZq{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sndM8, html code.shiki .sndM8{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s86vT, html code.shiki .s86vT{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s50WR, html code.shiki .s50WR{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .swgpB, html code.shiki .swgpB{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sd2Uz, html code.shiki .sd2Uz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sPKOg, html code.shiki .sPKOg{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sK9QF, html code.shiki .sK9QF{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .syuKq, html code.shiki .syuKq{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .smPcV, html code.shiki .smPcV{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":3171,"searchDepth":3237,"depth":3237,"links":7235},[7236,7237,7238,7243,7248,7253,7254,7255],{"id":2952,"depth":3237,"text":2953},{"id":2963,"depth":3237,"text":2964},{"id":3037,"depth":3237,"text":3038,"children":7239},[7240,7241,7242],{"id":3088,"depth":3263,"text":3089},{"id":3160,"depth":3263,"text":3161},{"id":4382,"depth":3263,"text":4383},{"id":4707,"depth":3237,"text":4708,"children":7244},[7245,7246,7247],{"id":4711,"depth":3263,"text":4712},{"id":5011,"depth":3263,"text":5012},{"id":5413,"depth":3263,"text":5414},{"id":5796,"depth":3237,"text":5797,"children":7249},[7250,7251,7252],{"id":5865,"depth":3263,"text":5866},{"id":6247,"depth":3263,"text":6248},{"id":6662,"depth":3263,"text":6663},{"id":7165,"depth":3237,"text":7166},{"id":7187,"depth":3237,"text":7188},{"id":7202,"depth":3237,"text":7203},"Connect safely to MCP servers over Streamable HTTP, restrict tool calls with allowlists and definition checks, and understand access token boundaries.","md",null,{},{"title":2928},{"title":2928,"description":7256},"wueVy9UR55",[7264,7266],{"title":2926,"path":2922,"stem":2923,"description":7265,"children":-1},"Use Qdrant to filter published knowledge, enforce document access permissions, revoke access, and build model context safely.",{"title":2932,"path":2933,"stem":2934,"description":7267,"children":-1},"Add server-side authorization, operation approval, and one-time execution checks to high-risk agent tool calls.",1796265442190]