[{"data":1,"prerenderedAt":662},["ShallowReactive",2],{"navigation_docs":3,"trending-repo-mobile-next\u002Fmobile-mcp":249,"page-views-\u002Ftrending\u002Fmobile-next\u002Fmobile-mcp":660},[4,29,104,124,194],{"title":5,"icon":6,"path":7,"stem":8,"children":9},"Start",false,"\u002Fstart","1.start",[10,14,19,24],{"title":11,"path":7,"stem":12,"icon":13},"What jscpd finds","1.start\u002Findex","i-lucide-house",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fstart\u002Finstallation","1.start\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Quickstart","\u002Fstart\u002Fquickstart","1.start\u002F3.quickstart","i-lucide-rocket",{"title":25,"path":26,"stem":27,"icon":28},"Configuration basics","\u002Fstart\u002Fconfiguration","1.start\u002F4.configuration","i-lucide-settings-2",{"title":30,"icon":6,"path":31,"stem":32,"children":33,"page":6},"Guides","\u002Fguides","2.guides",[34,39,44,49,54,59,64,69,74,79,84,89,94,99],{"title":35,"path":36,"stem":37,"icon":38},"Use jscpd in CI","\u002Fguides\u002Fci","2.guides\u002F01.ci","i-lucide-github",{"title":40,"path":41,"stem":42,"icon":43},"Pre-commit hooks","\u002Fguides\u002Fpre-commit","2.guides\u002F02.pre-commit","i-lucide-git-commit",{"title":45,"path":46,"stem":47,"icon":48},"Fail only on new duplication","\u002Fguides\u002Fbaseline","2.guides\u002F03.baseline","i-lucide-git-compare",{"title":50,"path":51,"stem":52,"icon":53},"Monorepos","\u002Fguides\u002Fmonorepos","2.guides\u002F04.monorepos","i-lucide-folder-tree",{"title":55,"path":56,"stem":57,"icon":58},"Cross-format detection","\u002Fguides\u002Fcross-format","2.guides\u002F05.cross-format","i-lucide-layers",{"title":60,"path":61,"stem":62,"icon":63},"Agents","\u002Fguides\u002Fagents","2.guides\u002F06.agents","i-lucide-cpu",{"title":65,"path":66,"stem":67,"icon":68},"Editors","\u002Fguides\u002Feditors","2.guides\u002F07.editors","i-lucide-code",{"title":70,"path":71,"stem":72,"icon":73},"Duplication over git history","\u002Fguides\u002Fhistory","2.guides\u002F08.history","i-lucide-chart-no-axes-combined",{"title":75,"path":76,"stem":77,"icon":78},"Dashboard and health score","\u002Fguides\u002Fdashboard","2.guides\u002F09.dashboard","i-lucide-layout-dashboard",{"title":80,"path":81,"stem":82,"icon":83},"Dead code","\u002Fguides\u002Fdead-code","2.guides\u002F10.dead-code","i-lucide-ghost",{"title":85,"path":86,"stem":87,"icon":88},"Comparing two codebases","\u002Fguides\u002Fcompare","2.guides\u002F11.compare","i-lucide-git-compare-arrows",{"title":90,"path":91,"stem":92,"icon":93},"Semantic clones","\u002Fguides\u002Fsemantic-clones","2.guides\u002F12.semantic-clones","i-lucide-brain-circuit",{"title":95,"path":96,"stem":97,"icon":98},"Similar functions","\u002Fguides\u002Fsimilarity","2.guides\u002F13.similarity","i-lucide-list-tree",{"title":100,"path":101,"stem":102,"icon":103},"Boundaries","\u002Fguides\u002Fboundaries","2.guides\u002F14.boundaries","i-lucide-fence",{"title":105,"icon":6,"path":106,"stem":107,"children":108,"page":6},"Concepts","\u002Fconcepts","3.concepts",[109,114,119],{"title":110,"path":111,"stem":112,"icon":113},"Types of code clones","\u002Fconcepts\u002Fclone-types","3.concepts\u002F1.clone-types","i-lucide-copy",{"title":115,"path":116,"stem":117,"icon":118},"How detection works","\u002Fconcepts\u002Fhow-detection-works","3.concepts\u002F2.how-detection-works","i-lucide-scan-search",{"title":120,"path":121,"stem":122,"icon":123},"The health score","\u002Fconcepts\u002Fhealth-score","3.concepts\u002F3.health-score","i-lucide-heart-pulse",{"title":125,"icon":6,"path":126,"stem":127,"children":128,"page":6},"Reference","\u002Freference","4.reference",[129,134,139,144,181,186,190],{"title":130,"path":131,"stem":132,"icon":133},"CLI options","\u002Freference\u002Fcli","4.reference\u002F1.cli","i-lucide-terminal",{"title":135,"path":136,"stem":137,"icon":138},"The config file","\u002Freference\u002Fconfig-file","4.reference\u002F2.config-file","i-lucide-settings",{"title":140,"path":141,"stem":142,"icon":143},"Exit codes","\u002Freference\u002Fexit-codes","4.reference\u002F3.exit-codes","i-lucide-log-out",{"title":145,"icon":6,"path":146,"stem":147,"children":148},"Reporters","\u002Freference\u002Freporters","4.reference\u002F4.reporters\u002Findex",[149,151,156,161,166,171,176],{"title":145,"path":146,"stem":147,"icon":150},"i-lucide-file-chart-column",{"title":152,"path":153,"stem":154,"icon":155},"HTML reporter","\u002Freference\u002Freporters\u002Fhtml","4.reference\u002F4.reporters\u002F2.html","i-lucide-file-code",{"title":157,"path":158,"stem":159,"icon":160},"JSON reporter","\u002Freference\u002Freporters\u002Fjson","4.reference\u002F4.reporters\u002F3.json","i-lucide-braces",{"title":162,"path":163,"stem":164,"icon":165},"Badge reporter","\u002Freference\u002Freporters\u002Fbadge","4.reference\u002F4.reporters\u002F4.badge","i-lucide-award",{"title":167,"path":168,"stem":169,"icon":170},"SARIF reporter","\u002Freference\u002Freporters\u002Fsarif","4.reference\u002F4.reporters\u002F5.sarif","i-lucide-shield-check",{"title":172,"path":173,"stem":174,"icon":175},"CodeClimate reporter","\u002Freference\u002Freporters\u002Fcodeclimate","4.reference\u002F4.reporters\u002F6.codeclimate","i-lucide-flag-triangle-right",{"title":177,"path":178,"stem":179,"icon":180},"OpenMetrics reporter","\u002Freference\u002Freporters\u002Fopenmetrics","4.reference\u002F4.reporters\u002F7.openmetrics","i-lucide-activity",{"title":182,"path":183,"stem":184,"icon":185},"Supported formats","\u002Freference\u002Fsupported-formats","4.reference\u002F5.supported-formats","i-lucide-languages",{"title":187,"path":188,"stem":189,"icon":38},"GitHub Action","\u002Freference\u002Fgithub-action","4.reference\u002F6.github-action",{"title":191,"path":192,"stem":193,"icon":68},"Rust crates","\u002Freference\u002Frust-crates","4.reference\u002F7.rust-crates",{"title":195,"icon":6,"path":196,"stem":197,"children":198,"page":6},"Project","\u002Fproject","5.project",[199,204,209,214,239,244],{"title":200,"path":201,"stem":202,"icon":203},"Changelog","\u002Fproject\u002Fchangelog","5.project\u002F1.changelog","i-lucide-scroll-text",{"title":205,"path":206,"stem":207,"icon":208},"Migrating from v4 to v5","\u002Fproject\u002Fmigration","5.project\u002F2.migration","i-lucide-arrow-right-left",{"title":210,"path":211,"stem":212,"icon":213},"jscpd v4 (TypeScript)","\u002Fproject\u002Fv4","5.project\u002F3.v4","i-simple-icons-typescript",{"title":215,"icon":6,"path":216,"stem":217,"children":218},"Benchmarks","\u002Fproject\u002Fbenchmarks","5.project\u002F4.benchmarks\u002Findex",[219,221,226,230,235],{"title":215,"path":216,"stem":217,"icon":220},"i-lucide-gauge",{"title":222,"path":223,"stem":224,"icon":225},"Detection Speed","\u002Fproject\u002Fbenchmarks\u002Fdetection-speed","5.project\u002F4.benchmarks\u002F2.detection-speed","i-lucide-zap",{"title":227,"path":228,"stem":229,"icon":58},"Multi-Format Detection","\u002Fproject\u002Fbenchmarks\u002Fcross-format","5.project\u002F4.benchmarks\u002F3.cross-format",{"title":231,"path":232,"stem":233,"icon":234},"AI Token Efficiency","\u002Fproject\u002Fbenchmarks\u002Fai-token-efficiency","5.project\u002F4.benchmarks\u002F4.ai-token-efficiency","i-lucide-sparkles",{"title":236,"path":237,"stem":238,"icon":93},"Embedding Models","\u002Fproject\u002Fbenchmarks\u002Fembedding-models","5.project\u002F4.benchmarks\u002F5.embedding-models",{"title":240,"path":241,"stem":242,"icon":243},"Research","\u002Fproject\u002Fresearch","5.project\u002F5.research","i-lucide-graduation-cap",{"title":245,"path":246,"stem":247,"icon":248},"Articles","\u002Fproject\u002Farticles","5.project\u002F6.articles","i-lucide-newspaper",{"name":250,"url":251,"appearances":252,"latest":268},"mobile-next\u002Fmobile-mcp","https:\u002F\u002Fgithub.com\u002Fmobile-next\u002Fmobile-mcp",[253],{"date":254,"rank":255,"stars":256,"starsToday":257,"headSha":258,"sources":259,"lines":260,"clones":261,"duplicatedLines":262,"percentage":263,"codePercentage":264,"codeSources":265,"healthScore":266,"healthGrade":267},"2026-09-27",7,7459,168,"18d0e8c44ef4dbc4113d57ee917c51f2da5678d4",68,9469,28,520,5.49,3.85,27,70.2,"B",{"date":254,"generatedAt":269,"name":250,"url":251,"description":270,"language":271,"stars":256,"starsToday":257,"defaultBranch":272,"headSha":258,"durationMs":273,"total":274,"formats":278,"topClones":320,"health":462,"complexity":493,"deadCode":536,"code":543,"measuredAt":658,"jscpdVersion":659},"2026-09-27T05:28:08.542Z","Model Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)","TypeScript","main",29,{"sources":259,"lines":260,"tokens":275,"clones":261,"duplicatedLines":262,"duplicatedTokens":276,"percentage":263,"percentageTokens":277},65210,3159,4.84,[279,285,292,298,303,308,313,317],{"format":280,"sources":265,"lines":281,"clones":282,"duplicatedLines":283,"percentage":284},"typescript",5222,18,216,4.14,{"format":286,"sources":287,"lines":288,"clones":289,"duplicatedLines":290,"percentage":291},"markdown",13,2453,3,75,3.06,{"format":293,"sources":294,"lines":295,"clones":296,"duplicatedLines":282,"percentage":297},"bash",12,671,2,2.68,{"format":299,"sources":255,"lines":300,"clones":296,"duplicatedLines":301,"percentage":302},"json",349,144,41.26,{"format":304,"sources":289,"lines":305,"clones":296,"duplicatedLines":306,"percentage":307},"text",81,54,66.67,{"format":309,"sources":296,"lines":310,"clones":311,"duplicatedLines":287,"percentage":312},"yaml",178,1,7.3,{"format":314,"sources":289,"lines":315,"clones":316,"duplicatedLines":316,"percentage":316},"javascript",341,0,{"format":318,"sources":311,"lines":319,"clones":316,"duplicatedLines":316,"percentage":316},"perl",174,[321,348,367,389,402,412,422,429,443,453],{"format":304,"lines":322,"tokens":323,"first":324,"others":328,"copies":289,"excerpt":333,"excerptSecond":344,"kind":347},232,286,{"name":325,"start":326,"end":327},"README.ja.md:text",252,483,[329,331],{"name":330,"start":326,"end":327},"README.md:text",{"name":332,"start":326,"end":327},"README.zh-CN.md:text",{"lines":334,"total":322},[335,336,337,338,337,339,340,341,342,343],"\u002Fmcp add","```","","設定ファイル `~\u002F.copilot\u002Fmcp-config.json` を編集して次を追加することもできます:","```json","{","  \"mcpServers\": {","    \"mobile-mcp\": {","      \"type\": \"local\",",{"lines":345,"total":322},[335,336,337,346,337,339,340,341,342,343],"You can edit the configuration file `~\u002F.copilot\u002Fmcp-config.json` and add:","docs",{"format":299,"lines":349,"tokens":350,"first":351,"others":355,"copies":289,"excerpt":360,"kind":347},383,165,{"name":352,"start":353,"end":354},"README.ja.md:json",145,527,[356,358],{"name":357,"start":353,"end":354},"README.md:json",{"name":359,"start":353,"end":354},"README.zh-CN.md:json",{"lines":361,"total":349},[340,341,342,362,363,364,365,366,336,337],"      \"command\": \"npx\",","      \"args\": [\"-y\", \"@mobilenext\u002Fmobile-mcp@latest\"]","    }","  }","}",{"format":293,"lines":368,"tokens":369,"first":370,"others":374,"copies":289,"excerpt":379,"excerptSecond":386,"kind":347},336,130,{"name":371,"start":372,"end":373},"README.ja.md:bash",176,511,[375,377],{"name":376,"start":372,"end":373},"README.md:bash",{"name":378,"start":372,"end":373},"README.zh-CN.md:bash",{"lines":380,"total":368},[381,336,337,382,337,383,384,337,385,337],"amp mcp add mobile-mcp -- npx @mobilenext\u002Fmobile-mcp@latest","\u003C\u002Fdetails>","\u003Cdetails>","\u003Csummary>Antigravity 2\u003C\u002Fsummary>","Antigravity には MCP サーバーを追加する CLI コマンドがないため、手動で追加します。`~\u002F.gemini\u002Fconfig\u002Fmcp_config.json` を編集して次を追加してください:",{"lines":387,"total":368},[381,336,337,382,337,383,384,337,388,337],"Antigravity doesn't have a CLI command to add MCP servers, so add it manually. Edit `~\u002F.gemini\u002Fconfig\u002Fmcp_config.json` and add:",{"format":280,"lines":282,"tokens":390,"first":391,"others":395,"copies":289,"kind":401},106,{"name":392,"start":393,"end":394},"src\u002Fwebdriver-agent.ts",149,166,[396,398],{"name":392,"start":372,"end":397},193,{"name":392,"start":399,"end":400},209,226,"code",{"format":280,"lines":403,"tokens":404,"first":405,"others":408,"copies":296,"kind":401},42,191,{"name":392,"start":406,"end":407},331,372,[409],{"name":392,"start":410,"end":411},392,433,{"format":286,"lines":413,"tokens":414,"first":415,"others":419,"copies":296,"kind":347},34,188,{"name":416,"start":417,"end":418},"README.ja.md:markdown",11,44,[420],{"name":421,"start":417,"end":418},"README.zh-CN.md:markdown",{"format":286,"lines":423,"tokens":424,"first":425,"others":426,"copies":296,"kind":347},32,187,{"name":416,"start":287,"end":418},[427],{"name":428,"start":287,"end":418},"README.md:markdown",{"format":280,"lines":430,"tokens":431,"first":432,"others":436,"copies":289,"kind":401},10,86,{"name":433,"start":434,"end":435},"src\u002Fandroid.ts",393,402,[437,440],{"name":438,"start":372,"end":439},"src\u002Fios.ts",185,{"name":441,"start":442,"end":283},"src\u002Fiphone-simulator.ts",207,{"format":280,"lines":430,"tokens":444,"first":445,"others":448,"copies":289,"kind":401},72,{"name":433,"start":446,"end":447},382,391,[449,450],{"name":433,"start":434,"end":435},{"name":438,"start":451,"end":452},164,173,{"format":286,"lines":454,"tokens":455,"first":456,"others":458,"copies":296,"kind":461},9,139,{"name":457,"start":311,"end":454},"test\u002Fprompt-android-emulator.md:markdown",[459],{"name":460,"start":311,"end":454},"test\u002Fprompt-ios-simulator.md:markdown","tests",{"score":266,"grade":267,"size":463,"dimensions":467},{"lines":464,"files":465,"class":466},6425,40,"S",[468,477,486],{"id":469,"source":470,"value":471,"adjusted":471,"lines":283,"halfLife":472,"formats":473,"excluded":474,"weight":311,"score":476},"duplication","jscpd",3.4,8.5,[280,293,314,318],[304,475],"data",75.8,{"id":478,"source":470,"value":479,"adjusted":480,"lines":481,"halfLife":482,"coverage":483,"weight":484,"score":485},"dead-code",5.1,4.6,283,7.5,86.8,0.868,65.7,{"id":487,"source":470,"value":488,"adjusted":489,"lines":490,"halfLife":491,"weight":311,"score":492},"complexity",28.5,26.7,1833,50,69,{"total":494,"mean":495,"files":496},853,21.3,[497,502,505,509,513,518,522,526,529,532],{"path":498,"complexity":499,"lines":500,"bytes":501},"src\u002Fserver.ts",163,1217,49626,{"path":433,"complexity":390,"lines":503,"bytes":504},616,19211,{"path":392,"complexity":506,"lines":507,"bytes":508},41,454,12268,{"path":510,"complexity":465,"lines":511,"bytes":512},"test\u002Futils.ts",101,3728,{"path":514,"complexity":515,"lines":516,"bytes":517},"src\u002Fmobile-device.ts",35,347,9198,{"path":519,"complexity":515,"lines":520,"bytes":521},"test\u002Fiphone-simulator.ts",189,7128,{"path":523,"complexity":423,"lines":524,"bytes":525},"src\u002Fmobilecli.ts",263,7270,{"path":441,"complexity":527,"lines":481,"bytes":528},31,8235,{"path":530,"complexity":273,"lines":455,"bytes":531},"test\u002Fandroid.ts",5972,{"path":533,"complexity":273,"lines":534,"bytes":535},"test\u002Fmobile-device.test.ts",171,6494,{"percentage":537,"findings":311,"files":527,"byCategory":538,"largest":541},5.07,[539],{"category":540,"count":311},"unused-file",[542],{"category":540,"path":441,"name":337,"line":311,"lines":481},{"sources":265,"lines":544,"tokens":545,"clones":546,"duplicatedLines":547,"duplicatedTokens":548,"percentage":264,"percentageTokens":549,"formats":550,"topClones":559,"generated":656},5248,27906,16,202,1313,4.71,[551,555,557,558],{"format":280,"sources":552,"lines":553,"clones":546,"duplicatedLines":547,"percentage":554},15,4167,4.85,{"format":293,"sources":454,"lines":556,"clones":316,"duplicatedLines":316,"percentage":316},644,{"format":314,"sources":296,"lines":524,"clones":316,"duplicatedLines":316,"percentage":316},{"format":318,"sources":311,"lines":319,"clones":316,"duplicatedLines":316,"percentage":316},[560,577,591,605,610,619,626,634,642,650],{"format":280,"lines":282,"tokens":390,"first":561,"others":562,"copies":289,"excerpt":565,"kind":401},{"name":392,"start":393,"end":394},[563,564],{"name":392,"start":372,"end":397},{"name":392,"start":399,"end":400},{"lines":566,"total":282},[567,568,569,570,571,572,573,574,575,576],"public async tap(x: number, y: number) {","    await this.withinSession(async sessionUrl => {","        const url = `${sessionUrl}\u002Factions`;","        await fetch(url, {","            method: \"POST\",","            headers: {","                \"Content-Type\": \"application\u002Fjson\",","            },","            body: JSON.stringify({","                actions: [",{"format":280,"lines":403,"tokens":404,"first":578,"others":579,"copies":296,"excerpt":581,"kind":401},{"name":392,"start":406,"end":407},[580],{"name":392,"start":410,"end":411},{"lines":582,"total":403},[583,584,585,586,366,337,587,588,589,590],"        x1 = centerX + Math.floor(horizontalDistance \u002F 2);","        break;","    default:","        throw new ActionableError(`Swipe direction \"${direction}\" is not supported`);","const url = `${sessionUrl}\u002Factions`;","const response = await fetch(url, {","    method: \"POST\",","    headers: {",{"format":280,"lines":430,"tokens":431,"first":592,"others":593,"copies":289,"excerpt":596,"kind":401},{"name":433,"start":434,"end":435},[594,595],{"name":438,"start":372,"end":439},{"name":441,"start":442,"end":283},{"lines":597,"total":430},[598,599,600,601,602,603,364,366,337,604],"        this.adb(\"uninstall\", bundleId);","    } catch (error: any) {","        const stdout = error.stdout ? error.stdout.toString() : \"\";","        const stderr = error.stderr ? error.stderr.toString() : \"\";","        const output = (stdout + stderr).trim();","        throw new ActionableError(output || error.message);","public async openUrl(url: string): Promise\u003Cvoid> {",{"format":280,"lines":430,"tokens":444,"first":606,"others":607,"copies":289,"kind":401},{"name":433,"start":446,"end":447},[608,609],{"name":433,"start":434,"end":435},{"name":438,"start":451,"end":452},{"format":280,"lines":294,"tokens":611,"first":612,"others":615,"copies":296,"kind":401},100,{"name":433,"start":613,"end":614},573,584,[616],{"name":433,"start":617,"end":618},594,605,{"format":280,"lines":255,"tokens":492,"first":620,"others":622,"copies":296,"kind":401},{"name":433,"start":446,"end":621},388,[623],{"name":441,"start":624,"end":625},184,192,{"format":280,"lines":454,"tokens":627,"first":628,"others":630,"copies":296,"kind":401},65,{"name":438,"start":547,"end":629},210,[631],{"name":441,"start":632,"end":633},251,259,{"format":280,"lines":255,"tokens":635,"first":636,"others":638,"copies":296,"kind":401},64,{"name":438,"start":301,"end":637},150,[639],{"name":441,"start":640,"end":641},107,113,{"format":280,"lines":454,"tokens":635,"first":643,"others":646,"copies":296,"kind":401},{"name":438,"start":644,"end":645},269,277,[647],{"name":438,"start":648,"end":649},285,293,{"format":280,"lines":454,"tokens":651,"first":652,"others":654,"copies":296,"kind":401},61,{"name":433,"start":653,"end":410},384,[655],{"name":438,"start":394,"end":319},{"files":316,"minified":316,"sample":657},[],"2026-10-07T06:27:24.779Z","5.4.0",{"\u002Ftrending\u002Fmobile-next\u002Fmobile-mcp":661},{"views":311,"visits":316},1795510260451]