[{"data":1,"prerenderedAt":5021},["ShallowReactive",2],{"docs-navigation:en":3,"content-page:docs:_asYXEqHuYVtKTXmGPy00TJDdvU3WNf4a1AnW6GOBLw":842,"content-page-surround:docs:_asYXEqHuYVtKTXmGPy00TJDdvU3WNf4a1AnW6GOBLw":5005,"i-logos:typescript-icon":5010,"i-lucide:braces":5014,"i-lucide:terminal":5017,"i-lucide:clipboard":5019},[4,41,110,540,643,708,772,837],{"title":5,"page":6,"canonicalKey":7,"locale":8,"id":9,"draft":6,"icon":10,"sidebar":11,"children":12},"Learn",false,"1","en","content:docs:1.overview:.navigation.yml","i-lucide-book-open","section",[13,20,27,34],{"title":14,"id":15,"canonicalKey":16,"locale":8,"draft":6,"navigation":17,"icon":18,"path":19},"Better Convex Nuxt","content:docs:1.overview:1.introduction.md","1\u002F1",{"icon":18},"i-lucide-orbit","\u002Fdocs\u002Foverview\u002Fintroduction",{"title":21,"id":22,"canonicalKey":23,"locale":8,"draft":6,"navigation":24,"icon":25,"path":26},"Who it is for","content:docs:1.overview:2.who-it-is-for.md","1\u002F2",{"icon":25},"i-lucide-users","\u002Fdocs\u002Foverview\u002Fwho-it-is-for",{"title":28,"id":29,"canonicalKey":30,"locale":8,"draft":6,"navigation":31,"icon":32,"path":33},"Limitations and trade-offs","content:docs:1.overview:3.limitations.md","1\u002F3",{"icon":32},"i-lucide-triangle-alert","\u002Fdocs\u002Foverview\u002Flimitations",{"title":35,"id":36,"canonicalKey":37,"locale":8,"draft":6,"navigation":38,"icon":39,"path":40},"Compare Nuxt integrations","content:docs:1.overview:4.comparison.md","1\u002F4",{"icon":39},"i-lucide-scale","\u002Fdocs\u002Foverview\u002Fcomparison",{"title":42,"page":6,"canonicalKey":43,"locale":8,"id":44,"draft":6,"icon":45,"children":46},"Get started","2","content:docs:2.get-started:.navigation.yml","i-lucide-rocket",[47,54,61,68,75,82,89,96,103],{"title":48,"id":49,"canonicalKey":50,"locale":8,"draft":6,"navigation":51,"icon":52,"path":53},"Choose your path","content:docs:2.get-started:1.choose-your-path.md","2\u002F1",{"icon":52},"i-lucide-signpost","\u002Fdocs\u002Fget-started\u002Fchoose-your-path",{"title":55,"id":56,"canonicalKey":57,"locale":8,"draft":6,"navigation":58,"icon":59,"path":60},"Installation","content:docs:2.get-started:2.installation.md","2\u002F2",{"icon":59},"i-lucide-download","\u002Fdocs\u002Fget-started\u002Finstallation",{"title":62,"id":63,"canonicalKey":64,"locale":8,"draft":6,"navigation":65,"icon":66,"path":67},"First real-time page","content:docs:2.get-started:3.first-realtime-page.md","2\u002F3",{"icon":66},"i-lucide-radio","\u002Fdocs\u002Fget-started\u002Ffirst-realtime-page",{"title":69,"id":70,"canonicalKey":71,"locale":8,"draft":6,"navigation":72,"icon":73,"path":74},"Complete and delete","content:docs:2.get-started:4.complete-and-delete.md","2\u002F4",{"icon":73},"i-lucide-square-check","\u002Fdocs\u002Fget-started\u002Fcomplete-and-delete",{"title":76,"id":77,"canonicalKey":78,"locale":8,"draft":6,"navigation":79,"icon":80,"path":81},"Add authentication","content:docs:2.get-started:5.add-authentication.md","2\u002F5",{"icon":80},"i-lucide-log-in","\u002Fdocs\u002Fget-started\u002Fadd-authentication",{"title":83,"id":84,"canonicalKey":85,"locale":8,"draft":6,"navigation":86,"icon":87,"path":88},"Protect data","content:docs:2.get-started:6.protect-data.md","2\u002F6",{"icon":87},"i-lucide-shield-check","\u002Fdocs\u002Fget-started\u002Fprotect-data",{"title":90,"id":91,"canonicalKey":92,"locale":8,"draft":6,"navigation":93,"icon":94,"path":95},"Project structure","content:docs:2.get-started:7.project-structure.md","2\u002F7",{"icon":94},"i-lucide-folder-tree","\u002Fdocs\u002Fget-started\u002Fproject-structure",{"title":97,"id":98,"canonicalKey":99,"locale":8,"draft":6,"navigation":100,"icon":101,"path":102},"Next steps","content:docs:2.get-started:8.next-steps.md","2\u002F8",{"icon":101},"i-lucide-arrow-right","\u002Fdocs\u002Fget-started\u002Fnext-steps",{"title":104,"id":105,"canonicalKey":106,"locale":8,"draft":6,"navigation":107,"icon":108,"path":109},"Plain Vue and Vite","content:docs:2.get-started:9.plain-vue.md","2\u002F9",{"icon":108},"i-lucide-panels-top-left","\u002Fdocs\u002Fget-started\u002Fplain-vue",{"title":111,"page":6,"canonicalKey":112,"locale":8,"id":113,"draft":6,"icon":114,"sidebar":11,"children":115},"Build","3","content:docs:3.build:.navigation.yml","i-lucide-blocks",[116,154,200,321,353,385,431,481],{"title":117,"page":6,"canonicalKey":118,"locale":8,"children":119},"Queries","3\u002F1",[120,126,133,140,147],{"title":117,"id":121,"canonicalKey":122,"locale":8,"draft":6,"navigation":123,"icon":124,"path":125},"content:docs:3.build:1.queries:1.queries.md","3\u002F1\u002F1",{"icon":124},"i-lucide-database","\u002Fdocs\u002Fbuild\u002Fqueries\u002Fqueries",{"title":127,"id":128,"canonicalKey":129,"locale":8,"draft":6,"navigation":130,"icon":131,"path":132},"Reactive arguments","content:docs:3.build:1.queries:2.reactive-arguments.md","3\u002F1\u002F2",{"icon":131},"i-lucide-sliders-horizontal","\u002Fdocs\u002Fbuild\u002Fqueries\u002Freactive-arguments",{"title":134,"id":135,"canonicalKey":136,"locale":8,"draft":6,"navigation":137,"icon":138,"path":139},"Loading and stale data","content:docs:3.build:1.queries:3.loading-and-stale-data.md","3\u002F1\u002F3",{"icon":138},"i-lucide-loader-circle","\u002Fdocs\u002Fbuild\u002Fqueries\u002Floading-and-stale-data",{"title":141,"id":142,"canonicalKey":143,"locale":8,"draft":6,"navigation":144,"icon":145,"path":146},"Query execution options","content:docs:3.build:1.queries:4.ssr-options.md","3\u002F1\u002F4",{"icon":145},"i-lucide-server-cog","\u002Fdocs\u002Fbuild\u002Fqueries\u002Fssr-options",{"title":148,"id":149,"canonicalKey":150,"locale":8,"draft":6,"navigation":151,"icon":152,"path":153},"Pagination","content:docs:3.build:1.queries:6.pagination.md","3\u002F1\u002F6",{"icon":152},"i-lucide-list-plus","\u002Fdocs\u002Fbuild\u002Fqueries\u002Fpagination",{"title":155,"page":6,"canonicalKey":156,"locale":8,"children":157},"Write Data","3\u002F2",[158,165,172,179,186,193],{"title":159,"id":160,"canonicalKey":161,"locale":8,"draft":6,"navigation":162,"icon":163,"path":164},"Mutations","content:docs:3.build:2.write-data:1.mutations.md","3\u002F2\u002F1",{"icon":163},"i-lucide-square-pen","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fmutations",{"title":166,"id":167,"canonicalKey":168,"locale":8,"draft":6,"navigation":169,"icon":170,"path":171},"Actions","content:docs:3.build:2.write-data:2.actions.md","3\u002F2\u002F2",{"icon":170},"i-lucide-zap","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Factions",{"title":173,"id":174,"canonicalKey":175,"locale":8,"draft":6,"navigation":176,"icon":177,"path":178},"Optimistic updates","content:docs:3.build:2.write-data:3.optimistic-updates.md","3\u002F2\u002F3",{"icon":177},"i-lucide-gauge","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Foptimistic-updates",{"title":180,"id":181,"canonicalKey":182,"locale":8,"draft":6,"navigation":183,"icon":184,"path":185},"Concurrent operations","content:docs:3.build:2.write-data:4.concurrent-operations.md","3\u002F2\u002F4",{"icon":184},"i-lucide-git-fork","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fconcurrent-operations",{"title":187,"id":188,"canonicalKey":189,"locale":8,"draft":6,"navigation":190,"icon":191,"path":192},"Form submissions","content:docs:3.build:2.write-data:5.forms.md","3\u002F2\u002F5",{"icon":191},"i-lucide-list-checks","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fforms",{"title":194,"id":195,"canonicalKey":196,"locale":8,"draft":6,"navigation":197,"icon":198,"path":199},"Multi-step operations","content:docs:3.build:2.write-data:6.multi-step-operations.md","3\u002F2\u002F6",{"icon":198},"i-lucide-list-ordered","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fmulti-step-operations",{"title":201,"page":6,"canonicalKey":202,"locale":8,"children":203},"Authentication","3\u002F3",[204,210,217,224,230,237,244,251,258,265,272,279,286,293,300,307,314],{"title":201,"id":205,"canonicalKey":206,"locale":8,"draft":6,"navigation":207,"icon":208,"path":209},"content:docs:3.build:3.authentication:1.overview.md","3\u002F3\u002F1",{"icon":208},"i-lucide-shield","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Foverview",{"title":211,"id":212,"canonicalKey":213,"locale":8,"draft":6,"navigation":214,"icon":215,"path":216},"Better Auth setup","content:docs:3.build:3.authentication:2.better-auth-setup.md","3\u002F3\u002F2",{"icon":215},"i-lucide-settings-2","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbetter-auth-setup",{"title":218,"id":219,"canonicalKey":220,"locale":8,"draft":6,"navigation":221,"icon":222,"path":223},"Auth state and user data","content:docs:3.build:3.authentication:3.auth-state-and-user.md","3\u002F3\u002F3",{"icon":222},"i-lucide-user-round","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fauth-state-and-user",{"title":225,"id":226,"canonicalKey":227,"locale":8,"draft":6,"navigation":228,"icon":80,"path":229},"Sign in and sign out","content:docs:3.build:3.authentication:4.sign-in-and-sign-out.md","3\u002F3\u002F4",{"icon":80},"\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fsign-in-and-sign-out",{"title":231,"id":232,"canonicalKey":233,"locale":8,"draft":6,"navigation":234,"icon":235,"path":236},"Route protection","content:docs:3.build:3.authentication:5.route-protection.md","3\u002F3\u002F5",{"icon":235},"i-lucide-route","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Froute-protection",{"title":238,"id":239,"canonicalKey":240,"locale":8,"draft":6,"navigation":241,"icon":242,"path":243},"Backend authorization","content:docs:3.build:3.authentication:6.backend-authorization.md","3\u002F3\u002F6",{"icon":242},"i-lucide-lock-keyhole","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbackend-authorization",{"title":245,"id":246,"canonicalKey":247,"locale":8,"draft":6,"navigation":248,"icon":249,"path":250},"Better Auth plugins","content:docs:3.build:3.authentication:7.better-auth-plugins.md","3\u002F3\u002F7",{"icon":249},"i-lucide-plug","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbetter-auth-plugins",{"title":252,"id":253,"canonicalKey":254,"locale":8,"draft":6,"navigation":255,"icon":256,"path":257},"Custom user fields","content:docs:3.build:3.authentication:8.custom-user-fields.md","3\u002F3\u002F8",{"icon":256},"i-lucide-user-cog","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fcustom-user-fields",{"title":259,"id":260,"canonicalKey":261,"locale":8,"draft":6,"navigation":262,"icon":263,"path":264},"User synchronization","content:docs:3.build:3.authentication:9.user-synchronization.md","3\u002F3\u002F9",{"icon":263},"i-lucide-refresh-ccw","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fuser-synchronization",{"title":266,"id":267,"canonicalKey":268,"locale":8,"draft":6,"navigation":269,"icon":270,"path":271},"Delegated OAuth and MCP","content:docs:3.build:3.authentication:10.delegated-oauth-and-mcp.md","3\u002F3\u002F10",{"icon":270},"i-lucide-bot","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fdelegated-oauth-and-mcp",{"title":273,"id":274,"canonicalKey":275,"locale":8,"draft":6,"navigation":276,"icon":277,"path":278},"Transactional auth email","content:docs:3.build:3.authentication:11.transactional-email.md","3\u002F3\u002F11",{"icon":277},"i-lucide-mail","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Ftransactional-email",{"title":280,"id":281,"canonicalKey":282,"locale":8,"draft":6,"navigation":283,"icon":284,"path":285},"Social sign-in","content:docs:3.build:3.authentication:12.social-sign-in.md","3\u002F3\u002F12",{"icon":284},"i-lucide-github","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fsocial-sign-in",{"title":287,"id":288,"canonicalKey":289,"locale":8,"draft":6,"navigation":290,"icon":291,"path":292},"Better Auth plugin support","content:docs:3.build:3.authentication:13.better-auth-plugin-support.md","3\u002F3\u002F13",{"icon":291},"i-lucide-puzzle","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbetter-auth-plugin-support",{"title":294,"id":295,"canonicalKey":296,"locale":8,"draft":6,"navigation":297,"icon":298,"path":299},"Cacheable public pages","content:docs:3.build:3.authentication:14.cacheable-public-pages.md","3\u002F3\u002F14",{"icon":298},"i-lucide-globe","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fcacheable-public-pages",{"title":301,"id":302,"canonicalKey":303,"locale":8,"draft":6,"navigation":304,"icon":305,"path":306},"Several sites on one deployment","content:docs:3.build:3.authentication:15.multiple-site-origins.md","3\u002F3\u002F15",{"icon":305},"i-lucide-network","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fmultiple-site-origins",{"title":308,"id":309,"canonicalKey":310,"locale":8,"draft":6,"navigation":311,"icon":312,"path":313},"Account deletion","content:docs:3.build:3.authentication:16.account-deletion.md","3\u002F3\u002F16",{"icon":312},"i-lucide-user-x","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Faccount-deletion",{"title":315,"id":316,"canonicalKey":317,"locale":8,"draft":6,"navigation":318,"icon":319,"path":320},"Company sign-in (OIDC)","content:docs:3.build:3.authentication:17.company-sign-in.md","3\u002F3\u002F17",{"icon":319},"i-lucide-building-2","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fcompany-sign-in",{"title":322,"page":6,"canonicalKey":323,"locale":8,"children":324},"Server","3\u002F4",[325,332,339,346],{"title":326,"id":327,"canonicalKey":328,"locale":8,"draft":6,"navigation":329,"icon":330,"path":331},"serverConvex","content:docs:3.build:4.server:1.server-convex.md","3\u002F4\u002F1",{"icon":330},"i-lucide-server","\u002Fdocs\u002Fbuild\u002Fserver\u002Fserver-convex",{"title":333,"id":334,"canonicalKey":335,"locale":8,"draft":6,"navigation":336,"icon":337,"path":338},"Server routes","content:docs:3.build:4.server:2.server-routes.md","3\u002F4\u002F2",{"icon":337},"i-lucide-waypoints","\u002Fdocs\u002Fbuild\u002Fserver\u002Fserver-routes",{"title":340,"id":341,"canonicalKey":342,"locale":8,"draft":6,"navigation":343,"icon":344,"path":345},"Webhooks and jobs","content:docs:3.build:4.server:3.webhooks-and-jobs.md","3\u002F4\u002F3",{"icon":344},"i-lucide-webhook","\u002Fdocs\u002Fbuild\u002Fserver\u002Fwebhooks-and-jobs",{"title":347,"id":348,"canonicalKey":349,"locale":8,"draft":6,"navigation":350,"icon":351,"path":352},"Credentials and server security","content:docs:3.build:4.server:4.credentials-and-security.md","3\u002F4\u002F4",{"icon":351},"i-lucide-key-round","\u002Fdocs\u002Fbuild\u002Fserver\u002Fcredentials-and-security",{"title":354,"page":6,"canonicalKey":355,"locale":8,"children":356},"Files","3\u002F5",[357,364,371,378],{"title":358,"id":359,"canonicalKey":360,"locale":8,"draft":6,"navigation":361,"icon":362,"path":363},"Upload files","content:docs:3.build:5.files:1.upload-files.md","3\u002F5\u002F1",{"icon":362},"i-lucide-upload","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fupload-files",{"title":365,"id":366,"canonicalKey":367,"locale":8,"draft":6,"navigation":368,"icon":369,"path":370},"Storage URLs","content:docs:3.build:5.files:3.storage-urls.md","3\u002F5\u002F3",{"icon":369},"i-lucide-link","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fstorage-urls",{"title":372,"id":373,"canonicalKey":374,"locale":8,"draft":6,"navigation":375,"icon":376,"path":377},"File validation and deletion","content:docs:3.build:5.files:4.validation-and-deletion.md","3\u002F5\u002F4",{"icon":376},"i-lucide-file-x","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fvalidation-and-deletion",{"title":379,"id":380,"canonicalKey":381,"locale":8,"draft":6,"navigation":382,"icon":383,"path":384},"Private downloads","content:docs:3.build:5.files:5.private-downloads.md","3\u002F5\u002F5",{"icon":383},"i-lucide-file-lock","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fprivate-downloads",{"title":386,"page":6,"canonicalKey":387,"locale":8,"children":388},"Application Behavior","3\u002F6",[389,396,403,410,417,424],{"title":390,"id":391,"canonicalKey":392,"locale":8,"draft":6,"navigation":393,"icon":394,"path":395},"Connection state","content:docs:3.build:6.application-behavior:1.connection-state.md","3\u002F6\u002F1",{"icon":394},"i-lucide-wifi","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fconnection-state",{"title":397,"id":398,"canonicalKey":399,"locale":8,"draft":6,"navigation":400,"icon":401,"path":402},"Error handling","content:docs:3.build:6.application-behavior:2.error-handling.md","3\u002F6\u002F2",{"icon":401},"i-lucide-circle-alert","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Ferror-handling",{"title":404,"id":405,"canonicalKey":406,"locale":8,"draft":6,"navigation":407,"icon":408,"path":409},"Logging","content:docs:3.build:6.application-behavior:3.logging.md","3\u002F6\u002F3",{"icon":408},"i-lucide-scroll-text","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Flogging",{"title":411,"id":412,"canonicalKey":413,"locale":8,"draft":6,"navigation":414,"icon":415,"path":416},"DevTools","content:docs:3.build:6.application-behavior:4.devtools.md","3\u002F6\u002F4",{"icon":415},"i-lucide-wrench","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fdevtools",{"title":418,"id":419,"canonicalKey":420,"locale":8,"draft":6,"navigation":421,"icon":422,"path":423},"Performance","content:docs:3.build:6.application-behavior:5.performance.md","3\u002F6\u002F5",{"icon":422},"i-lucide-chart-no-axes-combined","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fperformance",{"title":425,"id":426,"canonicalKey":427,"locale":8,"draft":6,"navigation":428,"icon":429,"path":430},"Start the client on demand","content:docs:3.build:6.application-behavior:6.on-demand-client.md","3\u002F6\u002F6",{"icon":429},"i-lucide-power","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fon-demand-client",{"title":432,"page":6,"canonicalKey":433,"locale":8,"id":434,"draft":6,"icon":270,"children":435},"Agents and MCP","3\u002F7","content:docs:3.build:7.agents:.navigation.yml",[436,442,449,456,463,469,475],{"title":437,"id":438,"canonicalKey":439,"locale":8,"draft":6,"navigation":440,"icon":415,"path":441},"Tools and approvals","content:docs:3.build:7.agents:1.tools-and-approvals.md","3\u002F7\u002F1",{"icon":415},"\u002Fdocs\u002Fbuild\u002Fagents\u002Ftools-and-approvals",{"title":443,"id":444,"canonicalKey":445,"locale":8,"draft":6,"navigation":446,"icon":447,"path":448},"The MCP door","content:docs:3.build:7.agents:2.mcp-door.md","3\u002F7\u002F2",{"icon":447},"i-lucide-door-open","\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp-door",{"title":450,"id":451,"canonicalKey":452,"locale":8,"draft":6,"navigation":453,"icon":454,"path":455},"Limits","content:docs:3.build:7.agents:3.limits.md","3\u002F7\u002F3",{"icon":454},"i-lucide-traffic-cone","\u002Fdocs\u002Fbuild\u002Fagents\u002Flimits",{"title":457,"id":458,"canonicalKey":459,"locale":8,"draft":6,"navigation":460,"icon":461,"path":462},"MCP on Convex","content:docs:3.build:7.agents:4.mcp.md","3\u002F7\u002F4",{"icon":461},"i-lucide-plug-zap","\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp",{"title":464,"id":465,"canonicalKey":466,"locale":8,"draft":6,"navigation":467,"icon":249,"path":468},"Add MCP to your application","content:docs:3.build:7.agents:5.mcp-application.md","3\u002F7\u002F5",{"icon":249},"\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp-application",{"title":470,"id":471,"canonicalKey":472,"locale":8,"draft":6,"navigation":473,"icon":369,"path":474},"Connect ChatGPT and Claude","content:docs:3.build:7.agents:6.connect-chatgpt-and-claude.md","3\u002F7\u002F6",{"icon":369},"\u002Fdocs\u002Fbuild\u002Fagents\u002Fconnect-chatgpt-and-claude",{"title":476,"id":477,"canonicalKey":478,"locale":8,"draft":6,"navigation":479,"icon":108,"path":480},"MCP Apps","content:docs:3.build:7.agents:7.mcp-apps.md","3\u002F7\u002F7",{"icon":108},"\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp-apps",{"title":482,"page":6,"canonicalKey":483,"locale":8,"id":484,"draft":6,"icon":485,"children":486},"Operations and policy","3\u002F8","content:docs:3.build:8.functions:.navigation.yml","i-lucide-shield-half",[487,494,500,507,514,521,527,534],{"title":488,"id":489,"canonicalKey":490,"locale":8,"draft":6,"navigation":491,"icon":492,"path":493},"Start here","content:docs:3.build:8.functions:1.start-here.md","3\u002F8\u002F1",{"icon":492},"i-lucide-flag","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fstart-here",{"title":495,"id":496,"canonicalKey":497,"locale":8,"draft":6,"navigation":498,"icon":39,"path":499},"Policy and roles","content:docs:3.build:8.functions:2.policy-and-roles.md","3\u002F8\u002F2",{"icon":39},"\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fpolicy-and-roles",{"title":501,"id":502,"canonicalKey":503,"locale":8,"draft":6,"navigation":504,"icon":505,"path":506},"Row rules","content:docs:3.build:8.functions:3.row-rules.md","3\u002F8\u002F3",{"icon":505},"i-lucide-rows-3","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Frow-rules",{"title":508,"id":509,"canonicalKey":510,"locale":8,"draft":6,"navigation":511,"icon":512,"path":513},"Internal operations","content:docs:3.build:8.functions:4.internal-operations.md","3\u002F8\u002F4",{"icon":512},"i-lucide-workflow","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Finternal-operations",{"title":515,"id":516,"canonicalKey":517,"locale":8,"draft":6,"navigation":518,"icon":519,"path":520},"Test your app","content:docs:3.build:8.functions:5.testing.md","3\u002F8\u002F5",{"icon":519},"i-lucide-flask-conical","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Ftesting",{"title":522,"id":523,"canonicalKey":524,"locale":8,"draft":6,"navigation":525,"icon":177,"path":526},"Cost","content:docs:3.build:8.functions:6.cost.md","3\u002F8\u002F6",{"icon":177},"\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fcost",{"title":528,"id":529,"canonicalKey":530,"locale":8,"draft":6,"navigation":531,"icon":532,"path":533},"Threat model","content:docs:3.build:8.functions:7.threat-model.md","3\u002F8\u002F7",{"icon":532},"i-lucide-shield-alert","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fthreat-model",{"title":535,"id":536,"canonicalKey":537,"locale":8,"draft":6,"navigation":538,"icon":408,"path":539},"Rate limits, audit log and call events","content:docs:3.build:8.functions:8.limits-and-audit.md","3\u002F8\u002F8",{"icon":408},"\u002Fdocs\u002Fbuild\u002Ffunctions\u002Flimits-and-audit",{"title":541,"page":6,"canonicalKey":542,"locale":8,"id":543,"draft":6,"icon":544,"children":545},"Recipes","4","content:docs:4.recipes:.navigation.yml","i-lucide-cooking-pot",[546,553,560,567,574,581,587,593,599,605,612,619,626,633,638],{"title":547,"id":548,"canonicalKey":549,"locale":8,"draft":6,"navigation":550,"icon":551,"path":552},"Protected dashboard","content:docs:4.recipes:1.protected-dashboard.md","4\u002F1",{"icon":551},"i-lucide-layout-dashboard","\u002Fdocs\u002Frecipes\u002Fprotected-dashboard",{"title":554,"id":555,"canonicalKey":556,"locale":8,"draft":6,"navigation":557,"icon":558,"path":559},"Real-time feed","content:docs:4.recipes:2.realtime-feed.md","4\u002F2",{"icon":558},"i-lucide-messages-square","\u002Fdocs\u002Frecipes\u002Frealtime-feed",{"title":561,"id":562,"canonicalKey":563,"locale":8,"draft":6,"navigation":564,"icon":565,"path":566},"Optimistic todo list","content:docs:4.recipes:3.optimistic-todo-list.md","4\u002F3",{"icon":565},"i-lucide-list-todo","\u002Fdocs\u002Frecipes\u002Foptimistic-todo-list",{"title":568,"id":569,"canonicalKey":570,"locale":8,"draft":6,"navigation":571,"icon":572,"path":573},"Infinite scroll","content:docs:4.recipes:4.infinite-scroll.md","4\u002F4",{"icon":572},"i-lucide-mouse","\u002Fdocs\u002Frecipes\u002Finfinite-scroll",{"title":575,"id":576,"canonicalKey":577,"locale":8,"draft":6,"navigation":578,"icon":579,"path":580},"File upload form","content:docs:4.recipes:5.file-upload-form.md","4\u002F5",{"icon":579},"i-lucide-file-up","\u002Fdocs\u002Frecipes\u002Ffile-upload-form",{"title":582,"id":583,"canonicalKey":584,"locale":8,"draft":6,"navigation":585,"icon":319,"path":586},"Organization permissions","content:docs:4.recipes:6.organization-permissions.md","4\u002F6",{"icon":319},"\u002Fdocs\u002Frecipes\u002Forganization-permissions",{"title":588,"id":589,"canonicalKey":590,"locale":8,"draft":6,"navigation":591,"icon":330,"path":592},"Authenticated server route","content:docs:4.recipes:7.authenticated-server-route.md","4\u002F7",{"icon":330},"\u002Fdocs\u002Frecipes\u002Fauthenticated-server-route",{"title":594,"id":595,"canonicalKey":596,"locale":8,"draft":6,"navigation":597,"icon":108,"path":598},"Public and private data","content:docs:4.recipes:8.public-and-private-data.md","4\u002F8",{"icon":108},"\u002Fdocs\u002Frecipes\u002Fpublic-and-private-data",{"title":600,"id":601,"canonicalKey":602,"locale":8,"draft":6,"navigation":603,"icon":519,"path":604},"Test signed-in screens","content:docs:4.recipes:9.component-testing.md","4\u002F9",{"icon":519},"\u002Fdocs\u002Frecipes\u002Fcomponent-testing",{"title":606,"id":607,"canonicalKey":608,"locale":8,"draft":6,"navigation":609,"icon":610,"path":611},"Time-based data","content:docs:4.recipes:10.time-based-data.md","4\u002F10",{"icon":610},"i-lucide-clock","\u002Fdocs\u002Frecipes\u002Ftime-based-data",{"title":613,"id":614,"canonicalKey":615,"locale":8,"draft":6,"navigation":616,"icon":617,"path":618},"A list of queries","content:docs:4.recipes:11.dynamic-query-list.md","4\u002F11",{"icon":617},"i-lucide-list-tree","\u002Fdocs\u002Frecipes\u002Fdynamic-query-list",{"title":620,"id":621,"canonicalKey":622,"locale":8,"draft":6,"navigation":623,"icon":624,"path":625},"Error messages","content:docs:4.recipes:12.error-messages.md","4\u002F12",{"icon":624},"i-lucide-message-circle-warning","\u002Fdocs\u002Frecipes\u002Ferror-messages",{"title":627,"id":628,"canonicalKey":629,"locale":8,"draft":6,"navigation":630,"icon":631,"path":632},"Several file uploads","content:docs:4.recipes:13.multiple-file-uploads.md","4\u002F13",{"icon":631},"i-lucide-files","\u002Fdocs\u002Frecipes\u002Fmultiple-file-uploads",{"title":634,"id":635,"canonicalKey":636,"locale":8,"draft":6,"path":637},"Guest users","content:docs:4.recipes:15.guest-users.md","4\u002F15","\u002Fdocs\u002Frecipes\u002Fguest-users",{"title":639,"id":640,"canonicalKey":641,"locale":8,"draft":6,"path":642},"Sign-in link","content:docs:4.recipes:16.sign-in-link.md","4\u002F16","\u002Fdocs\u002Frecipes\u002Fsign-in-link",{"title":644,"page":6,"canonicalKey":645,"locale":8,"id":646,"draft":6,"icon":647,"children":648},"Concepts","5","content:docs:5.concepts:.navigation.yml","i-lucide-brain",[649,655,661,668,674,681,687,694,701],{"title":650,"id":651,"canonicalKey":652,"locale":8,"draft":6,"navigation":653,"icon":647,"path":654},"Mental model","content:docs:5.concepts:1.mental-model.md","5\u002F1",{"icon":647},"\u002Fdocs\u002Fconcepts\u002Fmental-model",{"title":656,"id":657,"canonicalKey":658,"locale":8,"draft":6,"navigation":659,"icon":235,"path":660},"Request lifecycle","content:docs:5.concepts:2.request-lifecycle.md","5\u002F2",{"icon":235},"\u002Fdocs\u002Fconcepts\u002Frequest-lifecycle",{"title":662,"id":663,"canonicalKey":664,"locale":8,"draft":6,"navigation":665,"icon":666,"path":667},"SSR, hydration, and real-time","content:docs:5.concepts:3.ssr-hydration-realtime.md","5\u002F3",{"icon":666},"i-lucide-refresh-cw","\u002Fdocs\u002Fconcepts\u002Fssr-hydration-realtime",{"title":669,"id":670,"canonicalKey":671,"locale":8,"draft":6,"navigation":672,"icon":124,"path":673},"Query state and caching","content:docs:5.concepts:4.query-ownership-and-caching.md","5\u002F4",{"icon":124},"\u002Fdocs\u002Fconcepts\u002Fquery-ownership-and-caching",{"title":675,"id":676,"canonicalKey":677,"locale":8,"draft":6,"navigation":678,"icon":679,"path":680},"Authentication and identity","content:docs:5.concepts:5.authentication-and-identity.md","5\u002F5",{"icon":679},"i-lucide-fingerprint","\u002Fdocs\u002Fconcepts\u002Fauthentication-and-identity",{"title":682,"id":683,"canonicalKey":684,"locale":8,"draft":6,"navigation":685,"icon":108,"path":686},"Server and client boundaries","content:docs:5.concepts:6.server-and-client-boundaries.md","5\u002F6",{"icon":108},"\u002Fdocs\u002Fconcepts\u002Fserver-and-client-boundaries",{"title":688,"id":689,"canonicalKey":690,"locale":8,"draft":6,"navigation":691,"icon":692,"path":693},"Errors and failures","content:docs:5.concepts:7.errors-and-failures.md","5\u002F7",{"icon":692},"i-lucide-circle-x","\u002Fdocs\u002Fconcepts\u002Ferrors-and-failures",{"title":695,"id":696,"canonicalKey":697,"locale":8,"draft":6,"navigation":698,"icon":699,"path":700},"Design decisions","content:docs:5.concepts:8.design-decisions.md","5\u002F8",{"icon":699},"i-lucide-git-branch","\u002Fdocs\u002Fconcepts\u002Fdesign-decisions",{"title":702,"id":703,"canonicalKey":704,"locale":8,"draft":6,"navigation":705,"icon":706,"path":707},"Glossary","content:docs:5.concepts:9.glossary.md","5\u002F9",{"icon":706},"i-lucide-book-a","\u002Fdocs\u002Fconcepts\u002Fglossary",{"title":709,"page":6,"canonicalKey":710,"locale":8,"id":711,"draft":6,"icon":215,"children":712},"Operations","6","content:docs:6.operations:.navigation.yml",[713,719,726,733,739,746,752,759,765],{"title":714,"id":715,"canonicalKey":716,"locale":8,"draft":6,"navigation":717,"icon":45,"path":718},"Deployment","content:docs:6.operations:1.deployment.md","6\u002F1",{"icon":45},"\u002Fdocs\u002Foperations\u002Fdeployment",{"title":720,"id":721,"canonicalKey":722,"locale":8,"draft":6,"navigation":723,"icon":724,"path":725},"Environment variables","content:docs:6.operations:2.environment-variables.md","6\u002F2",{"icon":724},"i-lucide-variable","\u002Fdocs\u002Foperations\u002Fenvironment-variables",{"title":727,"id":728,"canonicalKey":729,"locale":8,"draft":6,"navigation":730,"icon":731,"path":732},"Deploy to Vercel","content:docs:6.operations:3.deploy-to-vercel.md","6\u002F3",{"icon":731},"i-lucide-triangle","\u002Fdocs\u002Foperations\u002Fdeploy-to-vercel",{"title":734,"id":735,"canonicalKey":736,"locale":8,"draft":6,"navigation":737,"icon":415,"path":738},"Troubleshooting","content:docs:6.operations:4.troubleshooting.md","6\u002F4",{"icon":415},"\u002Fdocs\u002Foperations\u002Ftroubleshooting",{"title":740,"id":741,"canonicalKey":742,"locale":8,"draft":6,"navigation":743,"icon":744,"path":745},"Release compatibility","content:docs:6.operations:5.release-compatibility.md","6\u002F5",{"icon":744},"i-lucide-badge-check","\u002Fdocs\u002Foperations\u002Frelease-compatibility",{"title":747,"id":748,"canonicalKey":749,"locale":8,"draft":6,"navigation":750,"icon":87,"path":751},"Security model","content:docs:6.operations:6.security-model.md","6\u002F6",{"icon":87},"\u002Fdocs\u002Foperations\u002Fsecurity-model",{"title":753,"id":754,"canonicalKey":755,"locale":8,"draft":6,"navigation":756,"icon":757,"path":758},"Upgrade to 1.0","content:docs:6.operations:7.upgrade-to-1-0.md","6\u002F7",{"icon":757},"i-lucide-arrow-up-circle","\u002Fdocs\u002Foperations\u002Fupgrade-to-1-0",{"title":760,"id":761,"canonicalKey":762,"locale":8,"draft":6,"navigation":763,"icon":45,"path":764},"Before your app goes live","content:docs:6.operations:8.before-launch.md","6\u002F8",{"icon":45},"\u002Fdocs\u002Foperations\u002Fbefore-launch",{"title":766,"id":767,"canonicalKey":768,"locale":8,"draft":6,"navigation":769,"icon":770,"path":771},"Log streams and PostHog","content:docs:6.operations:9.log-streams.md","6\u002F9",{"icon":770},"i-lucide-activity","\u002Fdocs\u002Foperations\u002Flog-streams",{"title":773,"page":6,"canonicalKey":774,"locale":8,"id":775,"draft":6,"icon":776,"children":777},"Reference","7","content:docs:7.reference:.navigation.yml","i-lucide-braces",[778,784,790,796,803,810,817,823,830],{"title":779,"id":780,"canonicalKey":781,"locale":8,"draft":6,"navigation":782,"icon":776,"path":783},"Composables","content:docs:7.reference:1.composables.md","7\u002F1",{"icon":776},"\u002Fdocs\u002Freference\u002Fcomposables",{"title":785,"id":786,"canonicalKey":787,"locale":8,"draft":6,"navigation":788,"icon":330,"path":789},"Server API","content:docs:7.reference:3.server-api.md","7\u002F3",{"icon":330},"\u002Fdocs\u002Freference\u002Fserver-api",{"title":791,"id":792,"canonicalKey":793,"locale":8,"draft":6,"navigation":794,"icon":692,"path":795},"Error types","content:docs:7.reference:4.error-types.md","7\u002F4",{"icon":692},"\u002Fdocs\u002Freference\u002Ferror-types",{"title":797,"id":798,"canonicalKey":799,"locale":8,"draft":6,"navigation":800,"icon":801,"path":802},"Module configuration","content:docs:7.reference:5.module-configuration.md","7\u002F5",{"icon":801},"i-lucide-settings","\u002Fdocs\u002Freference\u002Fmodule-configuration",{"title":804,"id":805,"canonicalKey":806,"locale":8,"draft":6,"navigation":807,"icon":808,"path":809},"Package exports","content:docs:7.reference:6.package-exports.md","7\u002F6",{"icon":808},"i-lucide-package-open","\u002Fdocs\u002Freference\u002Fpackage-exports",{"title":811,"id":812,"canonicalKey":813,"locale":8,"draft":6,"navigation":814,"icon":815,"path":816},"API reference","content:docs:7.reference:7.api-surface.md","7\u002F7",{"icon":815},"i-lucide-list","\u002Fdocs\u002Freference\u002Fapi-surface",{"title":818,"id":819,"canonicalKey":820,"locale":8,"draft":6,"navigation":821,"icon":519,"path":822},"Experimental APIs","content:docs:7.reference:8.experimental.md","7\u002F8",{"icon":519},"\u002Fdocs\u002Freference\u002Fexperimental",{"title":824,"id":825,"canonicalKey":826,"locale":8,"draft":6,"navigation":827,"icon":828,"path":829},"Command line","content:docs:7.reference:9.cli.md","7\u002F9",{"icon":828},"i-lucide-terminal","\u002Fdocs\u002Freference\u002Fcli",{"title":831,"id":832,"canonicalKey":833,"locale":8,"draft":6,"navigation":834,"icon":835,"path":836},"Operation error codes","content:docs:7.reference:10.operation-error-codes.md","7\u002F10",{"icon":835},"i-lucide-octagon-alert","\u002Fdocs\u002Freference\u002Foperation-error-codes",{"title":838,"id":839,"canonicalKey":840,"locale":8,"draft":6,"path":841},"Better Convex documentation","content:docs:index.md","\u002F","\u002Fdocs",{"title":443,"description":843,"navigation":844,"body":845,"type":4993,"id":444,"canonicalKey":445,"draft":6,"partial":6,"locale":8,"collection":4994,"navigationFile":6,"file":4995,"route":5000,"resolution":5002},"Publish the tools of defineTools to ChatGPT, Claude and other MCP hosts from one Convex HTTP action.",{"icon":447},{"type":846,"children":847,"toc":4971},"root",[848,877,882,937,944,975,981,1562,1592,1598,1624,1629,1640,1657,1663,1673,1863,1869,1881,2914,2919,2925,2930,2974,2979,2986,3009,3032,3051,3057,3089,3542,3591,3602,3685,3691,3702,4399,4421,4427,4442,4602,4607,4658,4715,4721,4875,4890,4895,4921,4927,4950],{"type":849,"tag":850,"props":851,"children":852},"element","p",{},[853,860,862,867,869,875],{"type":849,"tag":854,"props":855,"children":856},"code",{},[857],{"type":858,"value":859},"text","createMcpServer",{"type":858,"value":861}," from ",{"type":849,"tag":854,"props":863,"children":864},{},[865],{"type":858,"value":866},"@lupinum\u002Fbetter-convex-agents\u002Fmcp",{"type":858,"value":868}," serves your tools\nto MCP hosts. A ",{"type":849,"tag":870,"props":871,"children":872},"strong",{},[873],{"type":858,"value":874},"host",{"type":858,"value":876}," is an AI application, such as ChatGPT or Claude, that\ncalls tools for a person. The person signs in to your application and grants\nthe host some scopes on a consent page. From then on, the host calls tools\nwith a short-lived OAuth access token.",{"type":849,"tag":850,"props":878,"children":879},{},[880],{"type":858,"value":881},"You need:",{"type":849,"tag":883,"props":884,"children":885},"ul",{},[886,899,911],{"type":849,"tag":887,"props":888,"children":889},"li",{},[890,892,897],{"type":858,"value":891},"the tools from ",{"type":849,"tag":893,"props":894,"children":895},"a",{"href":441},[896],{"type":858,"value":437},{"type":858,"value":898},";",{"type":849,"tag":887,"props":900,"children":901},{},[902,904,909],{"type":858,"value":903},"Better Auth with the MCP OAuth profile, and the OAuth tables in the auth\nschema (",{"type":849,"tag":893,"props":905,"children":906},{"href":468},[907],{"type":858,"value":908},"step 1 of Add MCP to your application",{"type":858,"value":910},");",{"type":849,"tag":887,"props":912,"children":913},{},[914,916,921,923,928,930,935],{"type":858,"value":915},"a login page and a consent page in your application. ",{"type":849,"tag":854,"props":917,"children":918},{},[919],{"type":858,"value":920},"starters\u002Fmcp-oauth-agent",{"type":858,"value":922},"\nhas both, in ",{"type":849,"tag":854,"props":924,"children":925},{},[926],{"type":858,"value":927},"app\u002Fpages\u002Flogin.vue",{"type":858,"value":929}," and ",{"type":849,"tag":854,"props":931,"children":932},{},[933],{"type":858,"value":934},"app\u002Fpages\u002Foauth\u002Fconsent.vue",{"type":858,"value":936},".",{"type":849,"tag":938,"props":939,"children":941},"h2",{"id":940},"turn-on-the-oauth-profile",[942],{"type":858,"value":943},"Turn on the OAuth profile",{"type":849,"tag":850,"props":945,"children":946},{},[947,949,953,955,960,962,967,969,973],{"type":858,"value":948},"Pass the policy's scopes to the auth factory, as in\n",{"type":849,"tag":893,"props":950,"children":951},{"href":493},[952],{"type":858,"value":488},{"type":858,"value":954},":\n",{"type":849,"tag":854,"props":956,"children":957},{},[958],{"type":858,"value":959},"oauth: { mcp: { scopes: consentScopes(policy), hosts: ['chatgpt', 'claude'] } }",{"type":858,"value":961},".\nThe profile admits only clients that an operator created, with PKCE and\nexplicit consent. Access tokens are bound to your ",{"type":849,"tag":854,"props":963,"children":964},{},[965],{"type":858,"value":966},"\u002Fmcp",{"type":858,"value":968}," URL and live for at\nmost ten minutes. ",{"type":849,"tag":893,"props":970,"children":971},{"href":271},[972],{"type":858,"value":266},{"type":858,"value":974},"\nexplains every setting.",{"type":849,"tag":938,"props":976,"children":978},{"id":977},"register-the-routes",[979],{"type":858,"value":980},"Register the routes",{"type":849,"tag":982,"props":983,"children":987},"pre",{"language":984,"filename":985,"class":986},"ts","convex\u002Fhttp.ts","shiki shiki-themes light-plus dark-plus dark:dark-plus",[988],{"type":849,"tag":854,"props":989,"children":991},{"class":990},"language-ts",[992,1031,1033,1062,1063,1066,1067,1100,1101,1130,1131,1134,1135,1164,1165,1224,1225,1228,1229,1259,1260,1269,1270,1345,1346,1404,1405,1413,1414,1422,1423,1479,1480,1532,1533,1540,1541,1544,1545],{"type":849,"tag":993,"props":994,"children":997},"span",{"class":995,"style":996},"line","display: inline",[998,1004,1010,1015,1020,1025],{"type":849,"tag":993,"props":999,"children":1001},{"style":1000},"color:#AF00DB;--shiki-dark:#C586C0",[1002],{"type":858,"value":1003},"import",{"type":849,"tag":993,"props":1005,"children":1007},{"style":1006},"color:#000000;--shiki-dark:#D4D4D4",[1008],{"type":858,"value":1009}," { ",{"type":849,"tag":993,"props":1011,"children":1013},{"style":1012},"color:#001080;--shiki-dark:#9CDCFE",[1014],{"type":858,"value":859},{"type":849,"tag":993,"props":1016,"children":1017},{"style":1006},[1018],{"type":858,"value":1019}," } ",{"type":849,"tag":993,"props":1021,"children":1022},{"style":1000},[1023],{"type":858,"value":1024},"from",{"type":849,"tag":993,"props":1026,"children":1028},{"style":1027},"color:#A31515;--shiki-dark:#CE9178",[1029],{"type":858,"value":1030}," '@lupinum\u002Fbetter-convex-agents\u002Fmcp'",{"type":858,"value":1032},"\n",{"type":849,"tag":993,"props":1034,"children":1035},{"class":995,"style":996},[1036,1040,1044,1049,1053,1057],{"type":849,"tag":993,"props":1037,"children":1038},{"style":1000},[1039],{"type":858,"value":1003},{"type":849,"tag":993,"props":1041,"children":1042},{"style":1006},[1043],{"type":858,"value":1009},{"type":849,"tag":993,"props":1045,"children":1046},{"style":1012},[1047],{"type":858,"value":1048},"httpRouter",{"type":849,"tag":993,"props":1050,"children":1051},{"style":1006},[1052],{"type":858,"value":1019},{"type":849,"tag":993,"props":1054,"children":1055},{"style":1000},[1056],{"type":858,"value":1024},{"type":849,"tag":993,"props":1058,"children":1059},{"style":1027},[1060],{"type":858,"value":1061}," 'convex\u002Fserver'",{"type":858,"value":1032},{"type":849,"tag":993,"props":1064,"children":1065},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":1068,"children":1069},{"class":995,"style":996},[1070,1074,1080,1085,1090,1095],{"type":849,"tag":993,"props":1071,"children":1072},{"style":1000},[1073],{"type":858,"value":1003},{"type":849,"tag":993,"props":1075,"children":1077},{"style":1076},"color:#0000FF;--shiki-dark:#569CD6",[1078],{"type":858,"value":1079}," *",{"type":849,"tag":993,"props":1081,"children":1082},{"style":1000},[1083],{"type":858,"value":1084}," as",{"type":849,"tag":993,"props":1086,"children":1087},{"style":1012},[1088],{"type":858,"value":1089}," agents",{"type":849,"tag":993,"props":1091,"children":1092},{"style":1000},[1093],{"type":858,"value":1094}," from",{"type":849,"tag":993,"props":1096,"children":1097},{"style":1027},[1098],{"type":858,"value":1099}," '.\u002Fagents'",{"type":858,"value":1032},{"type":849,"tag":993,"props":1102,"children":1103},{"class":995,"style":996},[1104,1108,1112,1117,1121,1125],{"type":849,"tag":993,"props":1105,"children":1106},{"style":1000},[1107],{"type":858,"value":1003},{"type":849,"tag":993,"props":1109,"children":1110},{"style":1006},[1111],{"type":858,"value":1009},{"type":849,"tag":993,"props":1113,"children":1114},{"style":1012},[1115],{"type":858,"value":1116},"auth",{"type":849,"tag":993,"props":1118,"children":1119},{"style":1006},[1120],{"type":858,"value":1019},{"type":849,"tag":993,"props":1122,"children":1123},{"style":1000},[1124],{"type":858,"value":1024},{"type":849,"tag":993,"props":1126,"children":1127},{"style":1027},[1128],{"type":858,"value":1129}," '.\u002Fauth'",{"type":858,"value":1032},{"type":849,"tag":993,"props":1132,"children":1133},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":1136,"children":1137},{"class":995,"style":996},[1138,1143,1149,1154,1159],{"type":849,"tag":993,"props":1139,"children":1140},{"style":1076},[1141],{"type":858,"value":1142},"const",{"type":849,"tag":993,"props":1144,"children":1146},{"style":1145},"color:#0070C1;--shiki-dark:#4FC1FF",[1147],{"type":858,"value":1148}," http",{"type":849,"tag":993,"props":1150,"children":1151},{"style":1006},[1152],{"type":858,"value":1153}," = ",{"type":849,"tag":993,"props":1155,"children":1157},{"style":1156},"color:#795E26;--shiki-dark:#DCDCAA",[1158],{"type":858,"value":1048},{"type":849,"tag":993,"props":1160,"children":1161},{"style":1006},[1162],{"type":858,"value":1163},"()",{"type":858,"value":1032},{"type":849,"tag":993,"props":1166,"children":1167},{"class":995,"style":996},[1168,1172,1177,1181,1185,1190,1194,1199,1204,1209,1214,1219],{"type":849,"tag":993,"props":1169,"children":1170},{"style":1076},[1171],{"type":858,"value":1142},{"type":849,"tag":993,"props":1173,"children":1174},{"style":1145},[1175],{"type":858,"value":1176}," mcp",{"type":849,"tag":993,"props":1178,"children":1179},{"style":1006},[1180],{"type":858,"value":1153},{"type":849,"tag":993,"props":1182,"children":1183},{"style":1156},[1184],{"type":858,"value":859},{"type":849,"tag":993,"props":1186,"children":1187},{"style":1006},[1188],{"type":858,"value":1189},"(",{"type":849,"tag":993,"props":1191,"children":1192},{"style":1012},[1193],{"type":858,"value":1116},{"type":849,"tag":993,"props":1195,"children":1196},{"style":1006},[1197],{"type":858,"value":1198},", { ",{"type":849,"tag":993,"props":1200,"children":1201},{"style":1012},[1202],{"type":858,"value":1203},"name:",{"type":849,"tag":993,"props":1205,"children":1206},{"style":1027},[1207],{"type":858,"value":1208}," 'Projects'",{"type":849,"tag":993,"props":1210,"children":1211},{"style":1006},[1212],{"type":858,"value":1213},", ",{"type":849,"tag":993,"props":1215,"children":1216},{"style":1012},[1217],{"type":858,"value":1218},"agents",{"type":849,"tag":993,"props":1220,"children":1221},{"style":1006},[1222],{"type":858,"value":1223}," })",{"type":858,"value":1032},{"type":849,"tag":993,"props":1226,"children":1227},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":1230,"children":1231},{"class":995,"style":996},[1232,1236,1240,1245,1249,1254],{"type":849,"tag":993,"props":1233,"children":1234},{"style":1012},[1235],{"type":858,"value":1116},{"type":849,"tag":993,"props":1237,"children":1238},{"style":1006},[1239],{"type":858,"value":936},{"type":849,"tag":993,"props":1241,"children":1242},{"style":1156},[1243],{"type":858,"value":1244},"registerRoutes",{"type":849,"tag":993,"props":1246,"children":1247},{"style":1006},[1248],{"type":858,"value":1189},{"type":849,"tag":993,"props":1250,"children":1251},{"style":1012},[1252],{"type":858,"value":1253},"http",{"type":849,"tag":993,"props":1255,"children":1256},{"style":1006},[1257],{"type":858,"value":1258},")",{"type":858,"value":1032},{"type":849,"tag":993,"props":1261,"children":1262},{"class":995,"style":996},[1263],{"type":849,"tag":993,"props":1264,"children":1266},{"style":1265},"color:#008000;--shiki-dark:#6A9955",[1267],{"type":858,"value":1268},"\u002F\u002F GET and DELETE reach the handler's 405 answer instead of a router 404.",{"type":858,"value":1032},{"type":849,"tag":993,"props":1271,"children":1272},{"class":995,"style":996},[1273,1278,1283,1287,1292,1297,1302,1307,1311,1316,1320,1325,1330,1335,1340],{"type":849,"tag":993,"props":1274,"children":1275},{"style":1000},[1276],{"type":858,"value":1277},"for",{"type":849,"tag":993,"props":1279,"children":1280},{"style":1006},[1281],{"type":858,"value":1282}," (",{"type":849,"tag":993,"props":1284,"children":1285},{"style":1076},[1286],{"type":858,"value":1142},{"type":849,"tag":993,"props":1288,"children":1289},{"style":1145},[1290],{"type":858,"value":1291}," method",{"type":849,"tag":993,"props":1293,"children":1294},{"style":1076},[1295],{"type":858,"value":1296}," of",{"type":849,"tag":993,"props":1298,"children":1299},{"style":1006},[1300],{"type":858,"value":1301}," [",{"type":849,"tag":993,"props":1303,"children":1304},{"style":1027},[1305],{"type":858,"value":1306},"'POST'",{"type":849,"tag":993,"props":1308,"children":1309},{"style":1006},[1310],{"type":858,"value":1213},{"type":849,"tag":993,"props":1312,"children":1313},{"style":1027},[1314],{"type":858,"value":1315},"'GET'",{"type":849,"tag":993,"props":1317,"children":1318},{"style":1006},[1319],{"type":858,"value":1213},{"type":849,"tag":993,"props":1321,"children":1322},{"style":1027},[1323],{"type":858,"value":1324},"'DELETE'",{"type":849,"tag":993,"props":1326,"children":1327},{"style":1006},[1328],{"type":858,"value":1329},"] ",{"type":849,"tag":993,"props":1331,"children":1332},{"style":1000},[1333],{"type":858,"value":1334},"as",{"type":849,"tag":993,"props":1336,"children":1337},{"style":1076},[1338],{"type":858,"value":1339}," const",{"type":849,"tag":993,"props":1341,"children":1342},{"style":1006},[1343],{"type":858,"value":1344},") {",{"type":858,"value":1032},{"type":849,"tag":993,"props":1347,"children":1348},{"class":995,"style":996},[1349,1354,1358,1363,1368,1373,1378,1382,1387,1391,1396,1400],{"type":849,"tag":993,"props":1350,"children":1351},{"style":1012},[1352],{"type":858,"value":1353},"  http",{"type":849,"tag":993,"props":1355,"children":1356},{"style":1006},[1357],{"type":858,"value":936},{"type":849,"tag":993,"props":1359,"children":1360},{"style":1156},[1361],{"type":858,"value":1362},"route",{"type":849,"tag":993,"props":1364,"children":1365},{"style":1006},[1366],{"type":858,"value":1367},"({ ",{"type":849,"tag":993,"props":1369,"children":1370},{"style":1012},[1371],{"type":858,"value":1372},"path:",{"type":849,"tag":993,"props":1374,"children":1375},{"style":1027},[1376],{"type":858,"value":1377}," '\u002Fmcp'",{"type":849,"tag":993,"props":1379,"children":1380},{"style":1006},[1381],{"type":858,"value":1213},{"type":849,"tag":993,"props":1383,"children":1384},{"style":1012},[1385],{"type":858,"value":1386},"method",{"type":849,"tag":993,"props":1388,"children":1389},{"style":1006},[1390],{"type":858,"value":1213},{"type":849,"tag":993,"props":1392,"children":1393},{"style":1012},[1394],{"type":858,"value":1395},"handler:",{"type":849,"tag":993,"props":1397,"children":1398},{"style":1012},[1399],{"type":858,"value":1176},{"type":849,"tag":993,"props":1401,"children":1402},{"style":1006},[1403],{"type":858,"value":1223},{"type":858,"value":1032},{"type":849,"tag":993,"props":1406,"children":1407},{"class":995,"style":996},[1408],{"type":849,"tag":993,"props":1409,"children":1410},{"style":1006},[1411],{"type":858,"value":1412},"}",{"type":858,"value":1032},{"type":849,"tag":993,"props":1415,"children":1416},{"class":995,"style":996},[1417],{"type":849,"tag":993,"props":1418,"children":1419},{"style":1265},[1420],{"type":858,"value":1421},"\u002F\u002F The OAuth discovery document. Convex serves HEAD through GET.",{"type":858,"value":1032},{"type":849,"tag":993,"props":1424,"children":1425},{"class":995,"style":996},[1426,1430,1434,1438,1442,1446,1450,1454,1458,1463,1467,1471,1475],{"type":849,"tag":993,"props":1427,"children":1428},{"style":1000},[1429],{"type":858,"value":1277},{"type":849,"tag":993,"props":1431,"children":1432},{"style":1006},[1433],{"type":858,"value":1282},{"type":849,"tag":993,"props":1435,"children":1436},{"style":1076},[1437],{"type":858,"value":1142},{"type":849,"tag":993,"props":1439,"children":1440},{"style":1145},[1441],{"type":858,"value":1291},{"type":849,"tag":993,"props":1443,"children":1444},{"style":1076},[1445],{"type":858,"value":1296},{"type":849,"tag":993,"props":1447,"children":1448},{"style":1006},[1449],{"type":858,"value":1301},{"type":849,"tag":993,"props":1451,"children":1452},{"style":1027},[1453],{"type":858,"value":1315},{"type":849,"tag":993,"props":1455,"children":1456},{"style":1006},[1457],{"type":858,"value":1213},{"type":849,"tag":993,"props":1459,"children":1460},{"style":1027},[1461],{"type":858,"value":1462},"'OPTIONS'",{"type":849,"tag":993,"props":1464,"children":1465},{"style":1006},[1466],{"type":858,"value":1329},{"type":849,"tag":993,"props":1468,"children":1469},{"style":1000},[1470],{"type":858,"value":1334},{"type":849,"tag":993,"props":1472,"children":1473},{"style":1076},[1474],{"type":858,"value":1339},{"type":849,"tag":993,"props":1476,"children":1477},{"style":1006},[1478],{"type":858,"value":1344},{"type":858,"value":1032},{"type":849,"tag":993,"props":1481,"children":1482},{"class":995,"style":996},[1483,1487,1491,1495,1499,1503,1508,1512,1516,1520,1524,1528],{"type":849,"tag":993,"props":1484,"children":1485},{"style":1012},[1486],{"type":858,"value":1353},{"type":849,"tag":993,"props":1488,"children":1489},{"style":1006},[1490],{"type":858,"value":936},{"type":849,"tag":993,"props":1492,"children":1493},{"style":1156},[1494],{"type":858,"value":1362},{"type":849,"tag":993,"props":1496,"children":1497},{"style":1006},[1498],{"type":858,"value":1367},{"type":849,"tag":993,"props":1500,"children":1501},{"style":1012},[1502],{"type":858,"value":1372},{"type":849,"tag":993,"props":1504,"children":1505},{"style":1027},[1506],{"type":858,"value":1507}," '\u002F.well-known\u002Foauth-protected-resource\u002Fmcp'",{"type":849,"tag":993,"props":1509,"children":1510},{"style":1006},[1511],{"type":858,"value":1213},{"type":849,"tag":993,"props":1513,"children":1514},{"style":1012},[1515],{"type":858,"value":1386},{"type":849,"tag":993,"props":1517,"children":1518},{"style":1006},[1519],{"type":858,"value":1213},{"type":849,"tag":993,"props":1521,"children":1522},{"style":1012},[1523],{"type":858,"value":1395},{"type":849,"tag":993,"props":1525,"children":1526},{"style":1012},[1527],{"type":858,"value":1176},{"type":849,"tag":993,"props":1529,"children":1530},{"style":1006},[1531],{"type":858,"value":1223},{"type":858,"value":1032},{"type":849,"tag":993,"props":1534,"children":1535},{"class":995,"style":996},[1536],{"type":849,"tag":993,"props":1537,"children":1538},{"style":1006},[1539],{"type":858,"value":1412},{"type":858,"value":1032},{"type":849,"tag":993,"props":1542,"children":1543},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":1546,"children":1547},{"class":995,"style":996},[1548,1553,1558],{"type":849,"tag":993,"props":1549,"children":1550},{"style":1000},[1551],{"type":858,"value":1552},"export",{"type":849,"tag":993,"props":1554,"children":1555},{"style":1000},[1556],{"type":858,"value":1557}," default",{"type":849,"tag":993,"props":1559,"children":1560},{"style":1012},[1561],{"type":858,"value":1148},{"type":849,"tag":850,"props":1563,"children":1564},{},[1565,1570,1572,1576,1578,1583,1585,1590],{"type":849,"tag":854,"props":1566,"children":1567},{},[1568],{"type":858,"value":1569},"name",{"type":858,"value":1571}," is the server name that hosts show. ",{"type":849,"tag":854,"props":1573,"children":1574},{},[1575],{"type":858,"value":1218},{"type":858,"value":1577}," is the module that calls\n",{"type":849,"tag":854,"props":1579,"children":1580},{},[1581],{"type":858,"value":1582},"defineTools",{"type":858,"value":1584},". Do not register ",{"type":849,"tag":854,"props":1586,"children":1587},{},[1588],{"type":858,"value":1589},"OPTIONS \u002Fmcp",{"type":858,"value":1591},": it would let web pages on other\norigins call your tools.",{"type":849,"tag":938,"props":1593,"children":1595},{"id":1594},"what-one-tool-call-does",[1596],{"type":858,"value":1597},"What one tool call does",{"type":849,"tag":1599,"props":1600,"children":1601},"ol",{},[1602,1614,1619],{"type":849,"tag":887,"props":1603,"children":1604},{},[1605,1607,1612],{"type":858,"value":1606},"The door checks the request: its size (at most 64 KiB, else ",{"type":849,"tag":854,"props":1608,"children":1609},{},[1610],{"type":858,"value":1611},"413",{"type":858,"value":1613},"), the\nprotocol, and the access token (issuer, audience, expiry, scopes). A\nmissing or wrong token gets the OAuth challenge that sends the host to\nsign-in.",{"type":849,"tag":887,"props":1615,"children":1616},{},[1617],{"type":858,"value":1618},"The host sees only the tools whose actions its scopes include. Read tools\nare marked read-only. Tools that may need approval say so in their\ndescription.",{"type":849,"tag":887,"props":1620,"children":1621},{},[1622],{"type":858,"value":1623},"The tool runs its own internal Convex function. That function checks the\nlive grant again (session, client, consent), then the user, the role and\nevery row, in the same transaction as the write.",{"type":849,"tag":850,"props":1625,"children":1626},{},[1627],{"type":858,"value":1628},"The token never reaches a Convex function. The functions receive the verified\nprincipal: the user, the client, the scopes and the grant.",{"type":849,"tag":938,"props":1630,"children":1632},{"id":1631},"set-site_url",[1633,1635],{"type":858,"value":1634},"Set ",{"type":849,"tag":854,"props":1636,"children":1637},{},[1638],{"type":858,"value":1639},"SITE_URL",{"type":849,"tag":850,"props":1641,"children":1642},{},[1643,1644,1648,1650,1655],{"type":858,"value":1634},{"type":849,"tag":854,"props":1645,"children":1646},{},[1647],{"type":858,"value":1639},{"type":858,"value":1649}," on the Convex deployment to the public origin of your\napplication. Approval links point to ",{"type":849,"tag":854,"props":1651,"children":1652},{},[1653],{"type":858,"value":1654},"${SITE_URL}\u002Fapprovals\u002F\u003Cid>",{"type":858,"value":1656},", and a tool\nthat needs approval fails without it.",{"type":849,"tag":938,"props":1658,"children":1660},{"id":1659},"run-the-housekeeping",[1661],{"type":858,"value":1662},"Run the housekeeping",{"type":849,"tag":850,"props":1664,"children":1665},{},[1666,1671],{"type":849,"tag":854,"props":1667,"children":1668},{},[1669],{"type":858,"value":1670},"housekeeping",{"type":858,"value":1672}," expires requests that nobody decided, deletes activity after one\nyear, and deletes decided requests after 90 days. Run it from a cron:",{"type":849,"tag":982,"props":1674,"children":1676},{"language":984,"filename":1675,"class":986},"convex\u002Fcrons.ts",[1677],{"type":849,"tag":854,"props":1678,"children":1679},{"class":990},[1680,1708,1709,1712,1713,1742,1743,1746,1747,1771,1772,1843,1844,1847,1848],{"type":849,"tag":993,"props":1681,"children":1682},{"class":995,"style":996},[1683,1687,1691,1696,1700,1704],{"type":849,"tag":993,"props":1684,"children":1685},{"style":1000},[1686],{"type":858,"value":1003},{"type":849,"tag":993,"props":1688,"children":1689},{"style":1006},[1690],{"type":858,"value":1009},{"type":849,"tag":993,"props":1692,"children":1693},{"style":1012},[1694],{"type":858,"value":1695},"cronJobs",{"type":849,"tag":993,"props":1697,"children":1698},{"style":1006},[1699],{"type":858,"value":1019},{"type":849,"tag":993,"props":1701,"children":1702},{"style":1000},[1703],{"type":858,"value":1024},{"type":849,"tag":993,"props":1705,"children":1706},{"style":1027},[1707],{"type":858,"value":1061},{"type":858,"value":1032},{"type":849,"tag":993,"props":1710,"children":1711},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":1714,"children":1715},{"class":995,"style":996},[1716,1720,1724,1729,1733,1737],{"type":849,"tag":993,"props":1717,"children":1718},{"style":1000},[1719],{"type":858,"value":1003},{"type":849,"tag":993,"props":1721,"children":1722},{"style":1006},[1723],{"type":858,"value":1009},{"type":849,"tag":993,"props":1725,"children":1726},{"style":1012},[1727],{"type":858,"value":1728},"internal",{"type":849,"tag":993,"props":1730,"children":1731},{"style":1006},[1732],{"type":858,"value":1019},{"type":849,"tag":993,"props":1734,"children":1735},{"style":1000},[1736],{"type":858,"value":1024},{"type":849,"tag":993,"props":1738,"children":1739},{"style":1027},[1740],{"type":858,"value":1741}," '.\u002F_generated\u002Fapi'",{"type":858,"value":1032},{"type":849,"tag":993,"props":1744,"children":1745},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":1748,"children":1749},{"class":995,"style":996},[1750,1754,1759,1763,1767],{"type":849,"tag":993,"props":1751,"children":1752},{"style":1076},[1753],{"type":858,"value":1142},{"type":849,"tag":993,"props":1755,"children":1756},{"style":1145},[1757],{"type":858,"value":1758}," crons",{"type":849,"tag":993,"props":1760,"children":1761},{"style":1006},[1762],{"type":858,"value":1153},{"type":849,"tag":993,"props":1764,"children":1765},{"style":1156},[1766],{"type":858,"value":1695},{"type":849,"tag":993,"props":1768,"children":1769},{"style":1006},[1770],{"type":858,"value":1163},{"type":858,"value":1032},{"type":849,"tag":993,"props":1773,"children":1774},{"class":995,"style":996},[1775,1780,1784,1789,1793,1798,1802,1807,1813,1818,1822,1826,1830,1834,1838],{"type":849,"tag":993,"props":1776,"children":1777},{"style":1012},[1778],{"type":858,"value":1779},"crons",{"type":849,"tag":993,"props":1781,"children":1782},{"style":1006},[1783],{"type":858,"value":936},{"type":849,"tag":993,"props":1785,"children":1786},{"style":1156},[1787],{"type":858,"value":1788},"hourly",{"type":849,"tag":993,"props":1790,"children":1791},{"style":1006},[1792],{"type":858,"value":1189},{"type":849,"tag":993,"props":1794,"children":1795},{"style":1027},[1796],{"type":858,"value":1797},"'agent housekeeping'",{"type":849,"tag":993,"props":1799,"children":1800},{"style":1006},[1801],{"type":858,"value":1198},{"type":849,"tag":993,"props":1803,"children":1804},{"style":1012},[1805],{"type":858,"value":1806},"minuteUTC:",{"type":849,"tag":993,"props":1808,"children":1810},{"style":1809},"color:#098658;--shiki-dark:#B5CEA8",[1811],{"type":858,"value":1812}," 7",{"type":849,"tag":993,"props":1814,"children":1815},{"style":1006},[1816],{"type":858,"value":1817}," }, ",{"type":849,"tag":993,"props":1819,"children":1820},{"style":1012},[1821],{"type":858,"value":1728},{"type":849,"tag":993,"props":1823,"children":1824},{"style":1006},[1825],{"type":858,"value":936},{"type":849,"tag":993,"props":1827,"children":1828},{"style":1012},[1829],{"type":858,"value":1218},{"type":849,"tag":993,"props":1831,"children":1832},{"style":1006},[1833],{"type":858,"value":936},{"type":849,"tag":993,"props":1835,"children":1836},{"style":1012},[1837],{"type":858,"value":1670},{"type":849,"tag":993,"props":1839,"children":1840},{"style":1006},[1841],{"type":858,"value":1842},", {})",{"type":858,"value":1032},{"type":849,"tag":993,"props":1845,"children":1846},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":1849,"children":1850},{"class":995,"style":996},[1851,1855,1859],{"type":849,"tag":993,"props":1852,"children":1853},{"style":1000},[1854],{"type":858,"value":1552},{"type":849,"tag":993,"props":1856,"children":1857},{"style":1000},[1858],{"type":858,"value":1557},{"type":849,"tag":993,"props":1860,"children":1861},{"style":1012},[1862],{"type":858,"value":1758},{"type":849,"tag":938,"props":1864,"children":1866},{"id":1865},"let-people-disconnect-a-host",[1867],{"type":858,"value":1868},"Let people disconnect a host",{"type":849,"tag":850,"props":1870,"children":1871},{},[1872,1874,1879],{"type":858,"value":1873},"Show the person's hosts and let them disconnect one. Call\n",{"type":849,"tag":854,"props":1875,"children":1876},{},[1877],{"type":858,"value":1878},"tools.disconnected",{"type":858,"value":1880}," next to the revoke, so the host's open requests leave the\napproval list.",{"type":849,"tag":982,"props":1882,"children":1884},{"language":984,"filename":1883,"class":986},"convex\u002Fconnections.ts",[1885],{"type":849,"tag":854,"props":1886,"children":1887},{"class":990},[1888,1917,1918,1947,1948,1951,1952,1990,1991,2019,2020,2047,2048,2051,2052,2060,2061,2069,2070,2091,2092,2095,2096,2104,2105,2133,2134,2147,2148,2161,2162,2175,2176,2218,2219,2267,2268,2337,2338,2346,2347,2355,2356,2363,2364,2367,2368,2376,2377,2405,2406,2417,2418,2430,2431,2466,2467,2512,2513,2556,2557,2638,2639,2673,2674,2699,2700,2784,2785,2801,2802,2878,2879,2890,2891,2898,2899,2906,2907],{"type":849,"tag":993,"props":1889,"children":1890},{"class":995,"style":996},[1891,1895,1899,1904,1908,1912],{"type":849,"tag":993,"props":1892,"children":1893},{"style":1000},[1894],{"type":858,"value":1003},{"type":849,"tag":993,"props":1896,"children":1897},{"style":1006},[1898],{"type":858,"value":1009},{"type":849,"tag":993,"props":1900,"children":1901},{"style":1012},[1902],{"type":858,"value":1903},"trusted",{"type":849,"tag":993,"props":1905,"children":1906},{"style":1006},[1907],{"type":858,"value":1019},{"type":849,"tag":993,"props":1909,"children":1910},{"style":1000},[1911],{"type":858,"value":1024},{"type":849,"tag":993,"props":1913,"children":1914},{"style":1027},[1915],{"type":858,"value":1916}," '@lupinum\u002Fbetter-convex-functions'",{"type":858,"value":1032},{"type":849,"tag":993,"props":1919,"children":1920},{"class":995,"style":996},[1921,1925,1929,1934,1938,1942],{"type":849,"tag":993,"props":1922,"children":1923},{"style":1000},[1924],{"type":858,"value":1003},{"type":849,"tag":993,"props":1926,"children":1927},{"style":1006},[1928],{"type":858,"value":1009},{"type":849,"tag":993,"props":1930,"children":1931},{"style":1012},[1932],{"type":858,"value":1933},"v",{"type":849,"tag":993,"props":1935,"children":1936},{"style":1006},[1937],{"type":858,"value":1019},{"type":849,"tag":993,"props":1939,"children":1940},{"style":1000},[1941],{"type":858,"value":1024},{"type":849,"tag":993,"props":1943,"children":1944},{"style":1027},[1945],{"type":858,"value":1946}," 'convex\u002Fvalues'",{"type":858,"value":1032},{"type":849,"tag":993,"props":1949,"children":1950},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":1953,"children":1954},{"class":995,"style":996},[1955,1959,1963,1968,1972,1977,1981,1985],{"type":849,"tag":993,"props":1956,"children":1957},{"style":1000},[1958],{"type":858,"value":1003},{"type":849,"tag":993,"props":1960,"children":1961},{"style":1006},[1962],{"type":858,"value":1009},{"type":849,"tag":993,"props":1964,"children":1965},{"style":1012},[1966],{"type":858,"value":1967},"mutation",{"type":849,"tag":993,"props":1969,"children":1970},{"style":1006},[1971],{"type":858,"value":1213},{"type":849,"tag":993,"props":1973,"children":1974},{"style":1012},[1975],{"type":858,"value":1976},"query",{"type":849,"tag":993,"props":1978,"children":1979},{"style":1006},[1980],{"type":858,"value":1019},{"type":849,"tag":993,"props":1982,"children":1983},{"style":1000},[1984],{"type":858,"value":1024},{"type":849,"tag":993,"props":1986,"children":1987},{"style":1027},[1988],{"type":858,"value":1989}," '.\u002F_generated\u002Fserver'",{"type":858,"value":1032},{"type":849,"tag":993,"props":1992,"children":1993},{"class":995,"style":996},[1994,1998,2002,2007,2011,2015],{"type":849,"tag":993,"props":1995,"children":1996},{"style":1000},[1997],{"type":858,"value":1003},{"type":849,"tag":993,"props":1999,"children":2000},{"style":1006},[2001],{"type":858,"value":1009},{"type":849,"tag":993,"props":2003,"children":2004},{"style":1012},[2005],{"type":858,"value":2006},"tools",{"type":849,"tag":993,"props":2008,"children":2009},{"style":1006},[2010],{"type":858,"value":1019},{"type":849,"tag":993,"props":2012,"children":2013},{"style":1000},[2014],{"type":858,"value":1024},{"type":849,"tag":993,"props":2016,"children":2017},{"style":1027},[2018],{"type":858,"value":1099},{"type":858,"value":1032},{"type":849,"tag":993,"props":2021,"children":2022},{"class":995,"style":996},[2023,2027,2031,2035,2039,2043],{"type":849,"tag":993,"props":2024,"children":2025},{"style":1000},[2026],{"type":858,"value":1003},{"type":849,"tag":993,"props":2028,"children":2029},{"style":1006},[2030],{"type":858,"value":1009},{"type":849,"tag":993,"props":2032,"children":2033},{"style":1012},[2034],{"type":858,"value":1116},{"type":849,"tag":993,"props":2036,"children":2037},{"style":1006},[2038],{"type":858,"value":1019},{"type":849,"tag":993,"props":2040,"children":2041},{"style":1000},[2042],{"type":858,"value":1024},{"type":849,"tag":993,"props":2044,"children":2045},{"style":1027},[2046],{"type":858,"value":1129},{"type":858,"value":1032},{"type":849,"tag":993,"props":2049,"children":2050},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":2053,"children":2054},{"class":995,"style":996},[2055],{"type":849,"tag":993,"props":2056,"children":2057},{"style":1265},[2058],{"type":858,"value":2059},"\u002F\u002F Connections live in the auth component, outside the row rules. Each function checks the",{"type":858,"value":1032},{"type":849,"tag":993,"props":2062,"children":2063},{"class":995,"style":996},[2064],{"type":849,"tag":993,"props":2065,"children":2066},{"style":1265},[2067],{"type":858,"value":2068},"\u002F\u002F signed-in user itself.",{"type":858,"value":1032},{"type":849,"tag":993,"props":2071,"children":2072},{"class":995,"style":996},[2073,2077,2082,2086],{"type":849,"tag":993,"props":2074,"children":2075},{"style":1076},[2076],{"type":858,"value":1142},{"type":849,"tag":993,"props":2078,"children":2079},{"style":1145},[2080],{"type":858,"value":2081}," ownConnections",{"type":849,"tag":993,"props":2083,"children":2084},{"style":1006},[2085],{"type":858,"value":1153},{"type":849,"tag":993,"props":2087,"children":2088},{"style":1027},[2089],{"type":858,"value":2090},"'Checks the signed-in user; touches only their connections.'",{"type":858,"value":1032},{"type":849,"tag":993,"props":2093,"children":2094},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":2097,"children":2098},{"class":995,"style":996},[2099],{"type":849,"tag":993,"props":2100,"children":2101},{"style":1265},[2102],{"type":858,"value":2103},"\u002F** The hosts that the signed-in person connected. *\u002F",{"type":858,"value":1032},{"type":849,"tag":993,"props":2106,"children":2107},{"class":995,"style":996},[2108,2112,2116,2121,2125,2129],{"type":849,"tag":993,"props":2109,"children":2110},{"style":1000},[2111],{"type":858,"value":1552},{"type":849,"tag":993,"props":2113,"children":2114},{"style":1076},[2115],{"type":858,"value":1339},{"type":849,"tag":993,"props":2117,"children":2118},{"style":1145},[2119],{"type":858,"value":2120}," list",{"type":849,"tag":993,"props":2122,"children":2123},{"style":1006},[2124],{"type":858,"value":1153},{"type":849,"tag":993,"props":2126,"children":2127},{"style":1156},[2128],{"type":858,"value":1903},{"type":849,"tag":993,"props":2130,"children":2131},{"style":1006},[2132],{"type":858,"value":1189},{"type":858,"value":1032},{"type":849,"tag":993,"props":2135,"children":2136},{"class":995,"style":996},[2137,2142],{"type":849,"tag":993,"props":2138,"children":2139},{"style":1012},[2140],{"type":858,"value":2141},"  ownConnections",{"type":849,"tag":993,"props":2143,"children":2144},{"style":1006},[2145],{"type":858,"value":2146},",",{"type":858,"value":1032},{"type":849,"tag":993,"props":2149,"children":2150},{"class":995,"style":996},[2151,2156],{"type":849,"tag":993,"props":2152,"children":2153},{"style":1156},[2154],{"type":858,"value":2155},"  query",{"type":849,"tag":993,"props":2157,"children":2158},{"style":1006},[2159],{"type":858,"value":2160},"({",{"type":858,"value":1032},{"type":849,"tag":993,"props":2163,"children":2164},{"class":995,"style":996},[2165,2170],{"type":849,"tag":993,"props":2166,"children":2167},{"style":1012},[2168],{"type":858,"value":2169},"    args:",{"type":849,"tag":993,"props":2171,"children":2172},{"style":1006},[2173],{"type":858,"value":2174}," {},",{"type":858,"value":1032},{"type":849,"tag":993,"props":2177,"children":2178},{"class":995,"style":996},[2179,2184,2189,2194,2198,2203,2208,2213],{"type":849,"tag":993,"props":2180,"children":2181},{"style":1156},[2182],{"type":858,"value":2183},"    handler",{"type":849,"tag":993,"props":2185,"children":2186},{"style":1012},[2187],{"type":858,"value":2188},":",{"type":849,"tag":993,"props":2190,"children":2191},{"style":1076},[2192],{"type":858,"value":2193}," async",{"type":849,"tag":993,"props":2195,"children":2196},{"style":1006},[2197],{"type":858,"value":1282},{"type":849,"tag":993,"props":2199,"children":2200},{"style":1012},[2201],{"type":858,"value":2202},"ctx",{"type":849,"tag":993,"props":2204,"children":2205},{"style":1006},[2206],{"type":858,"value":2207},") ",{"type":849,"tag":993,"props":2209,"children":2210},{"style":1076},[2211],{"type":858,"value":2212},"=>",{"type":849,"tag":993,"props":2214,"children":2215},{"style":1006},[2216],{"type":858,"value":2217}," {",{"type":858,"value":1032},{"type":849,"tag":993,"props":2220,"children":2221},{"class":995,"style":996},[2222,2227,2232,2236,2241,2246,2250,2255,2259,2263],{"type":849,"tag":993,"props":2223,"children":2224},{"style":1076},[2225],{"type":858,"value":2226},"      const",{"type":849,"tag":993,"props":2228,"children":2229},{"style":1145},[2230],{"type":858,"value":2231}," user",{"type":849,"tag":993,"props":2233,"children":2234},{"style":1006},[2235],{"type":858,"value":1153},{"type":849,"tag":993,"props":2237,"children":2238},{"style":1000},[2239],{"type":858,"value":2240},"await",{"type":849,"tag":993,"props":2242,"children":2243},{"style":1012},[2244],{"type":858,"value":2245}," auth",{"type":849,"tag":993,"props":2247,"children":2248},{"style":1006},[2249],{"type":858,"value":936},{"type":849,"tag":993,"props":2251,"children":2252},{"style":1156},[2253],{"type":858,"value":2254},"requireUser",{"type":849,"tag":993,"props":2256,"children":2257},{"style":1006},[2258],{"type":858,"value":1189},{"type":849,"tag":993,"props":2260,"children":2261},{"style":1012},[2262],{"type":858,"value":2202},{"type":849,"tag":993,"props":2264,"children":2265},{"style":1006},[2266],{"type":858,"value":1258},{"type":858,"value":1032},{"type":849,"tag":993,"props":2269,"children":2270},{"class":995,"style":996},[2271,2276,2281,2285,2289,2294,2298,2303,2307,2311,2315,2320,2324,2328,2333],{"type":849,"tag":993,"props":2272,"children":2273},{"style":1000},[2274],{"type":858,"value":2275},"      return",{"type":849,"tag":993,"props":2277,"children":2278},{"style":1000},[2279],{"type":858,"value":2280}," await",{"type":849,"tag":993,"props":2282,"children":2283},{"style":1012},[2284],{"type":858,"value":2245},{"type":849,"tag":993,"props":2286,"children":2287},{"style":1006},[2288],{"type":858,"value":936},{"type":849,"tag":993,"props":2290,"children":2291},{"style":1012},[2292],{"type":858,"value":2293},"oauthConnections",{"type":849,"tag":993,"props":2295,"children":2296},{"style":1006},[2297],{"type":858,"value":936},{"type":849,"tag":993,"props":2299,"children":2300},{"style":1156},[2301],{"type":858,"value":2302},"list",{"type":849,"tag":993,"props":2304,"children":2305},{"style":1006},[2306],{"type":858,"value":1189},{"type":849,"tag":993,"props":2308,"children":2309},{"style":1012},[2310],{"type":858,"value":2202},{"type":849,"tag":993,"props":2312,"children":2313},{"style":1006},[2314],{"type":858,"value":1198},{"type":849,"tag":993,"props":2316,"children":2317},{"style":1012},[2318],{"type":858,"value":2319},"userId:",{"type":849,"tag":993,"props":2321,"children":2322},{"style":1012},[2323],{"type":858,"value":2231},{"type":849,"tag":993,"props":2325,"children":2326},{"style":1006},[2327],{"type":858,"value":936},{"type":849,"tag":993,"props":2329,"children":2330},{"style":1012},[2331],{"type":858,"value":2332},"id",{"type":849,"tag":993,"props":2334,"children":2335},{"style":1006},[2336],{"type":858,"value":1223},{"type":858,"value":1032},{"type":849,"tag":993,"props":2339,"children":2340},{"class":995,"style":996},[2341],{"type":849,"tag":993,"props":2342,"children":2343},{"style":1006},[2344],{"type":858,"value":2345},"    },",{"type":858,"value":1032},{"type":849,"tag":993,"props":2348,"children":2349},{"class":995,"style":996},[2350],{"type":849,"tag":993,"props":2351,"children":2352},{"style":1006},[2353],{"type":858,"value":2354},"  }),",{"type":858,"value":1032},{"type":849,"tag":993,"props":2357,"children":2358},{"class":995,"style":996},[2359],{"type":849,"tag":993,"props":2360,"children":2361},{"style":1006},[2362],{"type":858,"value":1258},{"type":858,"value":1032},{"type":849,"tag":993,"props":2365,"children":2366},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":2369,"children":2370},{"class":995,"style":996},[2371],{"type":849,"tag":993,"props":2372,"children":2373},{"style":1265},[2374],{"type":858,"value":2375},"\u002F** Disconnects one host. Its next call fails, and it cannot renew its access. *\u002F",{"type":858,"value":1032},{"type":849,"tag":993,"props":2378,"children":2379},{"class":995,"style":996},[2380,2384,2388,2393,2397,2401],{"type":849,"tag":993,"props":2381,"children":2382},{"style":1000},[2383],{"type":858,"value":1552},{"type":849,"tag":993,"props":2385,"children":2386},{"style":1076},[2387],{"type":858,"value":1339},{"type":849,"tag":993,"props":2389,"children":2390},{"style":1145},[2391],{"type":858,"value":2392}," revoke",{"type":849,"tag":993,"props":2394,"children":2395},{"style":1006},[2396],{"type":858,"value":1153},{"type":849,"tag":993,"props":2398,"children":2399},{"style":1156},[2400],{"type":858,"value":1903},{"type":849,"tag":993,"props":2402,"children":2403},{"style":1006},[2404],{"type":858,"value":1189},{"type":858,"value":1032},{"type":849,"tag":993,"props":2407,"children":2408},{"class":995,"style":996},[2409,2413],{"type":849,"tag":993,"props":2410,"children":2411},{"style":1012},[2412],{"type":858,"value":2141},{"type":849,"tag":993,"props":2414,"children":2415},{"style":1006},[2416],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":2419,"children":2420},{"class":995,"style":996},[2421,2426],{"type":849,"tag":993,"props":2422,"children":2423},{"style":1156},[2424],{"type":858,"value":2425},"  mutation",{"type":849,"tag":993,"props":2427,"children":2428},{"style":1006},[2429],{"type":858,"value":2160},{"type":858,"value":1032},{"type":849,"tag":993,"props":2432,"children":2433},{"class":995,"style":996},[2434,2438,2442,2447,2452,2456,2461],{"type":849,"tag":993,"props":2435,"children":2436},{"style":1012},[2437],{"type":858,"value":2169},{"type":849,"tag":993,"props":2439,"children":2440},{"style":1006},[2441],{"type":858,"value":1009},{"type":849,"tag":993,"props":2443,"children":2444},{"style":1012},[2445],{"type":858,"value":2446},"clientId:",{"type":849,"tag":993,"props":2448,"children":2449},{"style":1012},[2450],{"type":858,"value":2451}," v",{"type":849,"tag":993,"props":2453,"children":2454},{"style":1006},[2455],{"type":858,"value":936},{"type":849,"tag":993,"props":2457,"children":2458},{"style":1156},[2459],{"type":858,"value":2460},"string",{"type":849,"tag":993,"props":2462,"children":2463},{"style":1006},[2464],{"type":858,"value":2465},"() },",{"type":858,"value":1032},{"type":849,"tag":993,"props":2468,"children":2469},{"class":995,"style":996},[2470,2474,2478,2482,2486,2490,2494,2499,2504,2508],{"type":849,"tag":993,"props":2471,"children":2472},{"style":1156},[2473],{"type":858,"value":2183},{"type":849,"tag":993,"props":2475,"children":2476},{"style":1012},[2477],{"type":858,"value":2188},{"type":849,"tag":993,"props":2479,"children":2480},{"style":1076},[2481],{"type":858,"value":2193},{"type":849,"tag":993,"props":2483,"children":2484},{"style":1006},[2485],{"type":858,"value":1282},{"type":849,"tag":993,"props":2487,"children":2488},{"style":1012},[2489],{"type":858,"value":2202},{"type":849,"tag":993,"props":2491,"children":2492},{"style":1006},[2493],{"type":858,"value":1198},{"type":849,"tag":993,"props":2495,"children":2496},{"style":1012},[2497],{"type":858,"value":2498},"clientId",{"type":849,"tag":993,"props":2500,"children":2501},{"style":1006},[2502],{"type":858,"value":2503}," }) ",{"type":849,"tag":993,"props":2505,"children":2506},{"style":1076},[2507],{"type":858,"value":2212},{"type":849,"tag":993,"props":2509,"children":2510},{"style":1006},[2511],{"type":858,"value":2217},{"type":858,"value":1032},{"type":849,"tag":993,"props":2514,"children":2515},{"class":995,"style":996},[2516,2520,2524,2528,2532,2536,2540,2544,2548,2552],{"type":849,"tag":993,"props":2517,"children":2518},{"style":1076},[2519],{"type":858,"value":2226},{"type":849,"tag":993,"props":2521,"children":2522},{"style":1145},[2523],{"type":858,"value":2231},{"type":849,"tag":993,"props":2525,"children":2526},{"style":1006},[2527],{"type":858,"value":1153},{"type":849,"tag":993,"props":2529,"children":2530},{"style":1000},[2531],{"type":858,"value":2240},{"type":849,"tag":993,"props":2533,"children":2534},{"style":1012},[2535],{"type":858,"value":2245},{"type":849,"tag":993,"props":2537,"children":2538},{"style":1006},[2539],{"type":858,"value":936},{"type":849,"tag":993,"props":2541,"children":2542},{"style":1156},[2543],{"type":858,"value":2254},{"type":849,"tag":993,"props":2545,"children":2546},{"style":1006},[2547],{"type":858,"value":1189},{"type":849,"tag":993,"props":2549,"children":2550},{"style":1012},[2551],{"type":858,"value":2202},{"type":849,"tag":993,"props":2553,"children":2554},{"style":1006},[2555],{"type":858,"value":1258},{"type":858,"value":1032},{"type":849,"tag":993,"props":2558,"children":2559},{"class":995,"style":996},[2560,2564,2569,2573,2577,2581,2585,2589,2593,2598,2602,2606,2610,2614,2618,2622,2626,2630,2634],{"type":849,"tag":993,"props":2561,"children":2562},{"style":1076},[2563],{"type":858,"value":2226},{"type":849,"tag":993,"props":2565,"children":2566},{"style":1145},[2567],{"type":858,"value":2568}," result",{"type":849,"tag":993,"props":2570,"children":2571},{"style":1006},[2572],{"type":858,"value":1153},{"type":849,"tag":993,"props":2574,"children":2575},{"style":1000},[2576],{"type":858,"value":2240},{"type":849,"tag":993,"props":2578,"children":2579},{"style":1012},[2580],{"type":858,"value":2245},{"type":849,"tag":993,"props":2582,"children":2583},{"style":1006},[2584],{"type":858,"value":936},{"type":849,"tag":993,"props":2586,"children":2587},{"style":1012},[2588],{"type":858,"value":2293},{"type":849,"tag":993,"props":2590,"children":2591},{"style":1006},[2592],{"type":858,"value":936},{"type":849,"tag":993,"props":2594,"children":2595},{"style":1156},[2596],{"type":858,"value":2597},"revoke",{"type":849,"tag":993,"props":2599,"children":2600},{"style":1006},[2601],{"type":858,"value":1189},{"type":849,"tag":993,"props":2603,"children":2604},{"style":1012},[2605],{"type":858,"value":2202},{"type":849,"tag":993,"props":2607,"children":2608},{"style":1006},[2609],{"type":858,"value":1198},{"type":849,"tag":993,"props":2611,"children":2612},{"style":1012},[2613],{"type":858,"value":2319},{"type":849,"tag":993,"props":2615,"children":2616},{"style":1012},[2617],{"type":858,"value":2231},{"type":849,"tag":993,"props":2619,"children":2620},{"style":1006},[2621],{"type":858,"value":936},{"type":849,"tag":993,"props":2623,"children":2624},{"style":1012},[2625],{"type":858,"value":2332},{"type":849,"tag":993,"props":2627,"children":2628},{"style":1006},[2629],{"type":858,"value":1213},{"type":849,"tag":993,"props":2631,"children":2632},{"style":1012},[2633],{"type":858,"value":2498},{"type":849,"tag":993,"props":2635,"children":2636},{"style":1006},[2637],{"type":858,"value":1223},{"type":858,"value":1032},{"type":849,"tag":993,"props":2640,"children":2641},{"class":995,"style":996},[2642,2646,2651,2655,2659,2664,2668],{"type":849,"tag":993,"props":2643,"children":2644},{"style":1076},[2645],{"type":858,"value":2226},{"type":849,"tag":993,"props":2647,"children":2648},{"style":1145},[2649],{"type":858,"value":2650}," appUser",{"type":849,"tag":993,"props":2652,"children":2653},{"style":1006},[2654],{"type":858,"value":1153},{"type":849,"tag":993,"props":2656,"children":2657},{"style":1000},[2658],{"type":858,"value":2240},{"type":849,"tag":993,"props":2660,"children":2661},{"style":1012},[2662],{"type":858,"value":2663}," ctx",{"type":849,"tag":993,"props":2665,"children":2666},{"style":1006},[2667],{"type":858,"value":936},{"type":849,"tag":993,"props":2669,"children":2670},{"style":1012},[2671],{"type":858,"value":2672},"db",{"type":858,"value":1032},{"type":849,"tag":993,"props":2675,"children":2676},{"class":995,"style":996},[2677,2682,2686,2690,2695],{"type":849,"tag":993,"props":2678,"children":2679},{"style":1006},[2680],{"type":858,"value":2681},"        .",{"type":849,"tag":993,"props":2683,"children":2684},{"style":1156},[2685],{"type":858,"value":1976},{"type":849,"tag":993,"props":2687,"children":2688},{"style":1006},[2689],{"type":858,"value":1189},{"type":849,"tag":993,"props":2691,"children":2692},{"style":1027},[2693],{"type":858,"value":2694},"'users'",{"type":849,"tag":993,"props":2696,"children":2697},{"style":1006},[2698],{"type":858,"value":1258},{"type":858,"value":1032},{"type":849,"tag":993,"props":2701,"children":2702},{"class":995,"style":996},[2703,2707,2712,2716,2721,2726,2731,2735,2739,2744,2748,2753,2757,2762,2766,2771,2775,2779],{"type":849,"tag":993,"props":2704,"children":2705},{"style":1006},[2706],{"type":858,"value":2681},{"type":849,"tag":993,"props":2708,"children":2709},{"style":1156},[2710],{"type":858,"value":2711},"withIndex",{"type":849,"tag":993,"props":2713,"children":2714},{"style":1006},[2715],{"type":858,"value":1189},{"type":849,"tag":993,"props":2717,"children":2718},{"style":1027},[2719],{"type":858,"value":2720},"'by_auth_id'",{"type":849,"tag":993,"props":2722,"children":2723},{"style":1006},[2724],{"type":858,"value":2725},", (",{"type":849,"tag":993,"props":2727,"children":2728},{"style":1012},[2729],{"type":858,"value":2730},"q",{"type":849,"tag":993,"props":2732,"children":2733},{"style":1006},[2734],{"type":858,"value":2207},{"type":849,"tag":993,"props":2736,"children":2737},{"style":1076},[2738],{"type":858,"value":2212},{"type":849,"tag":993,"props":2740,"children":2741},{"style":1012},[2742],{"type":858,"value":2743}," q",{"type":849,"tag":993,"props":2745,"children":2746},{"style":1006},[2747],{"type":858,"value":936},{"type":849,"tag":993,"props":2749,"children":2750},{"style":1156},[2751],{"type":858,"value":2752},"eq",{"type":849,"tag":993,"props":2754,"children":2755},{"style":1006},[2756],{"type":858,"value":1189},{"type":849,"tag":993,"props":2758,"children":2759},{"style":1027},[2760],{"type":858,"value":2761},"'authId'",{"type":849,"tag":993,"props":2763,"children":2764},{"style":1006},[2765],{"type":858,"value":1213},{"type":849,"tag":993,"props":2767,"children":2768},{"style":1012},[2769],{"type":858,"value":2770},"user",{"type":849,"tag":993,"props":2772,"children":2773},{"style":1006},[2774],{"type":858,"value":936},{"type":849,"tag":993,"props":2776,"children":2777},{"style":1012},[2778],{"type":858,"value":2332},{"type":849,"tag":993,"props":2780,"children":2781},{"style":1006},[2782],{"type":858,"value":2783},"))",{"type":858,"value":1032},{"type":849,"tag":993,"props":2786,"children":2787},{"class":995,"style":996},[2788,2792,2797],{"type":849,"tag":993,"props":2789,"children":2790},{"style":1006},[2791],{"type":858,"value":2681},{"type":849,"tag":993,"props":2793,"children":2794},{"style":1156},[2795],{"type":858,"value":2796},"unique",{"type":849,"tag":993,"props":2798,"children":2799},{"style":1006},[2800],{"type":858,"value":1163},{"type":858,"value":1032},{"type":849,"tag":993,"props":2803,"children":2804},{"class":995,"style":996},[2805,2810,2814,2819,2823,2827,2832,2836,2841,2845,2849,2853,2857,2861,2866,2870,2874],{"type":849,"tag":993,"props":2806,"children":2807},{"style":1000},[2808],{"type":858,"value":2809},"      if",{"type":849,"tag":993,"props":2811,"children":2812},{"style":1006},[2813],{"type":858,"value":1282},{"type":849,"tag":993,"props":2815,"children":2816},{"style":1012},[2817],{"type":858,"value":2818},"appUser",{"type":849,"tag":993,"props":2820,"children":2821},{"style":1006},[2822],{"type":858,"value":2207},{"type":849,"tag":993,"props":2824,"children":2825},{"style":1000},[2826],{"type":858,"value":2240},{"type":849,"tag":993,"props":2828,"children":2829},{"style":1012},[2830],{"type":858,"value":2831}," tools",{"type":849,"tag":993,"props":2833,"children":2834},{"style":1006},[2835],{"type":858,"value":936},{"type":849,"tag":993,"props":2837,"children":2838},{"style":1156},[2839],{"type":858,"value":2840},"disconnected",{"type":849,"tag":993,"props":2842,"children":2843},{"style":1006},[2844],{"type":858,"value":1189},{"type":849,"tag":993,"props":2846,"children":2847},{"style":1012},[2848],{"type":858,"value":2202},{"type":849,"tag":993,"props":2850,"children":2851},{"style":1006},[2852],{"type":858,"value":1213},{"type":849,"tag":993,"props":2854,"children":2855},{"style":1012},[2856],{"type":858,"value":2818},{"type":849,"tag":993,"props":2858,"children":2859},{"style":1006},[2860],{"type":858,"value":936},{"type":849,"tag":993,"props":2862,"children":2863},{"style":1012},[2864],{"type":858,"value":2865},"_id",{"type":849,"tag":993,"props":2867,"children":2868},{"style":1006},[2869],{"type":858,"value":1213},{"type":849,"tag":993,"props":2871,"children":2872},{"style":1012},[2873],{"type":858,"value":2498},{"type":849,"tag":993,"props":2875,"children":2876},{"style":1006},[2877],{"type":858,"value":1258},{"type":858,"value":1032},{"type":849,"tag":993,"props":2880,"children":2881},{"class":995,"style":996},[2882,2886],{"type":849,"tag":993,"props":2883,"children":2884},{"style":1000},[2885],{"type":858,"value":2275},{"type":849,"tag":993,"props":2887,"children":2888},{"style":1012},[2889],{"type":858,"value":2568},{"type":858,"value":1032},{"type":849,"tag":993,"props":2892,"children":2893},{"class":995,"style":996},[2894],{"type":849,"tag":993,"props":2895,"children":2896},{"style":1006},[2897],{"type":858,"value":2345},{"type":858,"value":1032},{"type":849,"tag":993,"props":2900,"children":2901},{"class":995,"style":996},[2902],{"type":849,"tag":993,"props":2903,"children":2904},{"style":1006},[2905],{"type":858,"value":2354},{"type":858,"value":1032},{"type":849,"tag":993,"props":2908,"children":2909},{"class":995,"style":996},[2910],{"type":849,"tag":993,"props":2911,"children":2912},{"style":1006},[2913],{"type":858,"value":1258},{"type":849,"tag":850,"props":2915,"children":2916},{},[2917],{"type":858,"value":2918},"Signing out of the application ends the session that granted consent, so it\ndisconnects the person's hosts too. The person connects them again after the\nnext sign-in.",{"type":849,"tag":938,"props":2920,"children":2922},{"id":2921},"files-from-agents",[2923],{"type":858,"value":2924},"Files from agents",{"type":849,"tag":850,"props":2926,"children":2927},{},[2928],{"type":858,"value":2929},"An MCP request carries at most 64 KiB, so a file cannot travel inside a tool\ncall. An agent sends a file in three steps instead:",{"type":849,"tag":1599,"props":2931,"children":2932},{},[2933,2945,2956],{"type":849,"tag":887,"props":2934,"children":2935},{},[2936,2938,2943],{"type":858,"value":2937},"It calls the built-in tool ",{"type":849,"tag":854,"props":2939,"children":2940},{},[2941],{"type":858,"value":2942},"request_upload",{"type":858,"value":2944}," and gets one-time upload tokens.",{"type":849,"tag":887,"props":2946,"children":2947},{},[2948,2950,2955],{"type":858,"value":2949},"It sends each file's bytes to the application's upload route, with one token per file. The route answers with an ",{"type":849,"tag":854,"props":2951,"children":2952},{},[2953],{"type":858,"value":2954},"uploadId",{"type":858,"value":936},{"type":849,"tag":887,"props":2957,"children":2958},{},[2959,2961,2965,2967,2972],{"type":858,"value":2960},"It calls one of your tools with the ",{"type":849,"tag":854,"props":2962,"children":2963},{},[2964],{"type":858,"value":2954},{"type":858,"value":2966},". The tool calls ",{"type":849,"tag":854,"props":2968,"children":2969},{},[2970],{"type":858,"value":2971},"claimUpload",{"type":858,"value":2973},", which hands it the stored file.",{"type":849,"tag":850,"props":2975,"children":2976},{},[2977],{"type":858,"value":2978},"Only agents that can read local files and send HTTP requests can do this,\nfor example Claude Code or Codex. A chat app such as Claude on the web or\nChatGPT cannot send a file from the person's computer.",{"type":849,"tag":2980,"props":2981,"children":2983},"h3",{"id":2982},"files-from-agents-why-a-claim",[2984],{"type":858,"value":2985},"Why a claim",{"type":849,"tag":850,"props":2987,"children":2988},{},[2989,2991,2995,2997,3001,3003,3007],{"type":858,"value":2990},"A storage ID gives whoever holds it the file (see\n",{"type":849,"tag":893,"props":2992,"children":2993},{"href":533},[2994],{"type":858,"value":528},{"type":858,"value":2996},"). An ",{"type":849,"tag":854,"props":2998,"children":2999},{},[3000],{"type":858,"value":2954},{"type":858,"value":3002}," does not.\n",{"type":849,"tag":854,"props":3004,"children":3005},{},[3006],{"type":858,"value":2971},{"type":858,"value":3008}," passes only when all of these are true:",{"type":849,"tag":883,"props":3010,"children":3011},{},[3012,3017,3022,3027],{"type":849,"tag":887,"props":3013,"children":3014},{},[3015],{"type":858,"value":3016},"The call comes from the same actor that asked for the link: the same agent connection of the same person.",{"type":849,"tag":887,"props":3018,"children":3019},{},[3020],{"type":858,"value":3021},"The file was not claimed before.",{"type":849,"tag":887,"props":3023,"children":3024},{},[3025],{"type":858,"value":3026},"The file arrived less than 24 hours ago.",{"type":849,"tag":887,"props":3028,"children":3029},{},[3030],{"type":858,"value":3031},"The type and size are ones the tool allows. The route decides the type from the file's first bytes, never from its name.",{"type":849,"tag":850,"props":3033,"children":3034},{},[3035,3037,3042,3044,3049],{"type":858,"value":3036},"A missing, foreign or already claimed upload fails with ",{"type":849,"tag":854,"props":3038,"children":3039},{},[3040],{"type":858,"value":3041},"NOT_FOUND",{"type":858,"value":3043},". A type or\nsize the tool does not allow fails with ",{"type":849,"tag":854,"props":3045,"children":3046},{},[3047],{"type":858,"value":3048},"INVALID_INPUT",{"type":858,"value":3050},", and the file stays\nclaimable for another call.",{"type":849,"tag":2980,"props":3052,"children":3054},{"id":3053},"files-from-agents-turn-uploads-on",[3055],{"type":858,"value":3056},"Turn uploads on",{"type":849,"tag":850,"props":3058,"children":3059},{},[3060,3062,3067,3069,3073,3075,3080,3082,3087],{"type":858,"value":3061},"Add ",{"type":849,"tag":854,"props":3063,"children":3064},{},[3065],{"type":858,"value":3066},"uploads",{"type":858,"value":3068}," to ",{"type":849,"tag":854,"props":3070,"children":3071},{},[3072],{"type":858,"value":1582},{"type":858,"value":3074},". ",{"type":849,"tag":854,"props":3076,"children":3077},{},[3078],{"type":858,"value":3079},"scopes",{"type":858,"value":3081}," names the OAuth scopes whose\nconnections may ask for links; a read-only connection does not see the tool.\nThe samples in this section come from an expense app with an ",{"type":849,"tag":854,"props":3083,"children":3084},{},[3085],{"type":858,"value":3086},"expenses",{"type":858,"value":3088}," table.",{"type":849,"tag":982,"props":3090,"children":3091},{"language":984,"class":986},[3092],{"type":849,"tag":854,"props":3093,"children":3094},{"class":990},[3095,3103,3104,3132,3133,3136,3137,3164,3165,3194,3195,3224,3225,3228,3229,3256,3257,3269,3270,3288,3289,3297,3298,3323,3324,3405,3406,3414,3415,3422,3423,3426,3427,3442,3443,3455,3456,3468,3469,3481,3482,3494,3495,3507,3508,3520,3521],{"type":849,"tag":993,"props":3096,"children":3097},{"class":995,"style":996},[3098],{"type":849,"tag":993,"props":3099,"children":3100},{"style":1265},[3101],{"type":858,"value":3102},"\u002F\u002F convex\u002Fagents.ts",{"type":858,"value":1032},{"type":849,"tag":993,"props":3105,"children":3106},{"class":995,"style":996},[3107,3111,3115,3119,3123,3127],{"type":849,"tag":993,"props":3108,"children":3109},{"style":1000},[3110],{"type":858,"value":1003},{"type":849,"tag":993,"props":3112,"children":3113},{"style":1006},[3114],{"type":858,"value":1009},{"type":849,"tag":993,"props":3116,"children":3117},{"style":1012},[3118],{"type":858,"value":1582},{"type":849,"tag":993,"props":3120,"children":3121},{"style":1006},[3122],{"type":858,"value":1019},{"type":849,"tag":993,"props":3124,"children":3125},{"style":1000},[3126],{"type":858,"value":1024},{"type":849,"tag":993,"props":3128,"children":3129},{"style":1027},[3130],{"type":858,"value":3131}," '@lupinum\u002Fbetter-convex-agents'",{"type":858,"value":1032},{"type":849,"tag":993,"props":3134,"children":3135},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":3138,"children":3139},{"class":995,"style":996},[3140,3144,3148,3152,3156,3160],{"type":849,"tag":993,"props":3141,"children":3142},{"style":1000},[3143],{"type":858,"value":1003},{"type":849,"tag":993,"props":3145,"children":3146},{"style":1006},[3147],{"type":858,"value":1009},{"type":849,"tag":993,"props":3149,"children":3150},{"style":1012},[3151],{"type":858,"value":1728},{"type":849,"tag":993,"props":3153,"children":3154},{"style":1006},[3155],{"type":858,"value":1019},{"type":849,"tag":993,"props":3157,"children":3158},{"style":1000},[3159],{"type":858,"value":1024},{"type":849,"tag":993,"props":3161,"children":3162},{"style":1027},[3163],{"type":858,"value":1741},{"type":858,"value":1032},{"type":849,"tag":993,"props":3166,"children":3167},{"class":995,"style":996},[3168,3172,3176,3181,3185,3189],{"type":849,"tag":993,"props":3169,"children":3170},{"style":1000},[3171],{"type":858,"value":1003},{"type":849,"tag":993,"props":3173,"children":3174},{"style":1006},[3175],{"type":858,"value":1009},{"type":849,"tag":993,"props":3177,"children":3178},{"style":1012},[3179],{"type":858,"value":3180},"fns",{"type":849,"tag":993,"props":3182,"children":3183},{"style":1006},[3184],{"type":858,"value":1019},{"type":849,"tag":993,"props":3186,"children":3187},{"style":1000},[3188],{"type":858,"value":1024},{"type":849,"tag":993,"props":3190,"children":3191},{"style":1027},[3192],{"type":858,"value":3193}," '.\u002Ffunctions'",{"type":858,"value":1032},{"type":849,"tag":993,"props":3196,"children":3197},{"class":995,"style":996},[3198,3202,3206,3210,3215,3219],{"type":849,"tag":993,"props":3199,"children":3200},{"style":1000},[3201],{"type":858,"value":1003},{"type":849,"tag":993,"props":3203,"children":3204},{"style":1076},[3205],{"type":858,"value":1079},{"type":849,"tag":993,"props":3207,"children":3208},{"style":1000},[3209],{"type":858,"value":1084},{"type":849,"tag":993,"props":3211,"children":3212},{"style":1012},[3213],{"type":858,"value":3214}," receipts",{"type":849,"tag":993,"props":3216,"children":3217},{"style":1000},[3218],{"type":858,"value":1094},{"type":849,"tag":993,"props":3220,"children":3221},{"style":1027},[3222],{"type":858,"value":3223}," '.\u002Freceipts'",{"type":858,"value":1032},{"type":849,"tag":993,"props":3226,"children":3227},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":3230,"children":3231},{"class":995,"style":996},[3232,3236,3240,3244,3248,3252],{"type":849,"tag":993,"props":3233,"children":3234},{"style":1000},[3235],{"type":858,"value":1552},{"type":849,"tag":993,"props":3237,"children":3238},{"style":1076},[3239],{"type":858,"value":1339},{"type":849,"tag":993,"props":3241,"children":3242},{"style":1145},[3243],{"type":858,"value":2831},{"type":849,"tag":993,"props":3245,"children":3246},{"style":1006},[3247],{"type":858,"value":1153},{"type":849,"tag":993,"props":3249,"children":3250},{"style":1156},[3251],{"type":858,"value":1582},{"type":849,"tag":993,"props":3253,"children":3254},{"style":1006},[3255],{"type":858,"value":1189},{"type":858,"value":1032},{"type":849,"tag":993,"props":3258,"children":3259},{"class":995,"style":996},[3260,3265],{"type":849,"tag":993,"props":3261,"children":3262},{"style":1012},[3263],{"type":858,"value":3264},"  fns",{"type":849,"tag":993,"props":3266,"children":3267},{"style":1006},[3268],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":3271,"children":3272},{"class":995,"style":996},[3273,3278,3283],{"type":849,"tag":993,"props":3274,"children":3275},{"style":1006},[3276],{"type":858,"value":3277},"  { ",{"type":849,"tag":993,"props":3279,"children":3280},{"style":1012},[3281],{"type":858,"value":3282},"receipts",{"type":849,"tag":993,"props":3284,"children":3285},{"style":1006},[3286],{"type":858,"value":3287}," },",{"type":858,"value":1032},{"type":849,"tag":993,"props":3290,"children":3291},{"class":995,"style":996},[3292],{"type":849,"tag":993,"props":3293,"children":3294},{"style":1006},[3295],{"type":858,"value":3296},"  {",{"type":858,"value":1032},{"type":849,"tag":993,"props":3299,"children":3300},{"class":995,"style":996},[3301,3306,3311,3315,3319],{"type":849,"tag":993,"props":3302,"children":3303},{"style":1012},[3304],{"type":858,"value":3305},"    functions:",{"type":849,"tag":993,"props":3307,"children":3308},{"style":1012},[3309],{"type":858,"value":3310}," internal",{"type":849,"tag":993,"props":3312,"children":3313},{"style":1006},[3314],{"type":858,"value":936},{"type":849,"tag":993,"props":3316,"children":3317},{"style":1012},[3318],{"type":858,"value":1218},{"type":849,"tag":993,"props":3320,"children":3321},{"style":1006},[3322],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":3325,"children":3326},{"class":995,"style":996},[3327,3332,3336,3341,3345,3350,3355,3360,3364,3369,3373,3378,3383,3388,3393,3397,3401],{"type":849,"tag":993,"props":3328,"children":3329},{"style":1012},[3330],{"type":858,"value":3331},"    uploads:",{"type":849,"tag":993,"props":3333,"children":3334},{"style":1006},[3335],{"type":858,"value":1009},{"type":849,"tag":993,"props":3337,"children":3338},{"style":1012},[3339],{"type":858,"value":3340},"scopes:",{"type":849,"tag":993,"props":3342,"children":3343},{"style":1006},[3344],{"type":858,"value":1301},{"type":849,"tag":993,"props":3346,"children":3347},{"style":1027},[3348],{"type":858,"value":3349},"'write'",{"type":849,"tag":993,"props":3351,"children":3352},{"style":1006},[3353],{"type":858,"value":3354},"], ",{"type":849,"tag":993,"props":3356,"children":3357},{"style":1012},[3358],{"type":858,"value":3359},"types:",{"type":849,"tag":993,"props":3361,"children":3362},{"style":1006},[3363],{"type":858,"value":1301},{"type":849,"tag":993,"props":3365,"children":3366},{"style":1027},[3367],{"type":858,"value":3368},"'application\u002Fpdf'",{"type":849,"tag":993,"props":3370,"children":3371},{"style":1006},[3372],{"type":858,"value":3354},{"type":849,"tag":993,"props":3374,"children":3375},{"style":1012},[3376],{"type":858,"value":3377},"maxBytes:",{"type":849,"tag":993,"props":3379,"children":3380},{"style":1809},[3381],{"type":858,"value":3382}," 10",{"type":849,"tag":993,"props":3384,"children":3385},{"style":1006},[3386],{"type":858,"value":3387}," * ",{"type":849,"tag":993,"props":3389,"children":3390},{"style":1809},[3391],{"type":858,"value":3392},"1024",{"type":849,"tag":993,"props":3394,"children":3395},{"style":1006},[3396],{"type":858,"value":3387},{"type":849,"tag":993,"props":3398,"children":3399},{"style":1809},[3400],{"type":858,"value":3392},{"type":849,"tag":993,"props":3402,"children":3403},{"style":1006},[3404],{"type":858,"value":3287},{"type":858,"value":1032},{"type":849,"tag":993,"props":3407,"children":3408},{"class":995,"style":996},[3409],{"type":849,"tag":993,"props":3410,"children":3411},{"style":1006},[3412],{"type":858,"value":3413},"  },",{"type":858,"value":1032},{"type":849,"tag":993,"props":3416,"children":3417},{"class":995,"style":996},[3418],{"type":849,"tag":993,"props":3419,"children":3420},{"style":1006},[3421],{"type":858,"value":1258},{"type":858,"value":1032},{"type":849,"tag":993,"props":3424,"children":3425},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":3428,"children":3429},{"class":995,"style":996},[3430,3434,3438],{"type":849,"tag":993,"props":3431,"children":3432},{"style":1000},[3433],{"type":858,"value":1552},{"type":849,"tag":993,"props":3435,"children":3436},{"style":1076},[3437],{"type":858,"value":1339},{"type":849,"tag":993,"props":3439,"children":3440},{"style":1006},[3441],{"type":858,"value":2217},{"type":858,"value":1032},{"type":849,"tag":993,"props":3444,"children":3445},{"class":995,"style":996},[3446,3451],{"type":849,"tag":993,"props":3447,"children":3448},{"style":1145},[3449],{"type":858,"value":3450},"  attach_receipt",{"type":849,"tag":993,"props":3452,"children":3453},{"style":1006},[3454],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":3457,"children":3458},{"class":995,"style":996},[3459,3464],{"type":849,"tag":993,"props":3460,"children":3461},{"style":1145},[3462],{"type":858,"value":3463},"  check_approval",{"type":849,"tag":993,"props":3465,"children":3466},{"style":1006},[3467],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":3470,"children":3471},{"class":995,"style":996},[3472,3477],{"type":849,"tag":993,"props":3473,"children":3474},{"style":1145},[3475],{"type":858,"value":3476},"  housekeeping",{"type":849,"tag":993,"props":3478,"children":3479},{"style":1006},[3480],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":3483,"children":3484},{"class":995,"style":996},[3485,3490],{"type":849,"tag":993,"props":3486,"children":3487},{"style":1145},[3488],{"type":858,"value":3489},"  request_upload",{"type":849,"tag":993,"props":3491,"children":3492},{"style":1006},[3493],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":3496,"children":3497},{"class":995,"style":996},[3498,3503],{"type":849,"tag":993,"props":3499,"children":3500},{"style":1145},[3501],{"type":858,"value":3502},"  upload_ticket",{"type":849,"tag":993,"props":3504,"children":3505},{"style":1006},[3506],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":3509,"children":3510},{"class":995,"style":996},[3511,3516],{"type":849,"tag":993,"props":3512,"children":3513},{"style":1145},[3514],{"type":858,"value":3515},"  upload_stored",{"type":849,"tag":993,"props":3517,"children":3518},{"style":1006},[3519],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":3522,"children":3523},{"class":995,"style":996},[3524,3529,3533,3537],{"type":849,"tag":993,"props":3525,"children":3526},{"style":1006},[3527],{"type":858,"value":3528},"} = ",{"type":849,"tag":993,"props":3530,"children":3531},{"style":1012},[3532],{"type":858,"value":2006},{"type":849,"tag":993,"props":3534,"children":3535},{"style":1006},[3536],{"type":858,"value":936},{"type":849,"tag":993,"props":3538,"children":3539},{"style":1012},[3540],{"type":858,"value":3541},"functions",{"type":849,"tag":850,"props":3543,"children":3544},{},[3545,3550,3552,3557,3558,3563,3564,3569,3570,3575,3577,3582,3584,3589],{"type":849,"tag":854,"props":3546,"children":3547},{},[3548],{"type":858,"value":3549},"types",{"type":858,"value":3551}," takes ",{"type":849,"tag":854,"props":3553,"children":3554},{},[3555],{"type":858,"value":3556},"application\u002Fpdf",{"type":858,"value":1213},{"type":849,"tag":854,"props":3559,"children":3560},{},[3561],{"type":858,"value":3562},"image\u002Fpng",{"type":858,"value":1213},{"type":849,"tag":854,"props":3565,"children":3566},{},[3567],{"type":858,"value":3568},"image\u002Fjpeg",{"type":858,"value":1213},{"type":849,"tag":854,"props":3571,"children":3572},{},[3573],{"type":858,"value":3574},"image\u002Fwebp",{"type":858,"value":3576}," and\n",{"type":849,"tag":854,"props":3578,"children":3579},{},[3580],{"type":858,"value":3581},"text\u002Fcsv",{"type":858,"value":3583},". A CSV file has no signature: the route accepts UTF-8 text without\ncontrol characters other than tab and line breaks, and your parser checks the\nrest. ",{"type":849,"tag":854,"props":3585,"children":3586},{},[3587],{"type":858,"value":3588},"maxBytes",{"type":858,"value":3590}," is at most 20 MiB, the request limit of a Convex HTTP action.",{"type":849,"tag":850,"props":3592,"children":3593},{},[3594,3596,3600],{"type":858,"value":3595},"Add the upload route to ",{"type":849,"tag":854,"props":3597,"children":3598},{},[3599],{"type":858,"value":985},{"type":858,"value":3601},", next to the MCP door:",{"type":849,"tag":982,"props":3603,"children":3604},{"language":984,"class":986},[3605],{"type":849,"tag":854,"props":3606,"children":3607},{"class":990},[3608,3636,3637,3640,3641,3649,3650],{"type":849,"tag":993,"props":3609,"children":3610},{"class":995,"style":996},[3611,3615,3619,3624,3628,3632],{"type":849,"tag":993,"props":3612,"children":3613},{"style":1000},[3614],{"type":858,"value":1003},{"type":849,"tag":993,"props":3616,"children":3617},{"style":1006},[3618],{"type":858,"value":1009},{"type":849,"tag":993,"props":3620,"children":3621},{"style":1012},[3622],{"type":858,"value":3623},"uploadRoute",{"type":849,"tag":993,"props":3625,"children":3626},{"style":1006},[3627],{"type":858,"value":1019},{"type":849,"tag":993,"props":3629,"children":3630},{"style":1000},[3631],{"type":858,"value":1024},{"type":849,"tag":993,"props":3633,"children":3634},{"style":1027},[3635],{"type":858,"value":3131},{"type":858,"value":1032},{"type":849,"tag":993,"props":3638,"children":3639},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":3642,"children":3643},{"class":995,"style":996},[3644],{"type":849,"tag":993,"props":3645,"children":3646},{"style":1265},[3647],{"type":858,"value":3648},"\u002F\u002F POST \u002Fmcp\u002Fupload, or the `path` you set in `uploads`.",{"type":858,"value":1032},{"type":849,"tag":993,"props":3651,"children":3652},{"class":995,"style":996},[3653,3657,3661,3665,3669,3673,3677,3681],{"type":849,"tag":993,"props":3654,"children":3655},{"style":1012},[3656],{"type":858,"value":1253},{"type":849,"tag":993,"props":3658,"children":3659},{"style":1006},[3660],{"type":858,"value":936},{"type":849,"tag":993,"props":3662,"children":3663},{"style":1156},[3664],{"type":858,"value":1362},{"type":849,"tag":993,"props":3666,"children":3667},{"style":1006},[3668],{"type":858,"value":1189},{"type":849,"tag":993,"props":3670,"children":3671},{"style":1156},[3672],{"type":858,"value":3623},{"type":849,"tag":993,"props":3674,"children":3675},{"style":1006},[3676],{"type":858,"value":1189},{"type":849,"tag":993,"props":3678,"children":3679},{"style":1012},[3680],{"type":858,"value":1218},{"type":849,"tag":993,"props":3682,"children":3683},{"style":1006},[3684],{"type":858,"value":2783},{"type":849,"tag":2980,"props":3686,"children":3688},{"id":3687},"files-from-agents-take-a-file-in-a-tool",[3689],{"type":858,"value":3690},"Take a file in a tool",{"type":849,"tag":850,"props":3692,"children":3693},{},[3694,3696,3700],{"type":858,"value":3695},"Call ",{"type":849,"tag":854,"props":3697,"children":3698},{},[3699],{"type":858,"value":2971},{"type":858,"value":3701}," inside a mutation operation, in the same transaction as the\nwrite that stores the file. Read the target row first, so the row rules decide\nwhether this caller may change it.",{"type":849,"tag":982,"props":3703,"children":3704},{"language":984,"class":986},[3705],{"type":849,"tag":854,"props":3706,"children":3707},{"class":990},[3708,3716,3717,3753,3754,3781,3782,3785,3786,3813,3814,3817,3818,3846,3847,3864,3865,3929,3930,3956,3957,3969,3970,3987,3988,4005,4006,4013,4014,4067,4068,4122,4123,4171,4172,4218,4219,4240,4241,4273,4274,4282,4283,4368,4369,4382,4383,4390,4391],{"type":849,"tag":993,"props":3709,"children":3710},{"class":995,"style":996},[3711],{"type":849,"tag":993,"props":3712,"children":3713},{"style":1265},[3714],{"type":858,"value":3715},"\u002F\u002F convex\u002Freceipts.ts",{"type":858,"value":1032},{"type":849,"tag":993,"props":3718,"children":3719},{"class":995,"style":996},[3720,3724,3728,3732,3736,3741,3745,3749],{"type":849,"tag":993,"props":3721,"children":3722},{"style":1000},[3723],{"type":858,"value":1003},{"type":849,"tag":993,"props":3725,"children":3726},{"style":1006},[3727],{"type":858,"value":1009},{"type":849,"tag":993,"props":3729,"children":3730},{"style":1012},[3731],{"type":858,"value":2971},{"type":849,"tag":993,"props":3733,"children":3734},{"style":1006},[3735],{"type":858,"value":1213},{"type":849,"tag":993,"props":3737,"children":3738},{"style":1012},[3739],{"type":858,"value":3740},"fail",{"type":849,"tag":993,"props":3742,"children":3743},{"style":1006},[3744],{"type":858,"value":1019},{"type":849,"tag":993,"props":3746,"children":3747},{"style":1000},[3748],{"type":858,"value":1024},{"type":849,"tag":993,"props":3750,"children":3751},{"style":1027},[3752],{"type":858,"value":1916},{"type":858,"value":1032},{"type":849,"tag":993,"props":3755,"children":3756},{"class":995,"style":996},[3757,3761,3765,3769,3773,3777],{"type":849,"tag":993,"props":3758,"children":3759},{"style":1000},[3760],{"type":858,"value":1003},{"type":849,"tag":993,"props":3762,"children":3763},{"style":1006},[3764],{"type":858,"value":1009},{"type":849,"tag":993,"props":3766,"children":3767},{"style":1012},[3768],{"type":858,"value":1933},{"type":849,"tag":993,"props":3770,"children":3771},{"style":1006},[3772],{"type":858,"value":1019},{"type":849,"tag":993,"props":3774,"children":3775},{"style":1000},[3776],{"type":858,"value":1024},{"type":849,"tag":993,"props":3778,"children":3779},{"style":1027},[3780],{"type":858,"value":1946},{"type":858,"value":1032},{"type":849,"tag":993,"props":3783,"children":3784},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":3787,"children":3788},{"class":995,"style":996},[3789,3793,3797,3801,3805,3809],{"type":849,"tag":993,"props":3790,"children":3791},{"style":1000},[3792],{"type":858,"value":1003},{"type":849,"tag":993,"props":3794,"children":3795},{"style":1006},[3796],{"type":858,"value":1009},{"type":849,"tag":993,"props":3798,"children":3799},{"style":1012},[3800],{"type":858,"value":1967},{"type":849,"tag":993,"props":3802,"children":3803},{"style":1006},[3804],{"type":858,"value":1019},{"type":849,"tag":993,"props":3806,"children":3807},{"style":1000},[3808],{"type":858,"value":1024},{"type":849,"tag":993,"props":3810,"children":3811},{"style":1027},[3812],{"type":858,"value":3193},{"type":858,"value":1032},{"type":849,"tag":993,"props":3815,"children":3816},{"class":995,"style":996},[],{"type":858,"value":1032},{"type":849,"tag":993,"props":3819,"children":3820},{"class":995,"style":996},[3821,3825,3829,3834,3838,3842],{"type":849,"tag":993,"props":3822,"children":3823},{"style":1000},[3824],{"type":858,"value":1552},{"type":849,"tag":993,"props":3826,"children":3827},{"style":1076},[3828],{"type":858,"value":1339},{"type":849,"tag":993,"props":3830,"children":3831},{"style":1145},[3832],{"type":858,"value":3833}," attach",{"type":849,"tag":993,"props":3835,"children":3836},{"style":1006},[3837],{"type":858,"value":1153},{"type":849,"tag":993,"props":3839,"children":3840},{"style":1156},[3841],{"type":858,"value":1967},{"type":849,"tag":993,"props":3843,"children":3844},{"style":1006},[3845],{"type":858,"value":2160},{"type":858,"value":1032},{"type":849,"tag":993,"props":3848,"children":3849},{"class":995,"style":996},[3850,3855,3860],{"type":849,"tag":993,"props":3851,"children":3852},{"style":1012},[3853],{"type":858,"value":3854},"  action:",{"type":849,"tag":993,"props":3856,"children":3857},{"style":1027},[3858],{"type":858,"value":3859}," 'receipts.attach'",{"type":849,"tag":993,"props":3861,"children":3862},{"style":1006},[3863],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":3866,"children":3867},{"class":995,"style":996},[3868,3873,3877,3882,3886,3890,3894,3898,3903,3908,3913,3917,3921,3925],{"type":849,"tag":993,"props":3869,"children":3870},{"style":1012},[3871],{"type":858,"value":3872},"  args:",{"type":849,"tag":993,"props":3874,"children":3875},{"style":1006},[3876],{"type":858,"value":1009},{"type":849,"tag":993,"props":3878,"children":3879},{"style":1012},[3880],{"type":858,"value":3881},"expenseId:",{"type":849,"tag":993,"props":3883,"children":3884},{"style":1012},[3885],{"type":858,"value":2451},{"type":849,"tag":993,"props":3887,"children":3888},{"style":1006},[3889],{"type":858,"value":936},{"type":849,"tag":993,"props":3891,"children":3892},{"style":1156},[3893],{"type":858,"value":2332},{"type":849,"tag":993,"props":3895,"children":3896},{"style":1006},[3897],{"type":858,"value":1189},{"type":849,"tag":993,"props":3899,"children":3900},{"style":1027},[3901],{"type":858,"value":3902},"'expenses'",{"type":849,"tag":993,"props":3904,"children":3905},{"style":1006},[3906],{"type":858,"value":3907},"), ",{"type":849,"tag":993,"props":3909,"children":3910},{"style":1012},[3911],{"type":858,"value":3912},"uploadId:",{"type":849,"tag":993,"props":3914,"children":3915},{"style":1012},[3916],{"type":858,"value":2451},{"type":849,"tag":993,"props":3918,"children":3919},{"style":1006},[3920],{"type":858,"value":936},{"type":849,"tag":993,"props":3922,"children":3923},{"style":1156},[3924],{"type":858,"value":2460},{"type":849,"tag":993,"props":3926,"children":3927},{"style":1006},[3928],{"type":858,"value":2465},{"type":858,"value":1032},{"type":849,"tag":993,"props":3931,"children":3932},{"class":995,"style":996},[3933,3938,3942,3946,3951],{"type":849,"tag":993,"props":3934,"children":3935},{"style":1012},[3936],{"type":858,"value":3937},"  returns:",{"type":849,"tag":993,"props":3939,"children":3940},{"style":1012},[3941],{"type":858,"value":2451},{"type":849,"tag":993,"props":3943,"children":3944},{"style":1006},[3945],{"type":858,"value":936},{"type":849,"tag":993,"props":3947,"children":3948},{"style":1156},[3949],{"type":858,"value":3950},"null",{"type":849,"tag":993,"props":3952,"children":3953},{"style":1006},[3954],{"type":858,"value":3955},"(),",{"type":858,"value":1032},{"type":849,"tag":993,"props":3958,"children":3959},{"class":995,"style":996},[3960,3965],{"type":849,"tag":993,"props":3961,"children":3962},{"style":1012},[3963],{"type":858,"value":3964},"  tool:",{"type":849,"tag":993,"props":3966,"children":3967},{"style":1006},[3968],{"type":858,"value":2217},{"type":858,"value":1032},{"type":849,"tag":993,"props":3971,"children":3972},{"class":995,"style":996},[3973,3978,3983],{"type":849,"tag":993,"props":3974,"children":3975},{"style":1012},[3976],{"type":858,"value":3977},"    name:",{"type":849,"tag":993,"props":3979,"children":3980},{"style":1027},[3981],{"type":858,"value":3982}," 'attach_receipt'",{"type":849,"tag":993,"props":3984,"children":3985},{"style":1006},[3986],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":3989,"children":3990},{"class":995,"style":996},[3991,3996,4001],{"type":849,"tag":993,"props":3992,"children":3993},{"style":1012},[3994],{"type":858,"value":3995},"    description:",{"type":849,"tag":993,"props":3997,"children":3998},{"style":1027},[3999],{"type":858,"value":4000}," 'Attach a receipt PDF you sent with request_upload to an expense.'",{"type":849,"tag":993,"props":4002,"children":4003},{"style":1006},[4004],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":4007,"children":4008},{"class":995,"style":996},[4009],{"type":849,"tag":993,"props":4010,"children":4011},{"style":1006},[4012],{"type":858,"value":3413},{"type":858,"value":1032},{"type":849,"tag":993,"props":4015,"children":4016},{"class":995,"style":996},[4017,4022,4026,4030,4034,4038,4042,4047,4051,4055,4059,4063],{"type":849,"tag":993,"props":4018,"children":4019},{"style":1156},[4020],{"type":858,"value":4021},"  handler",{"type":849,"tag":993,"props":4023,"children":4024},{"style":1012},[4025],{"type":858,"value":2188},{"type":849,"tag":993,"props":4027,"children":4028},{"style":1076},[4029],{"type":858,"value":2193},{"type":849,"tag":993,"props":4031,"children":4032},{"style":1006},[4033],{"type":858,"value":1282},{"type":849,"tag":993,"props":4035,"children":4036},{"style":1012},[4037],{"type":858,"value":2202},{"type":849,"tag":993,"props":4039,"children":4040},{"style":1006},[4041],{"type":858,"value":1198},{"type":849,"tag":993,"props":4043,"children":4044},{"style":1012},[4045],{"type":858,"value":4046},"expenseId",{"type":849,"tag":993,"props":4048,"children":4049},{"style":1006},[4050],{"type":858,"value":1213},{"type":849,"tag":993,"props":4052,"children":4053},{"style":1012},[4054],{"type":858,"value":2954},{"type":849,"tag":993,"props":4056,"children":4057},{"style":1006},[4058],{"type":858,"value":2503},{"type":849,"tag":993,"props":4060,"children":4061},{"style":1076},[4062],{"type":858,"value":2212},{"type":849,"tag":993,"props":4064,"children":4065},{"style":1006},[4066],{"type":858,"value":2217},{"type":858,"value":1032},{"type":849,"tag":993,"props":4069,"children":4070},{"class":995,"style":996},[4071,4076,4081,4085,4089,4093,4097,4101,4105,4110,4114,4118],{"type":849,"tag":993,"props":4072,"children":4073},{"style":1076},[4074],{"type":858,"value":4075},"    const",{"type":849,"tag":993,"props":4077,"children":4078},{"style":1145},[4079],{"type":858,"value":4080}," expense",{"type":849,"tag":993,"props":4082,"children":4083},{"style":1006},[4084],{"type":858,"value":1153},{"type":849,"tag":993,"props":4086,"children":4087},{"style":1000},[4088],{"type":858,"value":2240},{"type":849,"tag":993,"props":4090,"children":4091},{"style":1012},[4092],{"type":858,"value":2663},{"type":849,"tag":993,"props":4094,"children":4095},{"style":1006},[4096],{"type":858,"value":936},{"type":849,"tag":993,"props":4098,"children":4099},{"style":1012},[4100],{"type":858,"value":2672},{"type":849,"tag":993,"props":4102,"children":4103},{"style":1006},[4104],{"type":858,"value":936},{"type":849,"tag":993,"props":4106,"children":4107},{"style":1156},[4108],{"type":858,"value":4109},"get",{"type":849,"tag":993,"props":4111,"children":4112},{"style":1006},[4113],{"type":858,"value":1189},{"type":849,"tag":993,"props":4115,"children":4116},{"style":1012},[4117],{"type":858,"value":4046},{"type":849,"tag":993,"props":4119,"children":4120},{"style":1006},[4121],{"type":858,"value":1258},{"type":858,"value":1032},{"type":849,"tag":993,"props":4124,"children":4125},{"class":995,"style":996},[4126,4131,4136,4141,4145,4149,4153,4158,4162,4167],{"type":849,"tag":993,"props":4127,"children":4128},{"style":1000},[4129],{"type":858,"value":4130},"    if",{"type":849,"tag":993,"props":4132,"children":4133},{"style":1006},[4134],{"type":858,"value":4135}," (!",{"type":849,"tag":993,"props":4137,"children":4138},{"style":1012},[4139],{"type":858,"value":4140},"expense",{"type":849,"tag":993,"props":4142,"children":4143},{"style":1006},[4144],{"type":858,"value":2207},{"type":849,"tag":993,"props":4146,"children":4147},{"style":1156},[4148],{"type":858,"value":3740},{"type":849,"tag":993,"props":4150,"children":4151},{"style":1006},[4152],{"type":858,"value":1189},{"type":849,"tag":993,"props":4154,"children":4155},{"style":1027},[4156],{"type":858,"value":4157},"'NOT_FOUND'",{"type":849,"tag":993,"props":4159,"children":4160},{"style":1006},[4161],{"type":858,"value":1213},{"type":849,"tag":993,"props":4163,"children":4164},{"style":1027},[4165],{"type":858,"value":4166},"'No expense with this ID.'",{"type":849,"tag":993,"props":4168,"children":4169},{"style":1006},[4170],{"type":858,"value":1258},{"type":858,"value":1032},{"type":849,"tag":993,"props":4173,"children":4174},{"class":995,"style":996},[4175,4179,4184,4188,4192,4197,4201,4205,4209,4213],{"type":849,"tag":993,"props":4176,"children":4177},{"style":1076},[4178],{"type":858,"value":4075},{"type":849,"tag":993,"props":4180,"children":4181},{"style":1145},[4182],{"type":858,"value":4183}," file",{"type":849,"tag":993,"props":4185,"children":4186},{"style":1006},[4187],{"type":858,"value":1153},{"type":849,"tag":993,"props":4189,"children":4190},{"style":1000},[4191],{"type":858,"value":2240},{"type":849,"tag":993,"props":4193,"children":4194},{"style":1156},[4195],{"type":858,"value":4196}," claimUpload",{"type":849,"tag":993,"props":4198,"children":4199},{"style":1006},[4200],{"type":858,"value":1189},{"type":849,"tag":993,"props":4202,"children":4203},{"style":1012},[4204],{"type":858,"value":2202},{"type":849,"tag":993,"props":4206,"children":4207},{"style":1006},[4208],{"type":858,"value":1213},{"type":849,"tag":993,"props":4210,"children":4211},{"style":1012},[4212],{"type":858,"value":2954},{"type":849,"tag":993,"props":4214,"children":4215},{"style":1006},[4216],{"type":858,"value":4217},", {",{"type":858,"value":1032},{"type":849,"tag":993,"props":4220,"children":4221},{"class":995,"style":996},[4222,4227,4231,4235],{"type":849,"tag":993,"props":4223,"children":4224},{"style":1012},[4225],{"type":858,"value":4226},"      types:",{"type":849,"tag":993,"props":4228,"children":4229},{"style":1006},[4230],{"type":858,"value":1301},{"type":849,"tag":993,"props":4232,"children":4233},{"style":1027},[4234],{"type":858,"value":3368},{"type":849,"tag":993,"props":4236,"children":4237},{"style":1006},[4238],{"type":858,"value":4239},"],",{"type":858,"value":1032},{"type":849,"tag":993,"props":4242,"children":4243},{"class":995,"style":996},[4244,4249,4253,4257,4261,4265,4269],{"type":849,"tag":993,"props":4245,"children":4246},{"style":1012},[4247],{"type":858,"value":4248},"      maxBytes:",{"type":849,"tag":993,"props":4250,"children":4251},{"style":1809},[4252],{"type":858,"value":3382},{"type":849,"tag":993,"props":4254,"children":4255},{"style":1006},[4256],{"type":858,"value":3387},{"type":849,"tag":993,"props":4258,"children":4259},{"style":1809},[4260],{"type":858,"value":3392},{"type":849,"tag":993,"props":4262,"children":4263},{"style":1006},[4264],{"type":858,"value":3387},{"type":849,"tag":993,"props":4266,"children":4267},{"style":1809},[4268],{"type":858,"value":3392},{"type":849,"tag":993,"props":4270,"children":4271},{"style":1006},[4272],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":4275,"children":4276},{"class":995,"style":996},[4277],{"type":849,"tag":993,"props":4278,"children":4279},{"style":1006},[4280],{"type":858,"value":4281},"    })",{"type":858,"value":1032},{"type":849,"tag":993,"props":4284,"children":4285},{"class":995,"style":996},[4286,4291,4295,4299,4303,4307,4312,4316,4320,4324,4329,4333,4337,4342,4346,4351,4355,4359,4364],{"type":849,"tag":993,"props":4287,"children":4288},{"style":1000},[4289],{"type":858,"value":4290},"    await",{"type":849,"tag":993,"props":4292,"children":4293},{"style":1012},[4294],{"type":858,"value":2663},{"type":849,"tag":993,"props":4296,"children":4297},{"style":1006},[4298],{"type":858,"value":936},{"type":849,"tag":993,"props":4300,"children":4301},{"style":1012},[4302],{"type":858,"value":2672},{"type":849,"tag":993,"props":4304,"children":4305},{"style":1006},[4306],{"type":858,"value":936},{"type":849,"tag":993,"props":4308,"children":4309},{"style":1156},[4310],{"type":858,"value":4311},"patch",{"type":849,"tag":993,"props":4313,"children":4314},{"style":1006},[4315],{"type":858,"value":1189},{"type":849,"tag":993,"props":4317,"children":4318},{"style":1012},[4319],{"type":858,"value":4046},{"type":849,"tag":993,"props":4321,"children":4322},{"style":1006},[4323],{"type":858,"value":1198},{"type":849,"tag":993,"props":4325,"children":4326},{"style":1012},[4327],{"type":858,"value":4328},"receipt:",{"type":849,"tag":993,"props":4330,"children":4331},{"style":1012},[4332],{"type":858,"value":4183},{"type":849,"tag":993,"props":4334,"children":4335},{"style":1006},[4336],{"type":858,"value":936},{"type":849,"tag":993,"props":4338,"children":4339},{"style":1012},[4340],{"type":858,"value":4341},"storageId",{"type":849,"tag":993,"props":4343,"children":4344},{"style":1006},[4345],{"type":858,"value":1213},{"type":849,"tag":993,"props":4347,"children":4348},{"style":1012},[4349],{"type":858,"value":4350},"receiptSha256:",{"type":849,"tag":993,"props":4352,"children":4353},{"style":1012},[4354],{"type":858,"value":4183},{"type":849,"tag":993,"props":4356,"children":4357},{"style":1006},[4358],{"type":858,"value":936},{"type":849,"tag":993,"props":4360,"children":4361},{"style":1012},[4362],{"type":858,"value":4363},"sha256",{"type":849,"tag":993,"props":4365,"children":4366},{"style":1006},[4367],{"type":858,"value":1223},{"type":858,"value":1032},{"type":849,"tag":993,"props":4370,"children":4371},{"class":995,"style":996},[4372,4377],{"type":849,"tag":993,"props":4373,"children":4374},{"style":1000},[4375],{"type":858,"value":4376},"    return",{"type":849,"tag":993,"props":4378,"children":4379},{"style":1076},[4380],{"type":858,"value":4381}," null",{"type":858,"value":1032},{"type":849,"tag":993,"props":4384,"children":4385},{"class":995,"style":996},[4386],{"type":849,"tag":993,"props":4387,"children":4388},{"style":1006},[4389],{"type":858,"value":3413},{"type":858,"value":1032},{"type":849,"tag":993,"props":4392,"children":4393},{"class":995,"style":996},[4394],{"type":849,"tag":993,"props":4395,"children":4396},{"style":1006},[4397],{"type":858,"value":4398},"})",{"type":849,"tag":850,"props":4400,"children":4401},{},[4402,4406,4408,4413,4415,4419],{"type":849,"tag":854,"props":4403,"children":4404},{},[4405],{"type":858,"value":2971},{"type":858,"value":4407}," returns ",{"type":849,"tag":854,"props":4409,"children":4410},{},[4411],{"type":858,"value":4412},"{ storageId, type, size, sha256 }",{"type":858,"value":4414},". The same file sent\ntwice has the same ",{"type":849,"tag":854,"props":4416,"children":4417},{},[4418],{"type":858,"value":4363},{"type":858,"value":4420},", so a tool can find a duplicate with an index on\nit. A tool that needs a person's approval claims the file when the person\napproves, as the same agent connection.",{"type":849,"tag":2980,"props":4422,"children":4424},{"id":4423},"files-from-agents-what-the-agent-sees",[4425],{"type":858,"value":4426},"What the agent sees",{"type":849,"tag":850,"props":4428,"children":4429},{},[4430,4434,4435,4440],{"type":849,"tag":854,"props":4431,"children":4432},{},[4433],{"type":858,"value":2942},{"type":858,"value":3551},{"type":849,"tag":854,"props":4436,"children":4437},{},[4438],{"type":858,"value":4439},"count",{"type":858,"value":4441},", from 1 to 20 files, and returns the URL, the\ntokens and short instructions:",{"type":849,"tag":982,"props":4443,"children":4445},{"language":4444,"class":986},"json",[4446],{"type":849,"tag":854,"props":4447,"children":4449},{"class":4448},"language-json",[4450,4458,4459,4482,4483,4504,4505,4527,4528,4549,4550,4571,4572,4594,4595],{"type":849,"tag":993,"props":4451,"children":4452},{"class":995,"style":996},[4453],{"type":849,"tag":993,"props":4454,"children":4455},{"style":1006},[4456],{"type":858,"value":4457},"{",{"type":858,"value":1032},{"type":849,"tag":993,"props":4460,"children":4461},{"class":995,"style":996},[4462,4468,4473,4478],{"type":849,"tag":993,"props":4463,"children":4465},{"style":4464},"color:#0451A5;--shiki-dark:#9CDCFE",[4466],{"type":858,"value":4467},"  \"url\"",{"type":849,"tag":993,"props":4469,"children":4470},{"style":1006},[4471],{"type":858,"value":4472},": ",{"type":849,"tag":993,"props":4474,"children":4475},{"style":1027},[4476],{"type":858,"value":4477},"\"https:\u002F\u002Fhappy-otter-123.convex.site\u002Fmcp\u002Fupload\"",{"type":849,"tag":993,"props":4479,"children":4480},{"style":1006},[4481],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":4484,"children":4485},{"class":995,"style":996},[4486,4491,4495,4500],{"type":849,"tag":993,"props":4487,"children":4488},{"style":4464},[4489],{"type":858,"value":4490},"  \"method\"",{"type":849,"tag":993,"props":4492,"children":4493},{"style":1006},[4494],{"type":858,"value":4472},{"type":849,"tag":993,"props":4496,"children":4497},{"style":1027},[4498],{"type":858,"value":4499},"\"POST\"",{"type":849,"tag":993,"props":4501,"children":4502},{"style":1006},[4503],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":4506,"children":4507},{"class":995,"style":996},[4508,4513,4518,4523],{"type":849,"tag":993,"props":4509,"children":4510},{"style":4464},[4511],{"type":858,"value":4512},"  \"tokens\"",{"type":849,"tag":993,"props":4514,"children":4515},{"style":1006},[4516],{"type":858,"value":4517},": [",{"type":849,"tag":993,"props":4519,"children":4520},{"style":1027},[4521],{"type":858,"value":4522},"\"bcu_…\"",{"type":849,"tag":993,"props":4524,"children":4525},{"style":1006},[4526],{"type":858,"value":4239},{"type":858,"value":1032},{"type":849,"tag":993,"props":4529,"children":4530},{"class":995,"style":996},[4531,4536,4540,4545],{"type":849,"tag":993,"props":4532,"children":4533},{"style":4464},[4534],{"type":858,"value":4535},"  \"expiresAt\"",{"type":849,"tag":993,"props":4537,"children":4538},{"style":1006},[4539],{"type":858,"value":4472},{"type":849,"tag":993,"props":4541,"children":4542},{"style":1027},[4543],{"type":858,"value":4544},"\"2026-10-15T09:30:00.000Z\"",{"type":849,"tag":993,"props":4546,"children":4547},{"style":1006},[4548],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":4551,"children":4552},{"class":995,"style":996},[4553,4558,4562,4567],{"type":849,"tag":993,"props":4554,"children":4555},{"style":4464},[4556],{"type":858,"value":4557},"  \"maxBytes\"",{"type":849,"tag":993,"props":4559,"children":4560},{"style":1006},[4561],{"type":858,"value":4472},{"type":849,"tag":993,"props":4563,"children":4564},{"style":1809},[4565],{"type":858,"value":4566},"10485760",{"type":849,"tag":993,"props":4568,"children":4569},{"style":1006},[4570],{"type":858,"value":2146},{"type":858,"value":1032},{"type":849,"tag":993,"props":4573,"children":4574},{"class":995,"style":996},[4575,4580,4584,4589],{"type":849,"tag":993,"props":4576,"children":4577},{"style":4464},[4578],{"type":858,"value":4579},"  \"types\"",{"type":849,"tag":993,"props":4581,"children":4582},{"style":1006},[4583],{"type":858,"value":4517},{"type":849,"tag":993,"props":4585,"children":4586},{"style":1027},[4587],{"type":858,"value":4588},"\"application\u002Fpdf\"",{"type":849,"tag":993,"props":4590,"children":4591},{"style":1006},[4592],{"type":858,"value":4593},"]",{"type":858,"value":1032},{"type":849,"tag":993,"props":4596,"children":4597},{"class":995,"style":996},[4598],{"type":849,"tag":993,"props":4599,"children":4600},{"style":1006},[4601],{"type":858,"value":1412},{"type":849,"tag":850,"props":4603,"children":4604},{},[4605],{"type":858,"value":4606},"The agent sends each file as the raw request body:",{"type":849,"tag":982,"props":4608,"children":4610},{"language":4609,"class":986},"bash",[4611],{"type":849,"tag":854,"props":4612,"children":4614},{"class":4613},"language-bash",[4615],{"type":849,"tag":993,"props":4616,"children":4617},{"class":995,"style":996},[4618,4623,4628,4633,4638,4643,4648,4653],{"type":849,"tag":993,"props":4619,"children":4620},{"style":1156},[4621],{"type":858,"value":4622},"curl",{"type":849,"tag":993,"props":4624,"children":4625},{"style":1076},[4626],{"type":858,"value":4627}," -X",{"type":849,"tag":993,"props":4629,"children":4630},{"style":1027},[4631],{"type":858,"value":4632}," POST",{"type":849,"tag":993,"props":4634,"children":4635},{"style":1076},[4636],{"type":858,"value":4637}," --data-binary",{"type":849,"tag":993,"props":4639,"children":4640},{"style":1027},[4641],{"type":858,"value":4642}," @receipt.pdf",{"type":849,"tag":993,"props":4644,"children":4645},{"style":1076},[4646],{"type":858,"value":4647}," -H",{"type":849,"tag":993,"props":4649,"children":4650},{"style":1027},[4651],{"type":858,"value":4652}," \"Authorization: Bearer bcu_…\"",{"type":849,"tag":993,"props":4654,"children":4655},{"style":1027},[4656],{"type":858,"value":4657}," https:\u002F\u002Fhappy-otter-123.convex.site\u002Fmcp\u002Fupload",{"type":849,"tag":850,"props":4659,"children":4660},{},[4661,4663,4668,4670,4675,4677,4682,4684,4688,4690,4694,4696,4701,4703,4708,4710,4714],{"type":858,"value":4662},"The route answers ",{"type":849,"tag":854,"props":4664,"children":4665},{},[4666],{"type":858,"value":4667},"201",{"type":858,"value":4669}," with ",{"type":849,"tag":854,"props":4671,"children":4672},{},[4673],{"type":858,"value":4674},"{ uploadId, type, size, sha256 }",{"type":858,"value":4676},". It answers\n",{"type":849,"tag":854,"props":4678,"children":4679},{},[4680],{"type":858,"value":4681},"401",{"type":858,"value":4683}," for a token that expired, was used or never existed, ",{"type":849,"tag":854,"props":4685,"children":4686},{},[4687],{"type":858,"value":1611},{"type":858,"value":4689}," for a file\nover ",{"type":849,"tag":854,"props":4691,"children":4692},{},[4693],{"type":858,"value":3588},{"type":858,"value":4695},", and ",{"type":849,"tag":854,"props":4697,"children":4698},{},[4699],{"type":858,"value":4700},"415",{"type":858,"value":4702}," for a file of another type. A refused file is not\nstored. Without a valid token the route reads at most 4 MiB of a refused\nbody, so a larger file may get a ",{"type":849,"tag":854,"props":4704,"children":4705},{},[4706],{"type":858,"value":4707},"520",{"type":858,"value":4709}," from Convex instead of the ",{"type":849,"tag":854,"props":4711,"children":4712},{},[4713],{"type":858,"value":4681},{"type":858,"value":936},{"type":849,"tag":2980,"props":4716,"children":4718},{"id":4717},"files-from-agents-limits-and-cleanup",[4719],{"type":858,"value":4720},"Limits and cleanup",{"type":849,"tag":4722,"props":4723,"children":4724},"table",{},[4725,4749],{"type":849,"tag":4726,"props":4727,"children":4728},"thead",{},[4729],{"type":849,"tag":4730,"props":4731,"children":4732},"tr",{},[4733,4739,4744],{"type":849,"tag":4734,"props":4735,"children":4736},"th",{},[4737],{"type":858,"value":4738},"Limit",{"type":849,"tag":4734,"props":4740,"children":4741},{},[4742],{"type":858,"value":4743},"Value",{"type":849,"tag":4734,"props":4745,"children":4746},{},[4747],{"type":858,"value":4748},"When reached",{"type":849,"tag":4750,"props":4751,"children":4752},"tbody",{},[4753,4780,4803,4825,4853],{"type":849,"tag":4730,"props":4754,"children":4755},{},[4756,4768,4773],{"type":849,"tag":4757,"props":4758,"children":4759},"td",{},[4760,4762,4766],{"type":858,"value":4761},"Links in one ",{"type":849,"tag":854,"props":4763,"children":4764},{},[4765],{"type":858,"value":2942},{"type":858,"value":4767}," call",{"type":849,"tag":4757,"props":4769,"children":4770},{},[4771],{"type":858,"value":4772},"1 to 20",{"type":849,"tag":4757,"props":4774,"children":4775},{},[4776],{"type":849,"tag":854,"props":4777,"children":4778},{},[4779],{"type":858,"value":3048},{"type":849,"tag":4730,"props":4781,"children":4782},{},[4783,4788,4793],{"type":849,"tag":4757,"props":4784,"children":4785},{},[4786],{"type":858,"value":4787},"Links and files a connection leaves unclaimed",{"type":849,"tag":4757,"props":4789,"children":4790},{},[4791],{"type":858,"value":4792},"100",{"type":849,"tag":4757,"props":4794,"children":4795},{},[4796,4801],{"type":849,"tag":854,"props":4797,"children":4798},{},[4799],{"type":858,"value":4800},"RATE_LIMITED",{"type":858,"value":4802},"; use them, or wait until they expire",{"type":849,"tag":4730,"props":4804,"children":4805},{},[4806,4811,4816],{"type":849,"tag":4757,"props":4807,"children":4808},{},[4809],{"type":858,"value":4810},"Time to send a file with a link",{"type":849,"tag":4757,"props":4812,"children":4813},{},[4814],{"type":858,"value":4815},"15 minutes",{"type":849,"tag":4757,"props":4817,"children":4818},{},[4819,4821],{"type":858,"value":4820},"the route answers ",{"type":849,"tag":854,"props":4822,"children":4823},{},[4824],{"type":858,"value":4681},{"type":849,"tag":4730,"props":4826,"children":4827},{},[4828,4833,4838],{"type":849,"tag":4757,"props":4829,"children":4830},{},[4831],{"type":858,"value":4832},"Time to claim a stored file",{"type":849,"tag":4757,"props":4834,"children":4835},{},[4836],{"type":858,"value":4837},"24 hours",{"type":849,"tag":4757,"props":4839,"children":4840},{},[4841,4845,4847,4851],{"type":849,"tag":854,"props":4842,"children":4843},{},[4844],{"type":858,"value":3041},{"type":858,"value":4846},"; ",{"type":849,"tag":854,"props":4848,"children":4849},{},[4850],{"type":858,"value":1670},{"type":858,"value":4852}," deletes the file",{"type":849,"tag":4730,"props":4854,"children":4855},{},[4856,4861,4866],{"type":849,"tag":4757,"props":4857,"children":4858},{},[4859],{"type":858,"value":4860},"Record of a claimed upload",{"type":849,"tag":4757,"props":4862,"children":4863},{},[4864],{"type":858,"value":4865},"30 days",{"type":849,"tag":4757,"props":4867,"children":4868},{},[4869,4873],{"type":849,"tag":854,"props":4870,"children":4871},{},[4872],{"type":858,"value":1670},{"type":858,"value":4874}," deletes the record; the file stays",{"type":849,"tag":850,"props":4876,"children":4877},{},[4878,4882,4884,4888],{"type":849,"tag":854,"props":4879,"children":4880},{},[4881],{"type":858,"value":2942},{"type":858,"value":4883}," counts against the 60 writes a minute of the connection.\n",{"type":849,"tag":854,"props":4885,"children":4886},{},[4887],{"type":858,"value":1670},{"type":858,"value":4889}," deletes expired links and unclaimed files in the same run as\nthe other retention work, and account deletion removes a person's links and\nunclaimed files. A claimed file belongs to the row that stores its ID: delete\nit with that row.",{"type":849,"tag":2980,"props":4891,"children":4893},{"id":4892},"files-from-agents-cost",[4894],{"type":858,"value":522},{"type":849,"tag":883,"props":4896,"children":4897},{},[4898,4907,4912],{"type":849,"tag":887,"props":4899,"children":4900},{},[4901,4905],{"type":849,"tag":854,"props":4902,"children":4903},{},[4904],{"type":858,"value":2942},{"type":858,"value":4906},": reads up to 202 upload rows of the connection by index, writes one row per link and one rate-limit row.",{"type":849,"tag":887,"props":4908,"children":4909},{},[4910],{"type":858,"value":4911},"The upload route: one query, one storage write and one mutation that writes one row.",{"type":849,"tag":887,"props":4913,"children":4914},{},[4915,4919],{"type":849,"tag":854,"props":4916,"children":4917},{},[4918],{"type":858,"value":2971},{"type":858,"value":4920},": reads and writes one row. It invalidates no query of the application.",{"type":849,"tag":938,"props":4922,"children":4924},{"id":4923},"connect-a-host",[4925],{"type":858,"value":4926},"Connect a host",{"type":849,"tag":850,"props":4928,"children":4929},{},[4930,4932,4937,4939,4943,4945,4949],{"type":858,"value":4931},"Create one OAuth client for each host with ",{"type":849,"tag":854,"props":4933,"children":4934},{},[4935],{"type":858,"value":4936},"auth.oauthOperator.createHostClient",{"type":858,"value":4938},",\nthen follow ",{"type":849,"tag":893,"props":4940,"children":4941},{"href":474},[4942],{"type":858,"value":470},{"type":858,"value":4944},".\nHosts keep the tool list until they reconnect; see the rule for changing\ntools in ",{"type":849,"tag":893,"props":4946,"children":4947},{"href":441},[4948],{"type":858,"value":437},{"type":858,"value":936},{"type":849,"tag":850,"props":4951,"children":4952},{},[4953,4957,4959,4964,4966,4970],{"type":849,"tag":854,"props":4954,"children":4955},{},[4956],{"type":858,"value":859},{"type":858,"value":4958}," uses ",{"type":849,"tag":854,"props":4960,"children":4961},{},[4962],{"type":858,"value":4963},"handleMcpRequest",{"type":858,"value":4965}," under it. To register tools by\nhand, without operations, see ",{"type":849,"tag":893,"props":4967,"children":4968},{"href":462},[4969],{"type":858,"value":457},{"type":858,"value":936},{"title":4972,"searchDepth":4973,"depth":4973,"links":4974},"",4,[4975,4977,4978,4979,4981,4982,4983,4992],{"id":940,"depth":4976,"text":943},2,{"id":977,"depth":4976,"text":980},{"id":1594,"depth":4976,"text":1597},{"id":1631,"depth":4976,"text":4980},"Set SITE_URL",{"id":1659,"depth":4976,"text":1662},{"id":1865,"depth":4976,"text":1868},{"id":2921,"depth":4976,"text":2924,"children":4984},[4985,4987,4988,4989,4990,4991],{"id":2982,"depth":4986,"text":2985},3,{"id":3053,"depth":4986,"text":3056},{"id":3687,"depth":4986,"text":3690},{"id":4423,"depth":4986,"text":4426},{"id":4717,"depth":4986,"text":4720},{"id":4892,"depth":4986,"text":522},{"id":4923,"depth":4976,"text":4926},"markdown","docs",{"source":4996,"path":4997,"stem":4998,"dir":1218,"extension":4999},"content","docs\u002F3.build\u002F7.agents\u002F2.mcp-door.md","docs\u002F3.build\u002F7.agents\u002F2.mcp-door","md",{"requestedPath":448,"resolvedPath":448,"alternates":5001},[],{"requested":5003,"resolved":5004,"usedFallback":6},{},{"locale":8},{"previous":5006,"next":5008},{"title":437,"id":438,"canonicalKey":439,"locale":8,"draft":6,"navigation":5007,"icon":415,"path":441},{"icon":415},{"title":450,"id":451,"canonicalKey":452,"locale":8,"draft":6,"navigation":5009,"icon":454,"path":455},{"icon":454},{"left":5011,"top":5011,"width":5012,"height":5012,"rotate":5011,"vFlip":6,"hFlip":6,"body":5013},0,256,"\u003Cpath fill=\"#3178c6\" d=\"M20 0h216c11.046 0 20 8.954 20 20v216c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20V20C0 8.954 8.954 0 20 0\"\u002F>\u003Cpath fill=\"#fff\" d=\"M150.518 200.475v27.62q6.738 3.453 15.938 5.179T185.849 235q9.934 0 18.874-1.899t15.678-6.257q6.738-4.359 10.669-11.394q3.93-7.033 3.93-17.391q0-7.51-2.246-13.163a30.8 30.8 0 0 0-6.479-10.055q-4.232-4.402-10.149-7.898t-13.347-6.602q-5.442-2.245-9.761-4.359t-7.342-4.316q-3.024-2.2-4.665-4.661t-1.641-5.567q0-2.848 1.468-5.135q1.469-2.288 4.147-3.927t6.565-2.547q3.887-.906 8.638-.906q3.456 0 7.299.518q3.844.517 7.732 1.597a54 54 0 0 1 7.558 2.719a41.7 41.7 0 0 1 6.781 3.797v-25.807q-6.306-2.417-13.778-3.582T198.633 107q-9.847 0-18.658 2.115q-8.811 2.114-15.506 6.602q-6.694 4.49-10.582 11.437Q150 134.102 150 143.769q0 12.342 7.127 21.06t21.638 14.759a292 292 0 0 1 10.625 4.575q4.924 2.244 8.509 4.66t5.658 5.265t2.073 6.474a9.9 9.9 0 0 1-1.296 4.963q-1.295 2.287-3.93 3.97t-6.565 2.632t-9.2.95q-8.983 0-17.794-3.151t-16.327-9.451m-46.036-68.733H140V109H41v22.742h35.345V233h28.137z\"\u002F>",{"left":5011,"top":5011,"width":5015,"height":5015,"rotate":5011,"vFlip":6,"hFlip":6,"body":5016},24,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2a2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1m8 0h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1\"\u002F>",{"left":5011,"top":5011,"width":5015,"height":5015,"rotate":5011,"vFlip":6,"hFlip":6,"body":5018},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 19h8M4 17l6-6l-6-6\"\u002F>",{"left":5011,"top":5011,"width":5015,"height":5015,"rotate":5011,"vFlip":6,"hFlip":6,"body":5020},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\"\u002F>\u003Cpath d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\"\u002F>\u003C\u002Fg>",1794905502745]