1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8170],{30505:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-hub/mcp",function(){return t(18487)}])},8968:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var a=t(11527),o=t(87827),r=t(25067),i=t(25654),c=t(24925),s=t.n(c),l=t(69864);let d=[{hrefLang:"en",baseUrl:"https://www.octoparse.com"},{hrefLang:"ja",baseUrl:"https://www.octoparse.jp"},{hrefLang:"es",baseUrl:"https://www.octoparse.es"},{hrefLang:"de",baseUrl:"https://www.octoparse.de"},{hrefLang:"fr",baseUrl:"https://www.octoparse.fr"},{hrefLang:"it",baseUrl:"https://www.octoparse.it"},{hrefLang:"ko",baseUrl:"https://www.octoparse.kr"},{hrefLang:"x-default",baseUrl:"https://www.octoparse.com"}],p=e=>{let n=e.searchParams.getAll("page"),t=e.searchParams.getAll("pageSize"),a=new URLSearchParams;return n.forEach(e=>a.set("page",e)),t.forEach(e=>a.set("pageSize",e)),e.search=a.toString(),e.href};function u(e){let{title:n,keywords:t,description:c,ogTitle:u,ogDescription:m,ogKeyword:h,ogImage:_,twitterCard:g,twitterTitle:f,twitterDescription:b,robots:x,showCanonical:v=!0,preconnectStaticCdn:j=!1,showAlternates:y=!0,children:k}=e,{i18n:w}=(0,i.$G)(),A=(0,l.useRouter)(),L=new URL(A.asPath,o.o6),N=/^\/blog\/?/.test(A.pathname)?p(L):String(new URL(L.pathname,L.origin)),C=new URL(N),P="".concat(C.pathname).concat(C.search),R=A.asPath&&A.asPath.includes("template")?"template":A.asPath.includes("blog")?"blog":"public",T=_?(0,r.ZP)({src:_.startsWith("http")?_:new URL(_,o.o6).toString()}):(0,r.ZP)({src:new URL("".concat(r.Ll["fr-FR"],"/og/").concat(R,".png"),o.o6).toString()});return(0,a.jsxs)(s(),{children:[(0,a.jsx)("title",{children:n}),t&&(0,a.jsx)("meta",{name:"keywords",content:t}),c&&(0,a.jsx)("meta",{name:"description",content:c}),x&&(0,a.jsx)("meta",{name:"robots",content:x}),g&&(0,a.jsx)("meta",{name:"twitter:card",content:g}),f&&(0,a.jsx)("meta",{name:"twitter:title",content:f}),b&&(0,a.jsx)("meta",{name:"twitter:description",content:b}),j&&(0,a.jsx)("link",{rel:"preconnect",href:"https://static.octoparse.com"}),v&&(0,a.jsx)("link",{rel:"canonical",href:N}),v&&y&&!A.pathname.startsWith("/blog/")&&d.map(e=>{let{hrefLang:n,baseUrl:t}=e;return(0,a.jsx)("link",{rel:"alternate",hrefLang:n,href:new URL(P,t).toString()},n)}),(!k||_)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{property:"og:image",content:T}),(0,a.jsx)("meta",{property:"twitter:image",content:T})]}),(0,a.jsx)("meta",{property:"og:site_name",content:"Octoparse"}),(!k||_)&&(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:title",content:u||n}),(0,a.jsx)("meta",{property:"og:description",content:m||""}),h&&(0,a.jsx)("meta",{property:"og:keyword",content:h}),(!k||_)&&(0,a.jsx)("meta",{property:"og:image:width",content:"1200"}),(!k||_)&&(0,a.jsx)("meta",{property:"og:image:height",content:"630"}),(0,a.jsx)("meta",{property:"og:url",content:N}),(0,a.jsx)("meta",{property:"og:locale",content:w.language}),k]})}},51329:function(e,n,t){"use strict";var a=t(11527),o=t(93372),r=t(79931),i=t(13046),c=t(50442),s=t(28510),l=t(9151),d=t(87827),p=t(17888),u=t.n(p),m=t(25654),h=t(15481),_=t.n(h),g=t(67422),f=t.n(g),b=t(43330),x=t.n(b);let v=()=>{let{t:e,i18n:n}=(0,m.$G)("data-hub"),t="".concat((0,d.Ct)(n.language),"/datahub");return(0,a.jsxs)("footer",{className:x().footer,children:[(0,a.jsxs)("div",{className:x().row,children:[(0,a.jsxs)("div",{className:x().social,children:[(0,a.jsx)("span",{children:e("footer.followUs")}),(0,a.jsx)(f(),{href:e("common:Footer.LinkedinURL"),target:"_blank","aria-label":"LinkedIn",children:(0,a.jsx)(_(),{src:i.Z,alt:"",width:28,height:28})}),(0,a.jsx)(f(),{href:e("common:Footer.TwitterURL"),target:"_blank","aria-label":"X",children:(0,a.jsx)(c.Z,{className:"size-7 text-ink","aria-hidden":!0})}),(0,a.jsx)(f(),{href:e("common:Footer.YoutubeURL"),target:"_blank","aria-label":"YouTube",children:(0,a.jsx)(_(),{src:s.Z,alt:"",width:28,height:28})}),(0,a.jsx)(f(),{href:"https://discord.gg/zCq9WDmEPa",target:"_blank","aria-label":"Discord",children:(0,a.jsx)(o.Z,{className:"size-7 text-ink","aria-hidden":!0})}),(0,a.jsx)(f(),{href:"https://github.com/octoparse",target:"_blank","aria-label":"GitHub",children:(0,a.jsx)(r.Z,{className:"size-7 text-ink","aria-hidden":!0})})]}),(0,a.jsxs)("nav",{className:x().links,"aria-label":e("footer.navAria"),children:[(0,a.jsx)(f(),{href:"/data-hub",children:e("footer.market")}),(0,a.jsx)(f(),{href:"/data-hub/mcp",children:e("footer.mcp")}),(0,a.jsx)(f(),{href:"/data-hub/console",children:e("footer.openPlatform")}),(0,a.jsx)("a",{href:t,target:"_blank",rel:"noreferrer",children:e("footer.docs")}),(0,a.jsx)("a",{href:"mailto:[email protected]",children:e("footer.contactTitle")})]})]}),(0,a.jsxs)("div",{className:x().row,children:[(0,a.jsxs)(f(),{href:"/data-hub",className:x().brand,"aria-label":e("footer.homeAria"),children:[(0,a.jsx)(_(),{src:l.Z,alt:"Octoparse",height:26}),(0,a.jsx)("span",{children:"Data Hub"})]}),(0,a.jsxs)("div",{className:x().legal,children:[(0,a.jsx)("span",{children:e("common:Footer.Copyright",{year:u()().year()})}),(0,a.jsx)(f(),{href:e("common:Footer.TermsURL"),children:e("common:Footer.Terms")}
1),(0,a.jsx)(f(),{href:e("common:Footer.PrivacyURL"),children:e("common:Footer.Privacy")})]})]})]})};n.Z=v},73777:function(e,n,t){"use strict";t.d(n,{NW:function(){return o},lb:function(){return r}});let a="USD",o=e=>{e&&(a=e)},r=function(e){let{min:n=2,max:t=4}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?"â":new Intl.NumberFormat("fr-FR",{style:"currency",currency:a,minimumFractionDigits:n,maximumFractionDigits:Math.max(n,t)}).format(e)}},85835:function(e,n,t){"use strict";t.d(n,{CZ:function(){return Y},Cf:function(){return C},LA:function(){return F},Nh:function(){return E},Rt:function(){return b},VG:function(){return B},WB:function(){return m},Wz:function(){return u},Z:function(){return S},_v:function(){return h},bd:function(){return G},fg:function(){return L},go:function(){return D},i6:function(){return z},l5:function(){return w},lG:function(){return H},ng:function(){return f},nj:function(){return K},p6:function(){return U},q4:function(){return N},tD:function(){return O},tn:function(){return I},v1:function(){return p},vC:function(){return P},y:function(){return T}});var a,o,r,i,c=t(17888),s=t.n(c);t(69753);let l="fr-FR",d={amazon:"/static/data-os/amazon-logo.png",google:"/static/data-os/google-maps.svg",google_maps:"/static/data-os/google-maps.svg",linkedin:"/static/data-os/linkedin.svg",shopify:"/static/data-os/shopify-logo.png"},p=e=>null!==(a=null==e?void 0:e.capability)&&void 0!==a?a:"data-acquisition",u=(e,n)=>e("data-processing"===p(n)?"derive.capability.dataProcessing":"derive.capability.dataAcquisition"),m=["industry","platform","content"],h={industry:2,content:3},_=["/static/data-os/publisher-avatars/cartoon-man.png","/static/data-os/publisher-avatars/cartoon-woman.png","/static/data-os/publisher-avatars/cartoon-cat.png","/static/data-os/publisher-avatars/cartoon-dog.png","/static/data-os/publisher-avatars/mountain-lake.png","/static/data-os/publisher-avatars/forest-path.png"],g=e=>{let n=2166136261;for(let t=0;t<e.length;t+=1)n^=e.charCodeAt(t),n=Math.imul(n,16777619);return n>>>0},f=e=>(e||"").trim().slice(0,1).toUpperCase()||"\xb7",b=e=>{var n;let t=(null!==(n=null==e?void 0:e.platform)&&void 0!==n?n:[]).find(e=>d[e.slug]);return t?d[t.slug]:null},x=(e,n)=>(null!==(o=null==e?void 0:e[n])&&void 0!==o?o:[]).map(e=>e.slug),v="__unlabeled__",j=e=>"data-acquisition"===p(e.discovery),y=(e,n)=>j(e)&&0===x(e.labels,n).length,k=(e,n,t)=>t===v?y(e,n):x(e.labels,n).includes(t),w=e=>m.flatMap(n=>(null!==(r=null==e?void 0:e[n])&&void 0!==r?r:[]).map(e=>e.label)),A=e=>{let n=(null!=e?e:"anonymous").trim().toLowerCase();return"octoparse"===n?"/static/share_logo.png":_[g(n)%_.length]},L=(e,n)=>{var t,a;let o=!!n&&((null==e?void 0:e.id)===(null==n?void 0:n.userId)||(null==e?void 0:null===(t=e.name)||void 0===t?void 0:t.toLowerCase())===(null==n?void 0:null===(a=n.userName)||void 0===a?void 0:a.toLowerCase()));return o&&(null==n?void 0:n.avatar)?n.avatar:(null==e?void 0:e.avatar_url)||A((null==e?void 0:e.id)||(null==e?void 0:e.name))},N=(e,n)=>"official"===n?e("derive.trust.official"):"partner"===n?e("derive.trust.partner"):null,C=(e,n)=>{if(!n)return e("derive.status.published");let t={published:"derive.status.published",draft:"derive.status.draft",deprecated:"derive.status.deprecated"};return e(t[n]?t[n]:"derive.status.published")},P=(e,n)=>n?"v".concat(n):e("derive.unpublished"),R=e=>e("derive.maintenanceReason"),T=(e,n,t)=>"deprecated"===n?{blocked:!0,label:e("derive.status.deprecated"),reason:e("derive.deprecatedReason")}:!1===t?{blocked:!0,label:e("detail.rail.maintenance"),reason:R(e)}:{blocked:!1},S=(e,n)=>(null==n?void 0:n.mode)!=="async"?null:n.recovers_partial_on_cancel?{tier:"recover",label:e("derive.cancel.recover.label"),detail:e("derive.cancel.recover.detail")}:n.cancel_notify?{tier:"notify",label:e("derive.cancel.notify.label"),detail:e("derive.cancel.notify.detail")}:{tier:"basic",label:e("derive.cancel.basic.label"),detail:e("derive.cancel.basic.detail")},U=e=>{if(!e)return"â";let n=s()(e);return n.isValid()?n.format("YYYY-MM-DD"):"â"},I=e=>null==e?"â":"".concat((100*e).toFixed(1),"%"),Y=e=>
1null==e?"â":e.toLocaleString(l),B=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.toLocaleString(l,{maximumFractionDigits:n})},K=e=>{var n,t;return null!==(i=null===(n=e.versions)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.published_at)&&void 0!==i?i:null},H=()=>({industry:[],platform:[],content:[]}),O=(e,n)=>!n||p(e.discovery)===n,D=(e,n)=>m.every(t=>{var a;let o=null!==(a=n[t])&&void 0!==a?a:[];return!o.length||o.some(n=>k(e,t,n))}),z=(e,n)=>{var t,a,o,r,i,c;let s=n.trim().toLowerCase();if(!s)return!0;let l=m.flatMap(n=>{var t;return(null!==(i=null===(t=e.labels)||void 0===t?void 0:t[n])&&void 0!==i?i:[]).flatMap(e=>[e.label,e.slug])});return[e.app_name,null===(t=e.identity)||void 0===t?void 0:t.name,null===(a=e.identity)||void 0===a?void 0:a.summary,null===(o=e.publisher)||void 0===o?void 0:o.name,p(e.discovery),...l,...null!==(c=null===(r=e.discovery)||void 0===r?void 0:r.keywords)&&void 0!==c?c:[]].filter(Boolean).join(" ").toLowerCase().includes(s)},E=function(e,n){let{unlabeledLabel:t}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=new Set(n.flatMap(n=>x(n.labels,e.facet))),o=e.values.filter(e=>a.has(e.slug)).map(e=>{let{slug:n,label:t}=e;return{slug:n,label:t}});return t&&n.some(n=>y(n,e.facet))&&o.push({slug:v,label:t}),o},F=(e,n,t,a)=>{let{keyword:o,capability:r,selection:i}=a,c={...i,[n]:[]};return e.filter(e=>z(e,o)&&O(e,r)&&D(e,c)&&k(e,n,t)).length},G=(e,n,t)=>{let{keyword:a,capability:o,selection:r}=t,i={...r,[n]:[]};return e.filter(e=>z(e,a)&&O(e,o)&&D(e,i)).length}},6730:function(e,n,t){"use strict";t.d(n,{Bk:function(){return h},I0:function(){return c},LR:function(){return m},NO:function(){return g},Qf:function(){return r},Y5:function(){return f},ei:function(){return u},h6:function(){return i},ix:function(){return s},nU:function(){return b},rS:function(){return o},wW:function(){return _}});var a=t(87827);let o=a.s8,r=a.w3,i=[{key:"discovery",labelKey:"mcpLanding.toolGroup.discovery"},{key:"runs",labelKey:"mcpLanding.toolGroup.runs"}],c=[{name:"search_data_apps",group:"discovery",descKey:"mcpLanding.tool.searchDataApps"},{name:"get_data_app_details",group:"discovery",descKey:"mcpLanding.tool.getDataAppDetails"},{name:"run_data_app",group:"runs",descKey:"mcpLanding.tool.runDataApp"},{name:"get_run_status",group:"runs",descKey:"mcpLanding.tool.getRunStatus"},{name:"get_run_result",group:"runs",descKey:"mcpLanding.tool.getRunResult"},{name:"cancel_run",group:"runs",descKey:"mcpLanding.tool.cancelRun"},{name:"list_runs",group:"runs",descKey:"mcpLanding.tool.listRuns"}],s=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.length?"".concat(o,"?pin=").concat(n.join(",")):o},l=function(e,n,t){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return"".concat(a?"// .cursor/mcp.json\n":"",'{\n "mcpServers": {\n "').concat(n,'": {\n "type": "http",\n "url": "').concat(e,'"').concat("apikey"===t?',\n "headers": { "Authorization": "Bearer <YOUR_API_KEY>" }':"","\n }\n }\n}").concat("oauth"===t&&a?"\n// After saving, click the login button for this server in Cursor MCP settings and finish authorization in the browser":"")},d=(e,n,t)=>"oauth"===t?"# Run the following command in your terminal; sign in to your Octoparse account when prompted\nclaude mcp add ".concat(n,' "').concat(e,'" -t http\n# The first connection opens a browser to sign in; you can also type /mcp inside a session to trigger auth manually'):"# Replace <YOUR_API_KEY> with your API key, then run in your terminal\nclaude mcp add ".concat(n,' "').concat(e,'" \\\n -t http --header "Authorization: Bearer <YOUR_API_KEY>"'),p=(e,n,t)=>"oauth"===t?"# Run the following commands to add the MCP server and finish browser authorization\ncodex mcp add ".concat(n,' --url "').concat(e,'"\ncodex mcp login ').concat(n," # Opens a browser to sign in to your Octoparse account"):'# Put your API key in an environment variable first, then add via CLI\nexport DATAHUB_API_KEY="<YOUR_API_KEY>
1"\ncodex mcp add '.concat(n,' --url "').concat(e,'" \\\n --bearer-token-env-var DATAHUB_API_KEY\n\n# Or edit ~/.codex/config.toml directly\n[mcp_servers.').concat(n,']\nurl = "').concat(e,'"\nbearer_token_env_var = "DATAHUB_API_KEY"'),u=e=>e.replace(/\//g,"__"),m=[{key:"json",label:"JSON",lang:"mcpServers config",snippet:(e,n,t)=>l(e,n,t)},{key:"claude-code",label:"Claude Code",lang:"Terminal",snippet:d},{key:"codex",label:"Codex",lang:"Terminal / config.toml",snippet:p},{key:"cursor",label:"Cursor",lang:".cursor/mcp.json",snippet:(e,n,t)=>l(e,n,t,!0)}],h=(e,n)=>"Install an MCP server named ".concat(n," (Streamable HTTP) in this client:\n- Server URL: ").concat(e,"\n- Authentication, pick one:\n 1. Recommended: set the request header Authorization: Bearer <API Key>. Ask me for the API key before writing the config. Do not commit the API key to a shared repo, and do not use a login access token (expires in ~24 hours) in place of an API key;\n 2. If I prefer not to provide a key and this client supports MCP OAuth login: leave credentials out of the config â the first connection returns a 401 challenge and automatically guides me through browser authorization.\n- Configure it the standard way for this client (mcp.json / config.toml / CLI are all fine). Only do the configuration; do not perform any other actions.\nWhen done, remind me to restart or reload the client (for the OAuth path, guide me through the browser login), and confirm that tools like search_data_apps and run_data_app are available."),_=(e,n)=>"# 1) Submit a run; for fast apps add ?wait=60 to wait for the terminal state directly\ncurl -X POST '".concat(r,"/v1/data-apps/").concat(e,"/runs?wait=60' \\\n -H 'Authorization: Bearer <YOUR_API_KEY>' \\\n -H 'Content-Type: application/json' \\\n -d '").concat(n,"'\n\n# 2) Long-running tasks: poll the run status (also supports ?wait= long polling)\ncurl -H 'Authorization: Bearer <YOUR_API_KEY>' \\\n '").concat(r,"/v1/runs/<run_id>'\n\n# 3) Fetch results: read with pagination, or export everything with format=jsonl / csv\ncurl -H 'Authorization: Bearer <YOUR_API_KEY>' \\\n '").concat(r,"/v1/runs/<run_id>/records?limit=50'"),g=(e,n)=>'# pip install bazhuayu-client\nfrom bazhuayu_client import Client\n\nwith Client(base_url="'.concat(r,'", api_key="<YOUR_API_KEY>") as client:\n run = client.call("').concat(e,'", ').concat(n,') # Submit and wait for the terminal state\n for record in client.iterate_records(run["run_id"]): # Auto-paginate through all results\n print(record)'),f=(e,n)=>'// npm install bazhuayu-client\nimport { Client } from "bazhuayu-client";\n\nconst client = new Client({ baseUrl: "'.concat(r,'", apiKey: "<YOUR_API_KEY>" });\nconst run = await client.call("').concat(e,'", ').concat(n,"); // Submit and wait for the terminal state\nfor await (const record of client.iterateRecords(run.run_id)) { // Auto-paginate through all results\n console.log(record);\n}"),b=e=>{let n=e.split("/").pop()||e;return"# JSONL: one record per line â good for streaming and incremental ingestion\ncurl -H 'Authorization: Bearer <YOUR_API_KEY>' \\\n '".concat(r,"/v1/runs/<run_id>/records?format=jsonl' > ").concat(n,".jsonl\n\n# CSV: fields selects columns, limit caps a single request at 10000 records\ncurl -H 'Authorization: Bearer <YOUR_API_KEY>' \\\n '").concat(r,"/v1/runs/<run_id>/records?format=csv&limit=10000' > ").concat(n,".csv")}},18487:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return C}});var a=t(11527),o=t(8968),r=t(51329),i=t(89501),c=t(73777),s=t(85835),l=t(69753),d=t(6730),p=t(22258),u=t(25654),m=t(15481),h=t.n(m),_=t(67422),g=t.n(_),f=t(69864),b=t(50959),x=t(71661),v=t.n(x);let j="octoparse_datahub",y=()=>(0,a.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:[(0,a.jsx)("rect",{x:"4.5",y:"4.5",width:"8",height:"8",rx:"1.5",stroke:"currentColor",strokeWidth:"1.2"}),(0,a.jsx)("path",{d:"M9.5 4.5V3a1.5 1.5 0 0 0-1.5-1.5H3A1.5 1.5 0 0 0 1.5 3v5A1.5 1.5 0 0 0 3 9.5h1.5",stroke:"currentColor",strokeWidth:"1.2"})]}),k=()=>(0,a.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:[(0,a.jsx)("rect",{x:"2",y:"4.5",width:"10",height:"7",rx:"1.5",stroke:"currentColor",strokeWidth:"1.2"}),(0,a.jsx)("path",{d:"M7 4.5V2M5 2h4",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}
1),(0,a.jsx)("circle",{cx:"5",cy:"8",r:"0.9",fill:"currentColor"}),(0,a.jsx)("circle",{cx:"9",cy:"8",r:"0.9",fill:"currentColor"})]}),w=()=>(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[(0,a.jsx)("circle",{cx:"7",cy:"7",r:"5",stroke:"currentColor",strokeWidth:"1.5"}),(0,a.jsx)("path",{d:"M11 11L14 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),A=e=>{if(!e)return[];let n=Array.isArray(e)?e:[e];return[...new Set(n.flatMap(e=>e.split(",")).map(e=>e.trim()).filter(Boolean))]},L=[{ask:"What do customers think about these earbuds?",calls:[["amazon-reviews","200 records \xb7 9s"],["review-sentiment","200 records \xb7 3s"]],answer:"62% positive, mostly about sound quality. 17% negative, almost all about battery life."},{ask:"Enrich these three leads with industry and headcount.",calls:[["company-enrichment","3 records \xb7 4s"]],answer:"Notion: Software, 800+. Klarna: Fintech, 5,000+. Ramp: Fintech, 1,000+."},{ask:"How many data engineer jobs opened in Berlin this week?",calls:[["linkedin-job-search","140 records \xb7 12s"],["dedupe-normalize","118 records \xb7 2s"]],answer:"118 new openings. Top employers: Zalando (12), N26 (7), Delivery Hero (5)."}],N=e=>{var n;let{apps:t,currency:i,noindex:m}=e,{t:_}=(0,u.$G)("data-hub");(0,c.NW)(i);let x=(0,f.useRouter)(),[N,C]=(0,b.useState)(""),[P,R]=(0,b.useState)([]),[T,S]=(0,b.useState)("apikey"),[U,I]=(0,b.useState)("url"),[Y,B]=(0,b.useState)(!1),[K,H]=(0,b.useState)([]),[O,D]=(0,b.useState)(null),z=(0,b.useRef)();(0,b.useEffect)(()=>()=>clearTimeout(z.current),[]);let[E,F]=(0,b.useState)(0);(0,b.useEffect)(()=>{var e;if(null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-reduced-motion: reduce)").matches)return;let n=setInterval(()=>F(e=>(e+1)%L.length),7e3);return()=>clearInterval(n)},[]);let G=L[E];(0,b.useEffect)(()=>{if(!x.isReady)return;let e=A(x.query.add).filter(e=>t.some(n=>(0,l.fj)(n)===e));e.length&&R(e)},[t,x.isReady,x.query.add]);let M=(0,b.useMemo)(()=>t.filter(e=>P.includes((0,l.fj)(e))),[t,P]),W=(0,b.useMemo)(()=>M.map(e=>(0,l.fj)(e)),[M]),Z=(0,b.useMemo)(()=>t.filter(e=>(0,s.i6)(e,N)),[t,N]),q=(0,d.ix)(...W),Q=null!==(n=d.LR.find(e=>e.key===U))&&void 0!==n?n:d.LR[0],X=Q.snippet(q,j,T),J=(0,a.jsxs)("div",{className:v().configToolsetSummary,children:[(0,a.jsx)("span",{children:_("mcpLanding.toolset.current")}),(0,a.jsx)("b",{children:_("mcpLanding.toolset.fixedAlways")}),(0,a.jsx)("i",{children:"\xb7"}),(0,a.jsx)("b",{children:M.length?_("mcpLanding.toolset.appCount",{count:M.length}):_("mcpLanding.toolset.noApps")})]}),V=()=>{C(""),H(P),B(!0)},$=e=>{H(n=>n.includes(e)?n.filter(n=>n!==e):[...n,e])},ee=e=>{R(P.filter(n=>n!==e))},en=e=>{D(e),clearTimeout(z.current),z.current=setTimeout(()=>D(null),2e3)},et=async(e,n)=>{try{await navigator.clipboard.writeText(e),en(n)}catch(e){en(_("mcpLanding.copyFailed"))}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.Z,{title:_("mcpLanding.meta.title"),keywords:_("mcpLanding.meta.keywords"),description:_("mcpLanding.meta.description"),robots:m?"noindex, follow":void 0}),(0,a.jsxs)("div",{className:v().page,children:[O&&(0,a.jsx)("div",{className:v().copyToast,children:O}),(0,a.jsx)("section",{className:v().hero,children:(0,a.jsxs)("div",{className:"".concat(v().sectionInner," ").concat(v().heroInner),children:[(0,a.jsxs)("div",{className:v().heroCopy,children:[(0,a.jsx)("h1",{children:(0,a.jsx)(u.cC,{t:_,i18nKey:"mcpLanding.hero.title",components:[(0,a.jsx)("mark",{},"hl")]})}),(0,a.jsx)("p",{children:_("mcpLanding.hero.subtitle")}),(0,a.jsxs)("div",{className:v().heroActions,children:[(0,a.jsxs)("button",{type:"button",className:v().btnPrimary,onClick:()=>et((0,d.Bk)(q,j),_("mcpLanding.copied.installPrompt")),children:[(0,a.jsx)(k,{})," ",_("mcpLanding.hero.aiInstall")]}),(0,a.jsxs)("button",{type:"button",className:v().btnSecondary,onClick:()=>et(q,_("mcpLanding.copied.url")),children:[(0,a.jsx)(y,{})," ",_("mcpLanding.hero.copyUrl")]})]})]}),(0,a.jsx)("div",{className:v().heroDemo,"aria-hidden":"true",children:(0,a.jsxs)("div",{className:v().chat,children:[(0,a.jsx)("p",{className:v().bubbleAsk,style:{animationDelay:"0.15s"},children:G.ask}),G.calls.map((e,n)=>{let[t,o]=e;return(0,a.jsxs)("span",{className:v().toolCall,style:{animationDelay:"".concat(.7+.5*n,"s")},children:[(0,a.jsx)("i",{}),(0,a.jsx)("code",{children:"run_data_app"}),(0,a.jsx)("b",{children:t}),(0,a.jsx)("em",{children:o})]},t)}),(0,a.jsx)("p",{className:v().bubbleAnswer,style:{animationDelay:"".concat(.7+.5*G.calls.length+.35,"s")},children:G.answer})]},E)})]})}),(0,a.jsx)("section",{className:v().connectionSection,id:"config",children:(0,a.jsx)("div",{className:v().sectionInner,children:(0,a.jsxs)("div",{className:v().configurationWorkspace,children:[(0,a.jsxs)("div",{className:v().connectionContent,children:[(0,a.jsx)("div",{className:v().connectionHeader,children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{children:_("mcpLanding.config.title")}
1),(0,a.jsxs)("p",{children:[_("mcpLanding.config.subtitle"),(0,a.jsx)(g(),{className:v().subtitleApiKeyLink,href:"/data-hub/console/api-keys",children:_("mcpLanding.config.getApiKey")})]})]})}),(0,a.jsxs)("div",{className:v().configPreview,children:[(0,a.jsx)("div",{className:v().configTopBar,children:(0,a.jsxs)("div",{className:v().configTabs,role:"tablist","aria-label":_("mcpLanding.config.formatAriaLabel"),children:[(0,a.jsx)("button",{type:"button",role:"tab","aria-selected":"url"===U,className:"url"===U?v().activeConfigTab:void 0,onClick:()=>I("url"),children:_("mcpLanding.config.serverUrlTab")}),d.LR.map(e=>(0,a.jsx)("button",{type:"button",role:"tab","aria-selected":U===e.key,className:U===e.key?v().activeConfigTab:void 0,onClick:()=>I(e.key),children:"json"===e.key?_("mcpLanding.config.genericJson"):e.label},e.key))]})}),"url"!==U&&(0,a.jsxs)("div",{className:v().configControlBar,children:[J,(0,a.jsxs)("div",{className:v().configActionsGroup,children:[(0,a.jsxs)("div",{className:v().configAuthGroup,children:[(0,a.jsx)("span",{children:_("mcpLanding.auth.label")}),(0,a.jsx)("div",{className:v().configAuth,role:"tablist","aria-label":_("mcpLanding.auth.label"),children:[["apikey",_("mcpLanding.auth.apiKey")],["oauth",_("mcpLanding.auth.oauth")]].map(e=>{let[n,t]=e;return(0,a.jsx)("button",{type:"button",role:"tab","aria-selected":T===n,className:T===n?v().activeAuth:void 0,onClick:()=>S(n),children:t},n)})})]}),(0,a.jsxs)("button",{className:v().configTopAction,type:"button",onClick:()=>et(X,_("mcpLanding.copied.config",{client:Q.label})),children:[(0,a.jsx)(y,{})," ",_("mcpLanding.config.copyConfig")]})]})]}),"url"===U&&(0,a.jsxs)("div",{className:v().configControlBar,children:[J,(0,a.jsx)("div",{className:v().configActionsGroup,children:(0,a.jsxs)("div",{className:v().urlQuickActions,children:[(0,a.jsxs)("button",{type:"button",onClick:()=>et(q,_("mcpLanding.copied.url")),children:[(0,a.jsx)(y,{})," ",_("mcpLanding.config.copyUrl")]}),(0,a.jsxs)("button",{type:"button",onClick:()=>et((0,d.Bk)(q,j),_("mcpLanding.copied.installPrompt")),children:[(0,a.jsx)(k,{})," ",_("mcpLanding.hero.aiInstall")]})]})})]}),"url"===U?(0,a.jsx)("div",{className:v().configUrlContent,children:(0,a.jsx)("div",{className:v().serverUrlField,children:(0,a.jsx)("code",{children:q})})}):(0,a.jsx)("pre",{children:X})]})]}),(0,a.jsxs)("div",{className:v().toolsetArea,id:"toolset",children:[(0,a.jsxs)("div",{className:v().dedicatedHeader,children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:v().toolsetTitle,children:[(0,a.jsx)("h2",{children:_("mcpLanding.toolset.title")}),(0,a.jsx)("span",{children:_("mcpLanding.toolset.optional")})]}),(0,a.jsx)("p",{children:_("mcpLanding.toolset.hint")})]}),(0,a.jsx)("button",{type:"button",className:v().btnPrimary,onClick:V,children:_("mcpLanding.addApp")})]}),(0,a.jsxs)("div",{className:v().toolsetGrid,children:[(0,a.jsxs)("div",{className:v().fixedToolsPanel,children:[(0,a.jsxs)("div",{className:v().panelHeader,children:[(0,a.jsx)("b",{children:_("mcpLanding.fixedTools.title")}),(0,a.jsx)("span",{children:_("mcpLanding.fixedTools.hint")})]}),(0,a.jsx)("div",{className:v().fixedToolGroups,children:d.h6.map(e=>{let n=d.I0.filter(n=>
1n.group===e.key);return(0,a.jsxs)("div",{className:v().toolGroup,children:[(0,a.jsx)("div",{className:v().groupLabel,children:(0,a.jsx)("b",{children:_(e.labelKey)})}),(0,a.jsx)("div",{className:v().toolOptions,children:n.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("code",{children:e.name}),(0,a.jsx)("span",{children:_(e.descKey)})]},e.name))})]},e.key)})})]}),(0,a.jsxs)("div",{className:v().appToolsPanel,children:[(0,a.jsxs)("div",{className:v().panelHeader,children:[(0,a.jsx)("b",{children:_("mcpLanding.dedicatedApps.title")}),(0,a.jsx)("span",{children:_("mcpLanding.dedicatedApps.hint")})]}),M.length?(0,a.jsxs)("div",{className:v().selectedApps,children:[(0,a.jsxs)("div",{className:v().selectedAppsHead,children:[(0,a.jsx)("b",{children:_("mcpLanding.dedicatedApps.selectedCount",{count:M.length})}),(0,a.jsx)("button",{type:"button",onClick:()=>R([]),children:_("mcpLanding.dedicatedApps.clear")})]}),(0,a.jsx)("ul",{children:M.map(e=>(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:v().appLogo,children:(0,s.Rt)(e.labels)?(0,a.jsx)(h(),{src:(0,s.Rt)(e.labels),alt:"",width:20,height:20}):(0,s.ng)(e.identity.name)}),(0,a.jsx)("span",{title:e.identity.name,children:e.identity.name}),(0,a.jsx)("button",{type:"button","aria-label":_("mcpLanding.dedicatedApps.remove",{name:e.identity.name}),onClick:()=>ee((0,l.fj)(e)),children:"\xd7"})]},(0,l.fj)(e)))})]}):(0,a.jsx)("div",{className:v().emptyApps,children:(0,a.jsxs)("span",{children:[_("mcpLanding.dedicatedApps.emptyHint"),(0,a.jsx)("button",{type:"button",onClick:V,children:_("mcpLanding.addApp")})]})})]})]})]})]})})}),(0,a.jsxs)(p.u,{opened:Y,title:_("mcpLanding.picker.title"),size:720,onClose:()=>B(!1),zIndex:1100,classNames:{content:v().page},children:[(0,a.jsx)("p",{className:v().modalHint,children:_("mcpLanding.picker.hint")}),(0,a.jsx)("div",{className:v().pickerToolbar,children:(0,a.jsxs)("div",{className:v().searchBox,children:[(0,a.jsx)(w,{}),(0,a.jsx)("input",{value:N,placeholder:_("mcpLanding.picker.searchPlaceholder"),onChange:e=>C(e.target.value)}),N&&(0,a.jsx)("button",{type:"button","aria-label":_("market.clearSearch"),onClick:()=>C(""),children:"\xd7"})]})}),(0,a.jsx)("div",{className:v().appList,children:Z.map(e=>{let n=(0,l.fj)(e),t=K.includes(n),o=(0,s.Rt)(e.labels);return(0,a.jsxs)("label",{className:t?v().selectedApp:void 0,children:[(0,a.jsx)("input",{type:"checkbox",checked:t,onChange:()=>$(n)}),(0,a.jsx)("span",{className:v().modalLogo,children:o?(0,a.jsx)(h(),{src:o,alt:"",width:24,height:24}):(0,s.ng)(e.identity.name)}),(0,a.jsxs)("span",{className:v().modalAppInfo,children:[(0,a.jsx)("b",{children:e.identity.name}),(0,a.jsx)("small",{children:(0,s.l5)(e.labels).slice(0,2).join(" \xb7 ")||e.identity.summary})]}),(0,a.jsx)(g(),{href:(0,l.l6)(e),onClick:e=>e.stopPropagation(),children:_("mcpLanding.picker.viewDetails")})]},n)})}),!Z.length&&(0,a.jsx)("div",{className:v().empty,children:_("mcpLanding.picker.empty")}),(0,a.jsxs)("div",{className:v().modalFooter,children:[(0,a.jsx)("button",{type:"button",className:v().btnSecondary,onClick:()=>B(!1),children:_("mcpLanding.picker.cancel")}),(0,a.jsx)("button",{type:"button",className:v().btnPrimary,onClick:()=>{R(K),B(!1)},children:_("mcpLanding.picker.confirm",{count:K.length})})]})]}),(0,a.jsx)(r.Z,{})]})]})};N.getLayout=function(e){return(0,i.G)(e,!1,!1)};var C=!0;n.default=N},43330:function(e){e.exports={inner:"data-hub-footer_inner__ccMb3",bottom:"data-hub-footer_bottom__bmKoJ",footer:"data-hub-footer_footer__pt7XA",intro:"data-hub-footer_intro__mNVXQ",brand:"data-hub-footer_brand__XZjFu",contact:"data-hub-footer_contact__JSyf0",nav:"data-hub-footer_nav__jqAF2",community:"data-hub-footer_community__DS8n5",qrcodeBox:"data-hub-footer_qrcodeBox__SUhYW",textLink:"data-hub-footer_textLink__OX6NU",row:"data-hub-footer_row__C1yf_",links:"data-hub-footer_links__MOKDi",social:"data-hub-footer_social__iHkC6",legal:"data-hub-footer_legal__qSys9"}},71661:function(e){e.exports={page:"mcp_page__9JWr7",sectionInner:"mcp_sectionInner___2PaZ",hero:"mcp_hero__L_7qO",heroInner:"mcp_heroInner__7y5RX",kicker:"mcp_kicker__Rm_Ua",heroCopy:"mcp_heroCopy__RhHJQ",heroDemo:"mcp_heroDemo__QB9O9",chat:"mcp_chat__Wn74a",bubbleAsk:"mcp_bubbleAsk__Whlzw",bubbleAnswer:"mcp_bubbleAnswer__p2Vmv",toolCall:"mcp_toolCall__iBkdG",chatIn:"mcp_chatIn__3ORjk",heroActions:"mcp_heroActions__PuQ8J",btnPrimary:"mcp_btnPrimary__4tf5N",btnSecondary:"mcp_btnSecondary__1ny0a",connectionSection:"mcp_connectionSection__UcNDD",configurationWorkspace:"mcp_configurationWorkspace__8P3xW",connectionContent:"mcp_connectionContent__NMZWx",toolsetArea:"mcp_toolsetArea__wBbBX",connectionHeader:"mcp_connectionHeader__onNMk",dedicatedHeader:"mcp_dedicatedHeader__GcaRm",subtitleApiKeyLink:"mcp_subt
1itleApiKeyLink__kmjAs",configPreview:"mcp_configPreview__AYjPH",configTopBar:"mcp_configTopBar__QKYQ9",configTabs:"mcp_configTabs__U_BTR",configAuth:"mcp_configAuth__1lKpk",configControlBar:"mcp_configControlBar__qTfjK",configToolsetSummary:"mcp_configToolsetSummary__Mu_31",configActionsGroup:"mcp_configActionsGroup__jzqct",configAuthGroup:"mcp_configAuthGroup__YeuEi",activeAuth:"mcp_activeAuth__bDo8Y",configTopAction:"mcp_configTopAction__IjEj0",activeConfigTab:"mcp_activeConfigTab___zcY3",configUrlContent:"mcp_configUrlContent__SvxpA",urlQuickActions:"mcp_urlQuickActions__4mG2u",serverUrlField:"mcp_serverUrlField__YDv_S",toolsetTitle:"mcp_toolsetTitle__pE7j2",toolsetGrid:"mcp_toolsetGrid___kzj6",fixedToolsPanel:"mcp_fixedToolsPanel__hbgVB",appToolsPanel:"mcp_appToolsPanel__y_Epv",panelHeader:"mcp_panelHeader__1S_lS",fixedToolGroups:"mcp_fixedToolGroups__w5Yp4",toolGroup:"mcp_toolGroup__ZQbsD",groupLabel:"mcp_groupLabel__ob0pN",toolOptions:"mcp_toolOptions__UT708",selectedApps:"mcp_selectedApps__M9_XZ",selectedAppsHead:"mcp_selectedAppsHead__ugZ9R",appLogo:"mcp_appLogo___ydJp",emptyApps:"mcp_emptyApps__7a4NQ",emptyAppsIcon:"mcp_emptyAppsIcon__1KJIH",modalHint:"mcp_modalHint__XyLyA",pickerToolbar:"mcp_pickerToolbar__Od71R",searchBox:"mcp_searchBox___wPjr",appList:"mcp_appList__oVHVC",selectedApp:"mcp_selectedApp__Bgdlq",modalLogo:"mcp_modalLogo__Hhkge",modalAppInfo:"mcp_modalAppInfo__o1vpW",empty:"mcp_empty___7A7Q",copyToast:"mcp_copyToast__iRfEH",modalFooter:"mcp_modalFooter__YGmOt"}}},function(e){e.O(0,[6841,5989,8827,6919,9501,9774,2888,179],function(){return e(e.s=30505)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.