[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-786464-105":59,"doc-detail-786464-en":130,"doc-similar-786464":160},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","claude-code-execution-with-mcp-primer","Claude Code Execution with MCP Primer","","The readout explains how code execution can improve MCP-based agents through on-demand tool loading, code-based filtering, and keeping intermediate data outside model context. It covers privacy controls, tokenization, deterministic data-flow rules, persistent files, reusable skills, and code-based control flow. It balances lower token costs and latency against sandboxing, resource limits, monitoring, and operational complexity, then connects these patterns to Anthropic documentation and notes data-handling limits.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/claude-code-execution-with-mcp-primer/786464/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/claude-code-execution-with-mcp-primer/786464.png","ImageObject",300,407,{"name":92,"@type":93},"SALUTone","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-12-05","2026-12-04",true,{"@type":102,"interactionType":103,"userInteractionCount":14},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"How can code execution improve MCP-based agents?","Question",{"text":112,"@type":113},"It supports on-demand tool loading, filtering bulky results in code, and handling polling, retries, or branching in code.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What privacy and state practices does the readout describe?",{"text":117,"@type":113},"Intermediate results can remain outside the model context, while tokenization and deterministic data-flow rules offer additional controls. Files and saved code can preserve work across runs, and reusable skills can support repeated tasks.",{"name":119,"@type":110,"acceptedAnswer":120},"What operational risks should be weighed against the benefits?",{"text":121,"@type":113},"Code execution adds complexity and requires a secure execution environment, sandboxing, resource limits, and monitoring. These costs should be considered alongside potential reductions in token use and latency.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},786464,1796427083,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":14,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":29,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":19,"preview_urls":144},5909897206756,"https://ap-avatar.wpscdn.com/avatar/5600152dbe4a7e99502?x-image-process=image/resize,m_fixed,w_180,h_180&k=1792654152478566863","CODE EXECUTION WITH MCP READOUT  \nCode Execution with MCP  \nLoad fewer tools, keep bulky data out of the model’s context  \nA visual readout of presenting MCP servers as code APIs: on-demand tool loading, filtering and control flow in code, privacy, state, and skills.  \nFIRST-PARTY POST AND DOCS / INDEPENDENT LUMINITY SYNTHESIS  \nCode Execution with MCP  \nSource verified Nov 5, 2026  \nClaude Architect Practice  \nCO D E EX EC UT IO N W IT H MC P · A R EA DO UT · 0 3  \nPrivacy and state  \nIntermediate results stay in the execution environment by default. Files and saved code carry work across runs.  \n01  \nPrivacy-preserving operations  \n| BY D E FA U LT\u003Cbr>Intermediate results stay in the execution environment, so data you don’t want to share never enters context |  | S E NS IT IV E WO R K LOA DS\u003Cbr>The harness can tokenize PII automatically: the MCP client intercepts it before it reaches the model | D ET E R M I N IST IC R U L ES\u003Cbr>Define security rules for where data can flow to and from |  |\n| --- | --- | --- | --- | --- |\n| 02 |  |  |  |  |\n| State persistence and skills\u003Cbr>\u003Cbr>1\u003Cbr>Write to files\u003Cbr>intermediate results, so work can resume\u003Cbr>2\u003Cbr>Save as a function\u003Cbr>working code kept in ./skills/\u003Cbr>3\u003Cbr>[Add a SKILL. md](Add a SKILL. md)\u003Cbr>a structured skill models can reference\u003Cbr>Skills are folders of reusable instructions, scripts, and resources for models to improve performance on specialized tasks. |  |  |  | \u003Cbr>Toolbox\u003Cbr>higher-level capabilities |\n| L U M I N I T Y N O T E\u003Cbr>N O T S TAT E D | • The article describes tokenization as something the harness or MCP client can do\u003Cbr>• Any specific product that ships it | • Confirm what your own harness implements |  |  |  |\n\nSources: Anthropic Engineering,“Code execution with MCP: Building more efficient agents,” anthropic.com/research/code-execution-with-mcp (published Nov. 4, 2025; retrieved Nov. 5, 2026) . Sections: “Privacy-preserving operations” and “State persistence and skills.” The flow graphic is Luminity’s rendering; the tokenized output is the article’s, wrapped for width. The note strip is Luminity’s. Informational, not legal or compliance advice.  \nAttribution: Anthropic, Claude and Claude Code are trademarks of Anthropic PBC. Independent analysis of public documentation; not sponsored or endorsed by Anthropic. © 2026 Luminity Digital, Inc.  \nCO D E EX EC UT IO N W IT H MC P · A R EA DO UT · 0 4  \nWeigh the cost  \nThe article’s own caveat and summary, then a Luminity decision aid that maps its patterns to common situations.  \n01  \nThe article’s caveat  \n! Code execution introduces its own complexity ARTICLE  \n! Agent-generated code needs a secure execution environment ARTICLE  \n! Sandboxing, resource limits, and monitoring ARTICLE  \nOperational overhead that direct tool calls avoid ARTICLE  \nWeigh against · reduced token costs, lower latency, improved tool composition  \n02  \nYour situation → the matching pattern  \n✓ Many servers or tools connected → PROGRESSIVE DISCLOSURE  \n✓ Large documents or datasets between tools → FILTER IN CODE  \n✓ Polling, retries, or branching → CONTROL FLOW IN CODE  \n✓ Sensitive fields in tool data → TOKEN IZ E AT CLIENT  \n✓ Tasks the agent repeats → SAVE AS SKILLS  \nLuminity’s reading, not tested guidance. Check first: sandbox, resource limits, monitoring.  \nT H E A U T H O R S • Invite readers who implement this to share findings with the MCP community | • Anthropic’s docs now describe related features (next slide)  \nSources: Anthropic Engineering,“Code execution with MCP: Building more efficient agents,” anthropic.com/research/code-execution-with-mcp (published Nov. 4, 2025; retrieved Nov. 5, 2026) . Sections: the caveat paragraph that closes “State persistence and skills,” and “Summary.” The situation-to-pattern mapping and the “not product documentation” and “not named” cards are Luminity’s observations.  \nAttribution: Anthropic, Claude and Claude Code are trademarks of Anthropic PBC. Independent analysis of public docume","cbCailDx93oTyySv","https://ap.wps.com/l/cbCailDx93oTyySv","pdf",993378,"English","# Privacy and state\n## Privacy-preserving operations\n## State persistence and skills\n# Weigh the cost\n## The article’s caveat\n## Your situation and the matching pattern\n# In Anthropic’s documentation\n## Article ideas and documented features\n## Data-handling lines","[{\"question\":\"How can code execution improve MCP-based agents?\",\"answer\":\"It supports on-demand tool loading, filtering bulky results in code, and handling polling, retries, or branching in code.\"},{\"question\":\"What privacy and state practices does the readout describe?\",\"answer\":\"Intermediate results can remain outside the model context, while tokenization and deterministic data-flow rules offer additional controls. Files and saved code can preserve work across runs, and reusable skills can support repeated tasks.\"},{\"question\":\"What operational risks should be weighed against the benefits?\",\"answer\":\"Code execution adds complexity and requires a secure execution environment, sandboxing, resource limits, and monitoring. These costs should be considered alongside potential reductions in token use and latency.\"}]","Claude Code Execution with MCP Primer | PDF",15,[145,149,153,156],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/483a5834a1fc56d568bdcc766be26b04.webp",983,552,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/a63e675471d3131742d183a5a16e7523.webp",982,551,{"page_no":81,"url":154,"width":155,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/e7de411c9c9504c3a4efc0d3aec8f654.webp",981,{"page_no":19,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/af66941fa47cc27c7a8fcb3780331d49.webp",980,550,{"list":161,"token":66},[162,168,175,182,188,195,201,207,214,220],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":41,"category_name":30,"create_tm":167},81579,"Programming over Thinking: Efficient and Robust Multi-Constraint Planning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808627462/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796587079&Signature=J082M8qotY9gL7AZf7cis8HTnv4%3D","programming-over-thinking-efficient-and-robust-multi-constraint-planning",1784174444,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":173,"category_name":30,"create_tm":174},687618,"Anthropic Academy Playbook - Key concepts and takeaways from all 18 courses","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262897/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796587079&Signature=yYOzrEhWt%2FOSdcG5bRxrUT23ci0%3D","anthropic-academy-playbook-key-concepts-and-takeaways-from-all-18-courses",25,1794084309,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":180,"category_name":30,"create_tm":181},696835,"Claude Code Complete User Handbook - Version 1.0 - Guidance","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009178485/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796587079&Signature=N5xDJJO5FTz8EJhSWcwlg1J9hqU%3D","claude-code-complete-user-handbook-version-10-guidance",11,1794435025,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":14,"category_name":30,"create_tm":187},786480,"Enterprise Claw Agent - Automation Anywhere - Readme","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230057395269/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796587079&Signature=cZMsm8CQL%2F5pMuUAU9UJSE8SDbg%3D","enterprise-claw-agent-automation-anywhere-readme",1796427234,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":193,"category_name":30,"create_tm":194},129534,"Text Analytics Toolbox - Reference R2026a","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229842235847/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796587079&Signature=71794ApE43S4ZjGI3FZS%2BGNE%2FH8%3D","text-analytics-toolbox-reference-r2026a",27,1786106440,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":52,"category_name":30,"create_tm":200},401854,"Tableau Prep Help - Version Current - Last Updated 5/20/2020","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229919819409/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796587079&Signature=1UWDVKlVUNmWGrGXb67M7%2FdSsCk%3D","tableau-prep-help-version-current-last-updated-5202020",1790524704,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":180,"category_name":30,"create_tm":206},733003,"Claude Code MCP Integration - Connect Your AI to Every Tool You Use","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031415110/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796587079&Signature=i1%2FB4hsrkTJkt8g0Hb6Q1xg7%2Bx0%3D","claude-code-mcp-integration-connect-your-ai-to-every-tool-you-use",1795383257,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":30,"create_tm":213},665423,"Inspector 3.0 with MCP Server - Quick Start Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983852492/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796587079&Signature=Ahj637vUX%2Bw4lJpmKIJffx9l79o%3D","inspector-30-with-mcp-server-quick-start-guide",16,1793302899,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":19,"category_name":30,"create_tm":219},786476,"Agent Skills Handbook","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230057395001/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796587079&Signature=XcuyuAJV5UB%2FJDCNohTqjUaYOdc%3D","agent-skills-handbook",1796427192,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":8,"category_name":30,"create_tm":225},786470,"Choi - CyVerse Arizona - AI Verde MCP Server - Bridging Generative AI with CyVerse Data Resources","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230057394412/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796587079&Signature=m60qfv7zR%2FBFnKvUtZxo%2BPZ35Tk%3D","choi-cyverse-arizona-ai-verde-mcp-server-bridging-generative-ai-with-cyverse-data-resources",1796427103]