@mcpcn/mcp-get-location 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +89 -0
- package/dist/index.js +2 -0
- package/package.json +30 -0
package/README.md
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
# MCP Location Server
|
2
|
+
|
3
|
+
一个基于 MCP (Model Context Protocol) 的位置获取服务器,通过浏览器授权获取用户精确位置信息。
|
4
|
+
|
5
|
+
## 功能特性
|
6
|
+
|
7
|
+
- 🌍 通过浏览器获取用户精确位置(GPS定位)
|
8
|
+
- 🔄 自动轮询位置信息,最多等待60秒
|
9
|
+
- 🌐 跨平台支持(Windows、macOS、Linux)
|
10
|
+
- 📱 自动打开浏览器进行位置授权
|
11
|
+
- 📍 返回经纬度坐标信息
|
12
|
+
|
13
|
+
## 工作原理
|
14
|
+
|
15
|
+
1. 生成随机UUID作为会话标识
|
16
|
+
2. 自动打开浏览器访问位置授权页面
|
17
|
+
3. 用户在浏览器中授权位置权限
|
18
|
+
4. 服务器轮询API获取位置信息(每秒1次,最多60秒)
|
19
|
+
5. 返回获取到的经纬度坐标
|
20
|
+
|
21
|
+
## 安装和使用
|
22
|
+
|
23
|
+
### 安装依赖
|
24
|
+
|
25
|
+
```bash
|
26
|
+
npm install
|
27
|
+
```
|
28
|
+
|
29
|
+
### 构建项目
|
30
|
+
|
31
|
+
```bash
|
32
|
+
npm run build
|
33
|
+
```
|
34
|
+
|
35
|
+
### 启动服务器
|
36
|
+
|
37
|
+
```bash
|
38
|
+
npm start
|
39
|
+
```
|
40
|
+
|
41
|
+
## 可用工具
|
42
|
+
|
43
|
+
### get_location
|
44
|
+
|
45
|
+
获取用户位置信息,通过浏览器授权定位。
|
46
|
+
|
47
|
+
**参数**: 无
|
48
|
+
|
49
|
+
**返回值**:
|
50
|
+
```json
|
51
|
+
{
|
52
|
+
"latitude": 39.78463536888209,
|
53
|
+
"longitude": 116.50960396229777,
|
54
|
+
}
|
55
|
+
```
|
56
|
+
|
57
|
+
**使用示例**:
|
58
|
+
调用该工具后,系统会:
|
59
|
+
1. 自动打开浏览器
|
60
|
+
2. 引导用户授权位置权限
|
61
|
+
3. 轮询获取位置信息
|
62
|
+
4. 返回经纬度坐标
|
63
|
+
|
64
|
+
## 技术实现
|
65
|
+
|
66
|
+
- 基于 MCP SDK 1.8.0
|
67
|
+
- 使用 TypeScript 开发
|
68
|
+
- 通过 stdio 方式进行通信
|
69
|
+
- 支持跨平台浏览器调用
|
70
|
+
|
71
|
+
## 注意事项
|
72
|
+
|
73
|
+
- 需要用户在浏览器中手动授权位置权限
|
74
|
+
- 位置获取依赖于设备的GPS功能
|
75
|
+
- 如果60秒内未获取到位置,会返回超时错误
|
76
|
+
- 确保网络连接正常,能够访问外部API
|
77
|
+
|
78
|
+
## 开发和调试
|
79
|
+
|
80
|
+
```bash
|
81
|
+
# 安装依赖
|
82
|
+
npm install
|
83
|
+
|
84
|
+
# 构建
|
85
|
+
npm run build
|
86
|
+
|
87
|
+
# 启动开发模式
|
88
|
+
npm start
|
89
|
+
```
|
package/dist/index.js
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
const a0_0x3e71b1=a0_0x280d,a0_0x8fe1b8=a0_0x280d;(function(_0x2bed98,_0x6b0e17){const a0_0x12ae7f={_0x58a0e0:0x112,_0x5ef127:0xd5,_0x1be196:0x69,_0x322cae:0xee,_0x1589f1:0xf5},_0x39d4b2=a0_0x280d,_0x31483b=a0_0x280d,_0x290b2d=_0x2bed98();while(!![]){try{const _0x2598c6=parseInt(_0x39d4b2(0x150))/(-0x15c9+0x289+0x3*0x66b)+parseInt(_0x39d4b2(a0_0x12ae7f._0x58a0e0))/(0x83*0x1f+0x123b+-0x2216)*(parseInt(_0x31483b(0x11d))/(-0x1b6b+-0x6f7+0x2265))+-parseInt(_0x39d4b2(a0_0x12ae7f._0x5ef127))/(-0x49*0x3b+-0xa3*0x1d+-0x234e*-0x1)*(-parseInt(_0x31483b(a0_0x12ae7f._0x1be196))/(-0x1f54+-0x256f+0x44c8))+parseInt(_0x39d4b2(0x6b))/(-0x2f*0x19+-0x12*-0x192+-0x17a7)+parseInt(_0x39d4b2(0x146))/(-0x1*0x1d4b+-0x1884+0x8f9*0x6)+parseInt(_0x31483b(a0_0x12ae7f._0x322cae))/(-0x3*-0x6cd+0x4dc+0x1*-0x193b)*(parseInt(_0x39d4b2(a0_0x12ae7f._0x1589f1))/(-0x127d*0x2+0x7b9*0x3+0xdd8))+-parseInt(_0x31483b(0xa8))/(0x1*-0x17a1+-0x111f+0x2*0x1465);if(_0x2598c6===_0x6b0e17)break;else _0x290b2d['push'](_0x290b2d['shift']());}catch(_0x3adf83){_0x290b2d['push'](_0x290b2d['shift']());}}}(a0_0x2505,-0xb*0x1ccd+-0x137414+-0x1*-0x1f2c64));import{Server}from'@modelcontextprotocol/sdk/server/index.js';import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';function a0_0x2505(){const _0x791ec2=['wLDpvg0','AurjvwK','ExP2zuK','nhDtEKrIBG','ktOG','Aw5MB3jTyxrPBW','yuTTBM0','u0nywfu','txr5B1e','CM4GDgHPCYiPka','ChjVCgvYDgLLCW','yNfnvMi','tKPnzgO','zgjdqMK','nJq0nZe4sNrJCM1Y','DMvYC2LVBG','q01fzxK','BgvKihrVigDLDa','zNP3q04','xcTCkYaQkd86wW','Bwv0Ag9K','CM9otNm','BMCGzMfPBgvKoG','CM9Y','vg9VBcbLEgvJDq','u0jmEvq','zuLtAuq','s3f5EvK','Axjes0y','AwzTsMS','jf0Qkq','wuDJEhi','u2vYDMvYihn0yq','CgfYC2u','uMvXDwvZDcbLCG','DhjHy2u','svPUyKS','y29vwvO','B3foEey','shj2D1a','ChjVDg90ExbL','reH1q0O','rNnWyNa','Dgv4Da','uMvXDwvZDcbMyq','thnRs1q','C2v0uMvXDwvZDa','y29Kzq','C3rHCNqGiG','BfjYwNG','wvPKuM0','igXVy2f0Aw9Uia','zLjfs2W','BevUvvu','q2TWDvO','odaYodC0mu9iEe94sq','zxjYB3i','Bg9N','ihrOAxmGDg9VBa','BMfTzq','zgf0yq','B3vUza','C1bTExe','l21HCc9NzxrdBW','Bg9Uz2L0DwrL','mte4mJqWovvWtxLoyq','sNDOD0C','BNnLoG','z2v0x2XVy2f0Aq','x19WCM90B19F','CgnUlMnJl2fWAq','y2fSBa','zwvrwfq','Ew9gwxq','sxDpEvm','y2f0Aw9UlM1JCa','v0veqvK','CMX0Dem','u3zNDNu','B2W6ia','D1HmtM0','tNfzwMO','z2v0igXVy2f0Aq','C3rHDhvZvgv4Da','A2z1zKC','t3f0CKO','tKTvExC','Aw5WDxrty2HLBq','BgvUz3rO','y29UC29Szq','t2vOALG','y2HHAw4','zNvUy3rPB24GkG','sM1TuMS','DhvKzsbHBMqGBa','xcGGkLWP','uMf3ihjLC3bVBG','wvbct1O','uNL1u0e','s29VzfG','twv0Ag9KtM90rG','z0H2vfq','ELPkA3m','mJm4mJvOywfRt1q','qKHnrK4','mtu5mtK3neTNDwvvDa','BgX5oIa','A1vmuwO','C1for2q','CgfYyw1Z','r3HUr2O','z2DLCG','rhPRs3i','DwPcCLi','uNvytuG','tev2C2C','BxnN','C3rHDhvZ','wxvmAxu','ELbwuwC','ELr5v3u','rKr5zha','tevhD3i','CxHdvwK','y2f0Aw9U','C3rYAw5NAwz5','AxnPDcbTyw51yq','Bg9JyxrPB24GAq','zgfYD2LU','q1HSq28','vLHrqKS','j3mGBg9JyxrPBW','swTUyM0','wuXywwO','Aw5WDxq','rMfPBgvKihrVia','CM9YicG','s0rhB0u','tfrNAfe','EwfVBuS','BMn0Aw9UkcKG','s2ryze8','BwvZC2fNzq','uw9lwKW','v25puLG','y291BNrLCG','CNr1CcbMywLSzq','zgvZy3jPChrPBW','Aw5PDa','CMvHzcbYzxnWBW','zxLnBLu','v3POBgO','lcbWBgvHC2uGDG','rMr5Avq','zxHJzxb0Aw9U','CLnsy2O','zxi6','EgX1sgy','Dwz1EMW','yMTPtxi','D2LUmZi','A2DABgq','u0Pwu24','sw50zxjUywXfCG','vfP5seW','y3rVCIGICMv0Dq','mZmZndi1mJbSvMjrrva','ys16qs1AxYrDwW','y29UC3rYDwn0BW','EMfWswy','r1r0q3q','DfzHDvC','u2ritLC','vNLoALG','BwnWlwDLDc1SBW','zxi6ia','wMTZteG','DhjKDhq','rKTAEwC','y2fWywjPBgL0Aq','Bgvkzwm','wu1dvMK','y24UywK/A2v5pq','z2Dfueu','t0nLzxa','D2fhDLG','B1f6zxG','CKHXEMm','CfrWt0S','mc05ys16qs1AxW','s2vYveO','A0jnvei','CuvLCva','vvj1rwq','vMrTuem','B3bLBIbICM93CW','CMv0DxjUicHMDq','quvKq1K','C2vHCMnO','wMHQBMu','EMrvyNe','AgvHzgvYCW','Bgf0Axr1zgu','y0fhuMy','yxbWBhK','vw5RBM93BIb0BW','C3rHDgvpyMPLyW','kcGOlISPkYKRkq','zxHPDa','EwDPvKW','zwPluNy','mJa4CKHXzg10','Eu9xuMm','zgvIDq','CKfmseC','DgvZDa','Aw5MBW','rgTyvum','s0rguvO','sLnUqMW','BIb3AxrOAw4G','BwvVDxqSigzHAq','BvzPrLK','BMzVCM1HDgLVBG','uw9LCKK','AxrPBMCGzM9Yia','s21pA1a','B2fsvvy','DgLVBIbLCNjVCG','Dgvgwuq','vgLTzw91Dcb3yq','qLLoCe8','Ahr0Chm6lY9TyW','Ahr0Chm6lY9SBW','sNzLqKW','AwjMue8','nJrmvgnwDNO','ALzituW','Bvn0ANe','CefQvMy','vuvbt3m','qvbjihjLDhvYBG','E30Uy29UC3rYDq','odqYntuZswrpDuDP','CMfUzg9T','y0zMA1i','sMPjAha','DgfIBgu','B2jQzwn0','CM5cqKC','sgfUzgXLCG','rxjYB3i6ia','B3bLBIaI','sK9vswm','vxnvANq','D2fYBG','q0rjCw4','CNfHCeW','C2v0sw50zxj2yq','t0jdshi','t1HsEK4','yMLUza','A0z5uKm','DLbUveK','r0vu','zgHKrfu','ug9SBgLUzYb0Aq','B25NAxr1zguGBW','wfjoALm'];a0_0x2505=function(){return _0x791ec2;};return a0_0x2505();}import{McpError,ErrorCode}from'@modelcontextprotocol/sdk/types.js';import{CallToolRequestSchema,ListToolsRequestSchema}from'@modelcontextprotocol/sdk/types.js';import a0_0x388261 from'node-fetch';import{exec}from'child_process';import{randomUUID}from'crypto';const a0_0x89f97a={};a0_0x89f97a['type']=a0_0x3e71b1(0xfa),a0_0x89f97a[a0_0x3e71b1(0x119)]={},a0_0x89f97a['required']=[];const a0_0x5b7c53={};a0_0x5b7c53[a0_0x8fe1b8(0x14a)]=a0_0x8fe1b8(0x153)+'on',a0_0x5b7c53[a0_0x8fe1b8(0x95)+'n']='Get\x20user\x20l'+'ocation\x20in'+'formation,'+a0_0x8fe1b8(0x149)+'\x20can\x20obtai'+'n\x20the\x20lati'+a0_0x3e71b1(0x16d)+a0_0x3e71b1(0x10d)+'f\x20the\x20user'+a0_0x8fe1b8(0x85)+'n',a0_0x5b7c53[a0_0x8fe1b8(0x166)+'a']=a0_0x89f97a;const GET_LOCATION_TOOL=a0_0x5b7c53,LOCATION_TOOLS=[GET_LOCATION_TOOL];function openBrowser(_0x44e06c){const a0_0x10bd72={_0x42e028:0x16b,_0x325cf5:0x16e,_0x3c6005:0x122,_0x1d43ec:0xa9,_0x22aa1e:0xbf,_0x46d6e9:0x12d,_0x12f616:0x96,_0x57b1e2:0x16a},a0_0x3e5403={_0x4c9c49:0x82,_0x14935a:0xa2,_0x1d5715:0x13f,_0x349f97:0x110},_0x37e1a0=a0_0x3e71b1,_0x495cb8=a0_0x3e71b1,_0x1045b7={'KmOkP':_0x37e1a0(a0_0x10bd72._0x42e028)+_0x37e1a0(a0_0x10bd72._0x325cf5),'wXLNm':_0x495cb8(a0_0x10bd72._0x3c6005)+_0x495cb8(a0_0x10bd72._0x1d43ec)+_0x37e1a0(a0_0x10bd72._0x22aa1e)+_0x495cb8(a0_0x10bd72._0x46d6e9),'rSRcj':_0x495cb8(a0_0x10bd72._0x12f616),'oaRUV':_0x495cb8(a0_0x10bd72._0x57b1e2),'ibfPO':function(_0x566536,_0x2f2ba6){return _0x566536+_0x2f2ba6;},'ZksLH':function(_0x1ac77c,_0x50e1e2){return _0x1ac77c(_0x50e1e2);},'HrvwP':function(_0x5740f9,_0x3ebb16){return _0x5740f9!==_0x3ebb16;},'zPVQg':_0x37e1a0(0x74),'jskLQ':_0x495cb8(0x128),'kFyRC':_0x495cb8(0x141),'iDIUi':function(_0x486d1e,_0x46a923,_0x5a96ef){return _0x486d1e(_0x46a923,_0x5a96ef);}};return new Promise((_0x2da9a4,_0x4ebba0)=>{const a0_0x1e4522={_0x42b9c2:0x15f,_0x2e2dc1:0x9d,_0x317edc:0xe5,_0x5a3f66:0x136,_0x2759c1:0x79,_0x5d6600:0x12c,_0x3b1492:0xd3,_0x5957a9:0x88,_0x208161:0xbc,_0x556a64:0x108},_0x27277f=_0x37e1a0,_0x234f03=_0x37e1a0;let _0x3cad50;switch(process['platform']){case _0x27277f(a0_0x3e5403._0x4c9c49):_0x3cad50=_0x27277f(0xfe)+_0x44e06c+'\x22';break;case _0x27277f(a0_0x3e5403._0x14935a):_0x3cad50=_0x234f03(a0_0x3e5403._0x1d5715)+_0x44e06c+'\x22';break;default:_0x3cad50='xdg-open\x20\x22'+_0x44e06c+'\x22';break;}_0x1045b7[_0x27277f(a0_0x3e5403._0x349f97)](exec,_0x3cad50,_0x1f3a9a=>{const _0x326a2d=_0x27277f,_0x5e46bb=_0x234f03,_0xd44c48={'QbiRF':_0x1045b7[_0x326a2d(0xe4)],'KdXdO':_0x1045b7[_0x326a2d(a0_0x1e4522._0x42b9c2)],'ifmJk':_0x1045b7[_0x326a2d(a0_0x1e4522._0x2e2dc1)],'ygiVL':_0x1045b7[_0x5e46bb(a0_0x1e4522._0x317edc)],'jOAaa':function(_0x130832,_0xed48c2){const _0x207c17=_0x5e46bb;return _0x1045b7[_0x207c17(0xed)](_0x130832,_0xed48c2);},'HDfdU':function(_0x4d7dad,_0x1ee832){const _0x37cf87=_0x326a2d;return _0x1045b7[_0x37cf87(0xb2)](_0x4d7dad,_0x1ee832);},'oQzex':function(_0x1320d3){return _0x1320d3();}};if(_0x1045b7[_0x326a2d(a0_0x1e4522._0x5a3f66)](_0x1045b7['zPVQg'],_0x1045b7[_0x5e46bb(a0_0x1e4522._0x2759c1)])){const _0xa193c9=new _0x5b0910(QpcXrg['QbiRF']),_0x48b1ed=new _0x5b4394(QpcXrg[_0x326a2d(0x8f)],'i'),_0x28f5ad=_0x392c38(QpcXrg[_0x326a2d(a0_0x1e4522._0x5d6600)]);!_0xa193c9[_0x5e46bb(0xd9)](_0x28f5ad+QpcXrg[_0x326a2d(a0_0x1e4522._0x3b1492)])||!_0x48b1ed[_0x5e46bb(0xd9)](QpcXrg['jOAaa'](_0x28f5ad,_0x326a2d(a0_0x1e4522._0x5957a9)))?QpcXrg['HDfdU'](_0x28f5ad,'0'):QpcXrg[_0x326a2d(a0_0x1e4522._0x208161)](_0x40f3b0);}else _0x1f3a9a?_0x1045b7['HrvwP'](_0x1045b7['jskLQ'],_0x1045b7[_0x326a2d(a0_0x1e4522._0x556a64)])?_0x4ebba0(_0x1f3a9a):_0x362f4f=_0x2b381b:_0x2da9a4();});});}(function(){const a0_0x31d79d={_0x2c3e29:0xf4,_0x59d16f:0x11a,_0xe7c2b9:0x92,_0x51cfbf:0x121,_0x423a7d:0x104},_0x2b7540=a0_0x8fe1b8,_0x48cdc8=a0_0x8fe1b8,_0x351edb={'bqMVb':function(_0x175ffb,_0x3f6079){return _0x175ffb(_0x3f6079);},'yoFYt':function(_0x56d50d,_0x4e8184){return _0x56d50d+_0x4e8184;},'WnORX':_0x2b7540(0xc6)+'nction()\x20','CDIqn':_0x48cdc8(a0_0x31d79d._0x2c3e29)+_0x48cdc8(0xa7)+'rn\x20this\x22)('+'\x20)','OehjX':function(_0x29cb98){return _0x29cb98();},'xluHf':function(_0x1cd63d,_0x21f344){return _0x1cd63d===_0x21f344;},'fzwCN':_0x48cdc8(0x64)};let _0x123c58;try{const _0x37131c=_0x351edb[_0x48cdc8(a0_0x31d79d._0x59d16f)](Function,_0x351edb[_0x48cdc8(0x158)](_0x351edb[_0x2b7540(a0_0x31d79d._0xe7c2b9)],_0x351edb[_0x48cdc8(0x102)])+');');_0x123c58=_0x351edb[_0x2b7540(0x169)](_0x37131c);}catch(_0x2c3c9a){if(_0x351edb[_0x48cdc8(0x9f)](_0x351edb[_0x2b7540(a0_0x31d79d._0x51cfbf)],_0x2b7540(0x64)))_0x123c58=window;else{const _0x3f29d2=_0x271058[_0x2b7540(0xce)](_0x5ce68f,arguments);return _0x510e12=null,_0x3f29d2;}}_0x123c58[_0x48cdc8(a0_0x31d79d._0x423a7d)+'l'](_0x463cd7,-0x10d2+-0xd6*0x26+0x4036);}());async function pollLocation(_0x17d0bb){const a0_0x49197e={_0x1a4c83:0x8e,_0x4061ae:0xa7,_0x1bdcaa:0x118,_0x31dc6a:0x148,_0x15a4f7:0x132,_0x2e7bcd:0xb0,_0x5c1013:0x7e,_0x23ceed:0x117,_0x5498a8:0x10b,_0x2b63a3:0xf7,_0x129d46:0x11f,_0x286c2a:0x10a,_0xc63ed6:0xcb,_0x443c5a:0x13a,_0x340b22:0x7a,_0x1e0af1:0x147,_0x5aaab7:0xc3,_0x8bf2c8:0x91,_0x217a5a:0x77,_0x10c4ec:0x115,_0x4e8a64:0x130,_0xa93d3e:0xe0,_0x4a3115:0x126,_0x42f90f:0x125,_0x49838a:0x7b,_0x15a148:0x8a,_0x124718:0xf6,_0x56bcbc:0x134,_0x23ac93:0x101,_0x307ba1:0x9b,_0x46225e:0x103,_0x32cb3e:0xdd,_0x26fca1:0x137,_0x111abd:0x120,_0x127892:0x142,_0x5ea43b:0xde,_0x2d8756:0xe3,_0x2110c6:0x81},_0x1620c7=a0_0x8fe1b8,_0x3547ea=a0_0x8fe1b8,_0xb4c373={'eeQXT':_0x1620c7(0xd7),'DzkKr':'gger','URuEd':'action','LEGwr':function(_0x1a1aa2,_0x45d129){return _0x1a1aa2(_0x45d129);},'kfufG':function(_0x819092,_0x510abc){return _0x819092+_0x510abc;},'hXVWD':'return\x20(fu'+_0x1620c7(a0_0x49197e._0x1a4c83),'qEeqP':_0x1620c7(0xf4)+_0x1620c7(a0_0x49197e._0x4061ae)+_0x1620c7(a0_0x49197e._0x1bdcaa)+'\x20)','jVHML':function(_0x17ef0c){return _0x17ef0c();},'coUYZ':_0x1620c7(a0_0x49197e._0x31dc6a),'CXlCo':_0x3547ea(0x147),'FdyiT':_0x3547ea(0x9c),'rqapL':_0x3547ea(0xf9),'KyKHa':_0x3547ea(a0_0x49197e._0x15a4f7),'JSnBl':function(_0x302731,_0x51cddb){return _0x302731<_0x51cddb;},'nLXTq':function(_0x33228b,_0x241b3b){return _0x33228b<=_0x241b3b;},'DkXUC':function(_0x27f02c,_0x4771a0){return _0x27f02c!==_0x4771a0;},'GTtCt':'zGPfy','cFfkR':_0x3547ea(0xbb),'CMEey':_0x1620c7(a0_0x49197e._0x2e7bcd)+_0x1620c7(a0_0x49197e._0x5c1013),'zTyWu':_0x3547ea(a0_0x49197e._0x23ceed),'sQNGd':function(_0xe7717d,_0x35f5cf){return _0xe7717d!==_0x35f5cf;},'QoKZL':'YHDOU','qstNN':function(_0x442ad6,_0x51f203){return _0x442ad6===_0x51f203;},'ZgKke':'JmmRk','EliAy':function(_0x3ed7d5,_0x4daf95){return _0x3ed7d5!==_0x4daf95;},'aKmnm':_0x1620c7(0x84),'teFYD':function(_0x343bde,_0x4a67c5){return _0x343bde===_0x4a67c5;},'mViFY':_0x1620c7(a0_0x49197e._0x5498a8),'UsUjt':_0x3547ea(0xd8),'FDydp':function(_0x242216,_0x54756c){return _0x242216===_0x54756c;},'lTFrL':function(_0xf6cd2e,_0x55a422){return _0xf6cd2e*_0x55a422;}},_0x12b424=0xa97*0x1+0xad4+-0x152f,_0x3bb173=0xf3e+-0x2189+0x1*0x1a1b;for(let _0x3bc959=-0x1234*0x1+-0x47*-0x86+-0x17*0xd3;_0xb4c373['nLXTq'](_0x3bc959,_0x12b424);_0x3bc959++){if(_0xb4c373[_0x1620c7(0xdb)](_0xb4c373[_0x1620c7(0xac)],_0xb4c373[_0x3547ea(a0_0x49197e._0x2b63a3)])){try{const _0x19d4b4=_0x3547ea(0xea)+_0x3547ea(0x155)+_0x3547ea(0x14e)+'ordinates?'+'key='+_0x17d0bb,_0x5a4473={};_0x5a4473['user-agent']=_0xb4c373[_0x1620c7(a0_0x49197e._0x129d46)];const _0x1c69c7={};_0x1c69c7[_0x3547ea(0x123)]=_0x3547ea(a0_0x49197e._0x286c2a),_0x1c69c7[_0x1620c7(a0_0x49197e._0xc63ed6)]=_0x5a4473;const _0x22f75d=await a0_0x388261(_0x19d4b4,_0x1c69c7);let _0x474833='';try{_0x474833=await _0x22f75d[_0x1620c7(a0_0x49197e._0x443c5a)]();}catch(_0x599949){_0xb4c373['zTyWu']===_0xb4c373[_0x3547ea(a0_0x49197e._0x340b22)]?console[_0x1620c7(a0_0x49197e._0x1e0af1)]('Failed\x20to\x20'+_0x1620c7(0x97)+_0x1620c7(0x152),_0x599949):function(){return!![];}[_0x3547ea(0xaa)+'r'](dRVcCg[_0x3547ea(0x157)]+dRVcCg[_0x1620c7(0x72)])[_0x3547ea(0x156)](dRVcCg[_0x1620c7(a0_0x49197e._0x5aaab7)]);}if(!_0x22f75d['ok']){if(_0xb4c373[_0x1620c7(0x6e)](_0xb4c373[_0x1620c7(a0_0x49197e._0x8bf2c8)],_0x3547ea(0x12a))){if(_0xb4c373['qstNN'](_0x22f75d[_0x1620c7(a0_0x49197e._0x217a5a)],0x1349+0x154f+-0x2704)){}else _0xb4c373['ZgKke']!==_0x3547ea(0x16c)?_0x49f3b8=_0x3f6662:console[_0x3547ea(a0_0x49197e._0x1e0af1)](_0x3547ea(0x13b)+'iled\x20('+_0x3bc959+'/'+_0x12b424+_0x3547ea(0x113)+_0x22f75d['status']+'\x20'+_0x22f75d[_0x1620c7(0x162)]);await new Promise(_0x473373=>setTimeout(_0x473373,_0x3bb173));continue;}else return![];}let _0x580078;try{if(_0xb4c373['EliAy'](_0x3547ea(0x109),_0xb4c373[_0x1620c7(a0_0x49197e._0x10c4ec)]))_0x580078=JSON[_0x1620c7(a0_0x49197e._0x4e8a64)](_0x474833);else{if(_0x5d7ce6){const _0x466873=_0x48dd83[_0x1620c7(0xce)](_0x31290f,arguments);return _0x1c3652=null,_0x466873;}}}catch(_0x31f5a7){if(_0xb4c373[_0x1620c7(0xe7)](_0xb4c373[_0x3547ea(a0_0x49197e._0xa93d3e)],_0xb4c373[_0x3547ea(0x100)]))throw new _0x369431(_0x5956d0['InternalEr'+_0x1620c7(a0_0x49197e._0x4a3115)],_0x1620c7(0x89)+_0x1620c7(0x161)+'on');else{console[_0x1620c7(0x147)]('JSON\x20parsi'+_0x3547ea(a0_0x49197e._0x42f90f),_0x31f5a7,_0x1620c7(0x16f)+'se:',_0x474833),await new Promise(_0xc94bbc=>setTimeout(_0xc94bbc,_0x3bb173));continue;}}if(_0xb4c373[_0x3547ea(a0_0x49197e._0x49838a)](_0x580078[_0x1620c7(0x13e)],0x1d96+-0xd87+-0x100f))return _0x580078;else _0x580078[_0x3547ea(0x76)]&&console[_0x1620c7(a0_0x49197e._0x1e0af1)](_0x3547ea(0xf3)+'ed\x20error:',_0x580078[_0x1620c7(0x76)]);}catch(_0x275363){console[_0x1620c7(a0_0x49197e._0x1e0af1)](_0x3547ea(0x131)+_0x1620c7(a0_0x49197e._0x15a148)+_0x3bc959+'/'+_0x12b424+'):',_0x275363);}if(_0x3bc959<_0x12b424){const _0x5a3dc5=_0xb4c373['lTFrL'](Math[_0x3547ea(a0_0x49197e._0x124718)](),-0xc*0x1a6+0x29*-0xd3+-0x5*-0xb1b);await new Promise(_0x3be2be=>setTimeout(_0x3be2be,_0x3bb173+_0x5a3dc5));}}else{let _0x1d1535;try{const _0x1dbe88=dRVcCg[_0x3547ea(0x7c)](_0x3d358e,dRVcCg[_0x1620c7(0x163)](dRVcCg['hXVWD']+dRVcCg[_0x1620c7(0xc2)],');'));_0x1d1535=dRVcCg[_0x1620c7(0xef)](_0x1dbe88);}catch(_0x4eb7cf){_0x1d1535=_0x3981c1;}const _0x1a56db=_0x1d1535['console']=_0x1d1535[_0x1620c7(0x168)]||{},_0x1a1818=[dRVcCg[_0x1620c7(a0_0x49197e._0x56bcbc)],_0x3547ea(a0_0x49197e._0x23ac93),_0x3547ea(0xda),dRVcCg[_0x3547ea(0x83)],dRVcCg[_0x3547ea(a0_0x49197e._0x307ba1)],dRVcCg[_0x1620c7(a0_0x49197e._0x46225e)],dRVcCg['KyKHa']];for(let _0x39ad32=0x1d69*0x1+0x1682+-0x33eb*0x1;dRVcCg[_0x1620c7(a0_0x49197e._0x32cb3e)](_0x39ad32,_0x1a1818[_0x1620c7(0x167)]);_0x39ad32++){const _0x195473=_0x3ad200[_0x3547ea(0xaa)+'r'][_0x3547ea(a0_0x49197e._0x26fca1)]['bind'](_0x2357c0),_0xd237c6=_0x1a1818[_0x39ad32],_0x1d5d7d=_0x1a56db[_0xd237c6]||_0x195473;_0x195473[_0x1620c7(0x154)]=_0x559b90[_0x3547ea(0x107)](_0x875b02),_0x195473['toString']=_0x1d5d7d['toString'][_0x1620c7(0x107)](_0x1d5d7d),_0x1a56db[_0xd237c6]=_0x195473;}}}console[_0x1620c7(0x147)](_0x3547ea(0x10c)+_0x3547ea(0xdf)+_0x1620c7(a0_0x49197e._0x111abd)+_0x3547ea(a0_0x49197e._0x127892)+_0x3547ea(0x114)+_0x3547ea(a0_0x49197e._0x5ea43b)+_0x12b424+'\x20seconds');const _0x3178fd={};return _0x3178fd[_0x3547ea(0x13e)]=-(0x382*0xb+0x2257+0x59c*-0xd),_0x3178fd[_0x1620c7(0x76)]=_0x1620c7(0xe8)+_0x1620c7(a0_0x49197e._0x2d8756)+_0x1620c7(a0_0x49197e._0x2110c6)+_0x1620c7(0xe1),_0x3178fd;}async function handleGetLocation(){const a0_0x1c423b={_0x4119e2:0x13c,_0xa16ba0:0xc5,_0x1e5f39:0x9e,_0x1e8d21:0xbd,_0x4db661:0x165,_0x49270d:0x15a,_0x54fd23:0xb8,_0x498b45:0xb1,_0x2ba8df:0x80,_0x2f49d0:0xf1,_0x2c4343:0x14b,_0x379629:0xcc,_0x5f4de3:0x14f,_0x202822:0x7f,_0x316696:0xa5,_0x5d7bc0:0x126,_0x4a6d06:0x89,_0x51378f:0xfd,_0x5a8543:0xd6,_0x3efb31:0x126},_0x1918eb=a0_0x3e71b1,_0x296f76=a0_0x3e71b1,_0x12f036={'Iknbm':_0x1918eb(0x13a),'NJMdj':function(_0x5b9027,_0x145479){return _0x5b9027(_0x145479);},'zTiCy':function(_0x48086f,_0x2630b4){return _0x48086f===_0x2630b4;},'NKUyw':_0x1918eb(a0_0x1c423b._0x4119e2),'UfPKT':function(_0x314964){return _0x314964();},'OXRzN':'Failed\x20to\x20'+_0x1918eb(a0_0x1c423b._0xa16ba0)+_0x296f76(a0_0x1c423b._0x1e5f39),'ujBrR':function(_0x412126,_0x5148ed){return _0x412126!==_0x5148ed;},'pAjVf':_0x1918eb(a0_0x1c423b._0x1e8d21),'yOWRc':function(_0x5bdb06,_0x420494){return _0x5bdb06 instanceof _0x420494;},'FJRuI':function(_0x5476fc,_0x4529ac){return _0x5476fc(_0x4529ac);}};try{if(_0x12f036['zTiCy'](_0x12f036[_0x1918eb(0x165)],_0x12f036[_0x1918eb(a0_0x1c423b._0x4db661)])){const _0x538517=_0x12f036['UfPKT'](randomUUID),_0x1c33de=_0x1918eb(0xeb)+_0x296f76(a0_0x1c423b._0x49270d)+_0x1918eb(a0_0x1c423b._0x54fd23)+_0x538517;try{openBrowser(_0x1c33de);}catch(_0x354e9d){console[_0x296f76(0x147)](_0x12f036[_0x296f76(0x106)],_0x354e9d);throw new McpError(ErrorCode[_0x1918eb(0xa5)+'ror'],'Failed\x20to\x20'+_0x296f76(0xc5)+_0x296f76(a0_0x1c423b._0x498b45)+(_0x354e9d instanceof Error?_0x354e9d[_0x296f76(0x90)]:String(_0x354e9d))+(_0x1918eb(0x9a)+_0x1918eb(a0_0x1c423b._0x2ba8df)+'lly:\x20')+_0x1c33de);}const _0x5cb9f2=await _0x12f036['NJMdj'](pollLocation,_0x538517);if(_0x5cb9f2['code']===-0x134*0x2+0x2*-0x12fb+0x285e&&_0x5cb9f2[_0x296f76(0x14b)]){if(_0x12f036[_0x1918eb(0x73)](_0x12f036[_0x1918eb(a0_0x1c423b._0x2f49d0)],_0x12f036[_0x296f76(a0_0x1c423b._0x2f49d0)])){const {latitude:_0x488d6f,longitude:_0x388525}=_0x411b2e[_0x1918eb(a0_0x1c423b._0x2c4343)],_0x17603c={};return _0x17603c[_0x1918eb(a0_0x1c423b._0x379629)]=_0x488d6f,_0x17603c[_0x296f76(a0_0x1c423b._0x5f4de3)]=_0x388525,{'content':[{'type':_0x12f036[_0x1918eb(0x86)],'text':_0x28101c[_0x1918eb(a0_0x1c423b._0x202822)](_0x17603c)}],'isError':![]};}else{const {latitude:_0x272538,longitude:_0x239e8a}=_0x5cb9f2[_0x1918eb(a0_0x1c423b._0x2c4343)],_0x5e956c={};return _0x5e956c[_0x1918eb(0xcc)]=_0x272538,_0x5e956c[_0x296f76(a0_0x1c423b._0x5f4de3)]=_0x239e8a,{'content':[{'type':_0x12f036['Iknbm'],'text':JSON[_0x296f76(0x7f)](_0x5e956c)}],'isError':![]};}}else throw new McpError(ErrorCode[_0x296f76(a0_0x1c423b._0x316696)+_0x1918eb(a0_0x1c423b._0x5d7bc0)],_0x296f76(a0_0x1c423b._0x4a6d06)+'get\x20locati'+'on');}else _0x12f036[_0x1918eb(0x11b)](_0x467542,_0x51136a);}catch(_0x1fefff){const _0xa0979e=_0x296f76(a0_0x1c423b._0x51378f)+(_0x12f036[_0x296f76(a0_0x1c423b._0x5a8543)](_0x1fefff,Error)?_0x1fefff['message']:_0x12f036['FJRuI'](String,_0x1fefff));console['error'](_0xa0979e);throw new McpError(ErrorCode[_0x296f76(a0_0x1c423b._0x316696)+_0x1918eb(a0_0x1c423b._0x3efb31)],_0xa0979e);}}const a0_0x9d59fc={};a0_0x9d59fc[a0_0x3e71b1(0x14a)]=a0_0x8fe1b8(0xb0)+'cation',a0_0x9d59fc[a0_0x3e71b1(0x11e)]='1.0.0';const a0_0x5e461d={};function a0_0x280d(_0x44126d,_0x30da64){const _0x8aec8a=a0_0x2505();return a0_0x280d=function(_0x23a35a,_0x52dab7){_0x23a35a=_0x23a35a-(-0x156a+0x1e5*-0x13+0x39cd);let _0x65bfc4=_0x8aec8a[_0x23a35a];if(a0_0x280d['gzGKvT']===undefined){var _0x46a15b=function(_0x482f0a){const _0x42c33b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3a1486='',_0x488450='',_0x42875a=_0x3a1486+_0x46a15b;for(let _0x222ac0=0x2*0xd2a+0x127a+-0x2cce,_0x1464e5,_0x7471a6,_0x175b83=0x17e1+0x10fd+-0x28de;_0x7471a6=_0x482f0a['charAt'](_0x175b83++);~_0x7471a6&&(_0x1464e5=_0x222ac0%(-0x2619*0x1+-0xf6d+0xb2*0x4d)?_0x1464e5*(0x925*-0x2+-0x166b+0x2d*0xe9)+_0x7471a6:_0x7471a6,_0x222ac0++%(0xc49+-0x2*-0xde7+-0x1*0x2813))?_0x3a1486+=_0x42875a['charCodeAt'](_0x175b83+(-0x1809+0x35*0x65+0x32a))-(0x36d*0x3+0x1*0x2401+-0x1*0x2e3e)!==-0x2e+0x118e*-0x2+0x234a?String['fromCharCode'](0x553+-0x3a9+-0xab&_0x1464e5>>(-(-0x890*-0x1+-0x119*-0xe+0xbf6*-0x2)*_0x222ac0&0x8e1*-0x2+0x24e0+-0x98c*0x2)):_0x222ac0:0x2*-0xa9e+-0x1*-0x11b6+0x1c3*0x2){_0x7471a6=_0x42c33b['indexOf'](_0x7471a6);}for(let _0x278182=0x1*0x1957+-0x1*-0x1a3+-0x1afa,_0x47c4db=_0x3a1486['length'];_0x278182<_0x47c4db;_0x278182++){_0x488450+='%'+('00'+_0x3a1486['charCodeAt'](_0x278182)['toString'](0x160d+0x225*-0x9+-0x2b0))['slice'](-(-0x7b3+0x785+0x30));}return decodeURIComponent(_0x488450);};a0_0x280d['dnQYLX']=_0x46a15b,_0x44126d=arguments,a0_0x280d['gzGKvT']=!![];}const _0xffde4c=_0x8aec8a[0x2*0xf01+0x13c6+-0x1098*0x3],_0x100419=_0x23a35a+_0xffde4c,_0x2e63c8=_0x44126d[_0x100419];if(!_0x2e63c8){const _0x996969=function(_0x5da7fb){this['BXqXGb']=_0x5da7fb,this['HGgHrF']=[0x134*-0x1+0x203b*0x1+-0x1*0x1f06,-0x25c8+0xe45+0x1783,0x55*0x11+0xc*0x2d8+-0x1*0x27c5],this['cXjrlJ']=function(){return'newState';},this['iVSbhg']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['VHhGAz']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x996969['prototype']['IXtICL']=function(){const _0x5471ce=new RegExp(this['iVSbhg']+this['VHhGAz']),_0xf7f9cd=_0x5471ce['test'](this['cXjrlJ']['toString']())?--this['HGgHrF'][0x121+0x15b*-0x3+-0x2f1*-0x1]:--this['HGgHrF'][0x125f*0x1+-0x90c+-0x953];return this['phKflJ'](_0xf7f9cd);},_0x996969['prototype']['phKflJ']=function(_0x1a603f){if(!Boolean(~_0x1a603f))return _0x1a603f;return this['ZJIOzi'](this['BXqXGb']);},_0x996969['prototype']['ZJIOzi']=function(_0x265f71){for(let _0x238272=0x1ea8+-0x1*0x746+0x49*-0x52,_0x58c97d=this['HGgHrF']['length'];_0x238272<_0x58c97d;_0x238272++){this['HGgHrF']['push'](Math['round'](Math['random']())),_0x58c97d=this['HGgHrF']['length'];}return _0x265f71(this['HGgHrF'][-0x22d7+-0x4cb+0x27a2]);},new _0x996969(a0_0x280d)['IXtICL'](),_0x65bfc4=a0_0x280d['dnQYLX'](_0x65bfc4),_0x44126d[_0x100419]=_0x65bfc4;}else _0x65bfc4=_0x2e63c8;return _0x65bfc4;},a0_0x280d(_0x44126d,_0x30da64);}a0_0x5e461d['tools']={};const a0_0x1cb3ad={};a0_0x1cb3ad[a0_0x3e71b1(0xb5)+'es']=a0_0x5e461d;const server=new Server(a0_0x9d59fc,a0_0x1cb3ad);server[a0_0x8fe1b8(0x13d)+a0_0x8fe1b8(0xfc)](ListToolsRequestSchema,async()=>{const _0x4524b1={};return _0x4524b1['tools']=LOCATION_TOOLS,_0x4524b1;}),server[a0_0x3e71b1(0x13d)+a0_0x8fe1b8(0xfc)](CallToolRequestSchema,async _0x32f683=>{const a0_0x2d3c41={_0x52cbb7:0x87,_0x5f1658:0x6f,_0x2bfe5b:0x14c,_0x20c54a:0xb9,_0x227d82:0x126,_0x1f462f:0x127,_0x1b320e:0x90,_0x265c0a:0x12e,_0x21fa71:0x133},_0xe97d60=a0_0x3e71b1,_0x6508e5=a0_0x8fe1b8,_0x18d7f6={'dgcGE':function(_0x17b2a9){return _0x17b2a9();},'YGcxr':function(_0x5541b0,_0x2d52cf){return _0x5541b0(_0x2d52cf);},'IZnbK':function(_0x5b960e,_0x1be655){return _0x5b960e+_0x1be655;},'INywM':_0xe97d60(0xc6)+_0xe97d60(0x8e),'lZoiu':'{}.constru'+_0x6508e5(0xa7)+_0xe97d60(0x118)+'\x20)','YuLiu':function(_0x41c36f){return _0x41c36f();},'wgJdL':'tzYvj','sPmyq':_0x6508e5(a0_0x2d3c41._0x52cbb7),'ggEPE':function(_0x36457f,_0x5e03a4){return _0x36457f===_0x5e03a4;},'iYFcx':_0xe97d60(0x145)},{name:_0x3e2b4e}=_0x32f683[_0x6508e5(a0_0x2d3c41._0x5f1658)];try{if(_0x18d7f6['wgJdL']===_0x18d7f6[_0xe97d60(0x14d)])BMeqmE['dgcGE'](_0x3e0a2c);else switch(_0x3e2b4e){case'get_locati'+'on':return await handleGetLocation();default:throw new McpError(ErrorCode[_0x6508e5(0x66)+_0xe97d60(a0_0x2d3c41._0x2bfe5b)],_0xe97d60(0xcf)+_0xe97d60(0x15e)+_0x3e2b4e);}}catch(_0x3ddd4f){if(_0x18d7f6[_0xe97d60(a0_0x2d3c41._0x20c54a)](_0x18d7f6['iYFcx'],_0x18d7f6['iYFcx']))throw new McpError(ErrorCode['InternalEr'+_0x6508e5(a0_0x2d3c41._0x227d82)],_0xe97d60(a0_0x2d3c41._0x1f462f)+_0xe97d60(0xe6)+':\x20'+(_0x3ddd4f instanceof Error?_0x3ddd4f[_0x6508e5(a0_0x2d3c41._0x1b320e)]:_0x18d7f6[_0xe97d60(a0_0x2d3c41._0x265c0a)](String,_0x3ddd4f)));else{const _0x121e2f=BMeqmE[_0xe97d60(a0_0x2d3c41._0x265c0a)](_0x4d632a,BMeqmE[_0xe97d60(a0_0x2d3c41._0x21fa71)](BMeqmE[_0x6508e5(0x133)](BMeqmE['INywM'],BMeqmE['lZoiu']),');'));_0xe45876=BMeqmE[_0xe97d60(0x78)](_0x121e2f);}}});async function runServer(){const a0_0x3c628e={_0x56bf1b:0xd1,_0x5753ec:0x16b,_0x2b9016:0x8b,_0x41e851:0xa4,_0x16d007:0x70,_0x189680:0x101,_0x54e6f8:0x132,_0x2e4735:0x15d,_0x8a0697:0xdc},a0_0x42e0de={_0x530f00:0x111,_0x487a5d:0xaf,_0x2e2cf4:0xaf,_0x46df81:0xfb,_0x4f7365:0xe9,_0x47314e:0xd2,_0x45d5c3:0xbe,_0x35d38b:0x138,_0x3b6613:0x98,_0x297cf2:0x15c,_0x2193de:0x107,_0x532dc7:0x154},a0_0x570c24={_0x485e0a:0xb6},a0_0x29cd6a={_0x3bb367:0x8d,_0x44e040:0xec},_0x32488d=a0_0x8fe1b8,_0x5b3034=a0_0x3e71b1,_0xff7c72={'rWIXE':_0x32488d(a0_0x3c628e._0x56bf1b)+'+$','yaomK':_0x5b3034(a0_0x3c628e._0x5753ec)+_0x5b3034(0x16e),'qxCUi':_0x32488d(0x96),'AKZdZ':function(_0x414bb8,_0x4974c0){return _0x414bb8+_0x4974c0;},'Cyutx':_0x5b3034(0x88),'leJec':function(_0x7cbc83,_0x3e7aac){return _0x7cbc83(_0x3e7aac);},'KDFQZ':function(_0x528fd2){return _0x528fd2();},'JveBL':function(_0x5c8ca4,_0x4ad96f,_0x580927){return _0x5c8ca4(_0x4ad96f,_0x580927);},'QoerI':function(_0x33dce8,_0x47900c){return _0x33dce8!==_0x47900c;},'OCeep':'SkJHR','dzwsl':_0x32488d(a0_0x3c628e._0x2b9016),'BYNpO':_0x32488d(0x12f)+_0x32488d(0x94)+'d:','BWsvD':function(_0x177198,_0x2c6aa5){return _0x177198===_0x2c6aa5;},'yzveI':_0x32488d(0xf2),'tVauW':_0x5b3034(a0_0x3c628e._0x41e851),'VyNjX':function(_0x4192fe,_0x4e5494){return _0x4192fe+_0x4e5494;},'jdORE':_0x5b3034(0xf4)+_0x32488d(0xa7)+_0x32488d(0x118)+'\x20)','MbCKe':function(_0x25f307){return _0x25f307();},'rnBBG':_0x5b3034(0xc0),'lEnUU':_0x32488d(a0_0x3c628e._0x16d007),'pTpOK':'log','mStjq':_0x5b3034(a0_0x3c628e._0x189680),'DHuCJ':_0x32488d(0x147),'eyMnU':_0x5b3034(0x9c),'rlttC':'table','OqtrJ':_0x32488d(a0_0x3c628e._0x54e6f8),'fREKl':function(_0x28ee9e,_0x8a7bee){return _0x28ee9e<_0x8a7bee;},'Svgvu':function(_0x3554ce,_0x4b0ca1,_0x1bdde0){return _0x3554ce(_0x4b0ca1,_0x1bdde0);}},_0x13d8cb=(function(){let _0xa2e8f6=!![];return function(_0x206db2,_0x125ee8){const _0x1920eb=_0xa2e8f6?function(){const _0x3b4e46=a0_0x280d;if(_0x125ee8){const _0x40f6b1=_0x125ee8[_0x3b4e46(0xce)](_0x206db2,arguments);return _0x125ee8=null,_0x40f6b1;}}:function(){};return _0xa2e8f6=![],_0x1920eb;};}()),_0x197262=_0xff7c72[_0x5b3034(a0_0x3c628e._0x2e4735)](_0x13d8cb,this,function(){const _0x2639a5=_0x32488d,_0x1c3240=_0x32488d;return _0x197262['toString']()[_0x2639a5(0xc8)](_0xff7c72['rWIXE'])['toString']()['constructo'+'r'](_0x197262)[_0x1c3240(0xc8)](_0x1c3240(0xd1)+'+$');});_0xff7c72[_0x5b3034(a0_0x3c628e._0x8a0697)](_0x197262);const _0x319d58=(function(){let _0x59b8ac=!![];return function(_0x2ef027,_0x3390cf){const _0x483e35=_0x59b8ac?function(){const _0xa0c611=a0_0x280d;if(_0x3390cf){const _0x223dc9=_0x3390cf[_0xa0c611(0xce)](_0x2ef027,arguments);return _0x3390cf=null,_0x223dc9;}}:function(){};return _0x59b8ac=![],_0x483e35;};}());(function(){const a0_0x3890a6={_0x4792e8:0xbf,_0x3d7e57:0xd9,_0x3d38e1:0x139,_0x1f190f:0x16a},a0_0x23a8df={_0xc0361c:0xb6},_0x21ff3c=_0x32488d,_0x53bc99=_0x5b3034,_0x354183={'gHvTT':_0xff7c72[_0x21ff3c(a0_0x29cd6a._0x3bb367)],'Wzhlj':_0xff7c72[_0x53bc99(0x7d)],'Fspbp':function(_0x357538,_0x1b4f98){return _0xff7c72['AKZdZ'](_0x357538,_0x1b4f98);},'bkiMr':_0xff7c72['Cyutx'],'KoodX':function(_0x4f40d2,_0x5c24c9){const _0x1adc35=_0x21ff3c;return _0xff7c72[_0x1adc35(a0_0x23a8df._0xc0361c)](_0x4f40d2,_0x5c24c9);},'NqYZj':function(_0x14afdf){const _0x1638f3=_0x21ff3c;return _0xff7c72[_0x1638f3(0xdc)](_0x14afdf);}};_0xff7c72[_0x53bc99(a0_0x29cd6a._0x44e040)](_0x319d58,this,function(){const _0x5b3701=_0x21ff3c,_0x4c8002=_0x21ff3c,_0x38fb97=new RegExp(_0x354183[_0x5b3701(0x67)]),_0x137efb=new RegExp('\x5c+\x5c+\x20*(?:['+'a-zA-Z_$]['+_0x4c8002(a0_0x3890a6._0x4792e8)+'$]*)','i'),_0x3f3a82=_0x463cd7(_0x354183[_0x5b3701(0x99)]);!_0x38fb97[_0x4c8002(a0_0x3890a6._0x3d7e57)](_0x354183[_0x4c8002(a0_0x3890a6._0x3d38e1)](_0x3f3a82,_0x4c8002(a0_0x3890a6._0x1f190f)))||!_0x137efb[_0x4c8002(0xd9)](_0x354183[_0x4c8002(0x139)](_0x3f3a82,_0x354183[_0x5b3701(0xa1)]))?_0x354183[_0x4c8002(0x65)](_0x3f3a82,'0'):_0x354183[_0x5b3701(0x160)](_0x463cd7);})();}());const _0xa0e77a=(function(){const _0x14a51e=_0x5b3034,_0x2b2e50=_0x5b3034;if(_0xff7c72[_0x14a51e(0xe2)](_0xff7c72[_0x14a51e(0xba)],_0xff7c72['dzwsl'])){let _0x2dd705=!![];return function(_0x5cd432,_0x431d55){const _0x48c766=_0x2dd705?function(){const _0xf13e50=a0_0x280d;if(_0x431d55){const _0x169904=_0x431d55[_0xf13e50(0xce)](_0x5cd432,arguments);return _0x431d55=null,_0x169904;}}:function(){};return _0x2dd705=![],_0x48c766;};}else lOcyoT[_0x14a51e(a0_0x570c24._0x485e0a)](_0x3254c0,'0');}()),_0x5210ea=_0xff7c72[_0x5b3034(0x15d)](_0xa0e77a,this,function(){const _0x45ded2=_0x32488d,_0x28eba9=_0x32488d;if(_0xff7c72['BWsvD'](_0xff7c72[_0x45ded2(a0_0x42e0de._0x530f00)],_0xff7c72[_0x45ded2(0xad)]))_0x211b4b(_0x397aec);else{let _0x2417c1;try{const _0x2dfaeb=_0xff7c72[_0x28eba9(0xb6)](Function,_0xff7c72[_0x28eba9(a0_0x42e0de._0x487a5d)](_0xff7c72[_0x45ded2(a0_0x42e0de._0x2e2cf4)](_0x28eba9(0xc6)+_0x45ded2(0x8e),_0xff7c72['jdORE']),');'));_0x2417c1=_0xff7c72['MbCKe'](_0x2dfaeb);}catch(_0x33475d){_0xff7c72[_0x45ded2(0xe2)](_0xff7c72[_0x28eba9(a0_0x42e0de._0x46df81)],_0xff7c72[_0x28eba9(0x144)])?_0x2417c1=window:(_0x38c3ec[_0x28eba9(0x147)](_0xff7c72[_0x28eba9(a0_0x42e0de._0x4f7365)],_0x3242a7),_0x520c96[_0x45ded2(a0_0x42e0de._0x47314e)](0x13a1+-0x1db+-0x1*0x11c5));}const _0x16cad7=_0x2417c1['console']=_0x2417c1[_0x45ded2(0x168)]||{},_0x145099=[_0xff7c72[_0x45ded2(a0_0x42e0de._0x45d5c3)],_0xff7c72[_0x45ded2(0xf0)],_0x45ded2(0xda),_0xff7c72[_0x28eba9(a0_0x42e0de._0x35d38b)],_0xff7c72[_0x45ded2(a0_0x42e0de._0x3b6613)],_0xff7c72[_0x28eba9(a0_0x42e0de._0x297cf2)],_0xff7c72[_0x45ded2(0x164)]];for(let _0x3ce376=0x7*0x448+0x9*0x3a3+0x1*-0x3eb3;_0xff7c72[_0x28eba9(0x143)](_0x3ce376,_0x145099[_0x28eba9(0x167)]);_0x3ce376++){const _0x1f3c1f=_0xa0e77a[_0x45ded2(0xaa)+'r'][_0x28eba9(0x137)][_0x45ded2(a0_0x42e0de._0x2193de)](_0xa0e77a),_0x535fe8=_0x145099[_0x3ce376],_0x24a79d=_0x16cad7[_0x535fe8]||_0x1f3c1f;_0x1f3c1f[_0x45ded2(a0_0x42e0de._0x532dc7)]=_0xa0e77a[_0x45ded2(a0_0x42e0de._0x2193de)](_0xa0e77a),_0x1f3c1f['toString']=_0x24a79d['toString'][_0x28eba9(0x107)](_0x24a79d),_0x16cad7[_0x535fe8]=_0x1f3c1f;}}});_0x5210ea();const _0x382a67=new StdioServerTransport();await server['connect'](_0x382a67);}runServer()['catch'](_0x214b66=>{const a0_0xc48cba={_0x3eadfc:0x94,_0x20d3e3:0x147},_0x4c4f88=a0_0x3e71b1,_0x3e65e0=a0_0x3e71b1,_0x5784ae={};_0x5784ae[_0x4c4f88(0x8c)]='Server\x20sta'+_0x3e65e0(a0_0xc48cba._0x3eadfc)+'d:';const _0x2ddca6=_0x5784ae;console[_0x3e65e0(a0_0xc48cba._0x20d3e3)](_0x2ddca6[_0x4c4f88(0x8c)],_0x214b66),process['exit'](0x8*-0x316+0x4bd*-0x1+-0x1*-0x1d6e);});function _0x463cd7(_0x493998){const a0_0x45d7c3={_0x18d7d1:0xc6,_0x5e0df2:0xc4,_0x2ff891:0x124,_0x585176:0x93,_0x1a19ec:0x11c,_0x146a8d:0x6a,_0x39d204:0xa5,_0x49e93a:0x126,_0x537692:0x9a,_0x3fa3d5:0x80,_0x1ebee6:0x6c,_0x1efa3a:0x12b,_0x3f0bf1:0xb7},a0_0x222455={_0x9f04d5:0x129,_0xbb0b37:0x140,_0x4c7a03:0x151,_0x9a79eb:0xf8,_0x51e4fa:0x10f,_0x4dcaa4:0x11c,_0x3f0749:0xb4,_0x472fe6:0x75,_0x41bb11:0x116,_0x1d5dea:0x140,_0xab789b:0xc9,_0x3ae69c:0xaa,_0x4346d9:0x135,_0x27fa68:0x140,_0x1a498d:0x71,_0x7cb96e:0xd4,_0x13284f:0xaa,_0x12b83c:0x6d,_0x4034b0:0x10e},a0_0x4287c1={_0x159a38:0xa3,_0x1a422c:0xc7,_0x13abe4:0x90,_0xc5e6a7:0x147},a0_0xdc0faf={_0x58084f:0x75},a0_0x149213={_0x676032:0xcd},_0x338147=a0_0x8fe1b8,_0x5544a5=a0_0x8fe1b8,_0x100ce9={'IwOyS':_0x338147(a0_0x45d7c3._0x18d7d1)+_0x338147(0x8e),'zapIf':function(_0x3c0b52){return _0x3c0b52();},'cAGRf':function(_0x3517b4,_0x225273){return _0x3517b4 instanceof _0x225273;},'LEvsg':function(_0x7d9291,_0x9be479){return _0x7d9291===_0x9be479;},'eISiD':_0x5544a5(a0_0x45d7c3._0x5e0df2),'oqNxF':function(_0x51282e,_0xf6d64f){return _0x51282e+_0xf6d64f;},'lRrZx':_0x338147(0xd7),'WEDAY':'JwhwG','JjIhp':'string','irDKF':function(_0x7a2544,_0x152117){return _0x7a2544!==_0x152117;},'ZWOTm':_0x5544a5(a0_0x45d7c3._0x2ff891),'DhYeT':'while\x20(tru'+'e)\x20{}','zZJks':_0x5544a5(a0_0x45d7c3._0x585176),'wheNg':_0x338147(a0_0x45d7c3._0x1a19ec),'VSYiy':function(_0x4c7cc7,_0x167fae){return _0x4c7cc7+_0x167fae;},'ufuzl':function(_0x1a0583,_0x254cea){return _0x1a0583/_0x254cea;},'SCXXU':function(_0x55cac1,_0x1f982f){return _0x55cac1%_0x1f982f;},'SdHNW':'gger','Zhjne':'action','ejKRv':_0x338147(0xd0)+'t','YMCVi':function(_0x66b4ab,_0x52132b){return _0x66b4ab(_0x52132b);},'trdtt':_0x5544a5(0x89)+'open\x20brows'+'er:','GqxNT':function(_0xa501d,_0x26f361){return _0xa501d instanceof _0x26f361;},'TZyHL':_0x5544a5(a0_0x45d7c3._0x146a8d),'zdUbq':_0x5544a5(0x105)};function _0x2a1ba7(_0x218534){const a0_0x5782b1={_0x4c9eae:0xab},_0x437793=_0x338147,_0x51fac9=_0x338147,_0x2d66a8={'JKmGK':_0x100ce9[_0x437793(0x159)],'FKZyg':function(_0x138508){const _0x57c364=_0x437793;return _0x100ce9[_0x57c364(a0_0x5782b1._0x4c9eae)](_0x138508);},'AEdCY':function(_0x42e32f,_0x17192f){const _0x188b51=_0x437793;return _0x100ce9[_0x188b51(a0_0x149213._0x676032)](_0x42e32f,_0x17192f);},'kgZld':function(_0x34f1b4,_0x1c3e3e){const _0x209255=_0x437793;return _0x100ce9[_0x209255(a0_0xdc0faf._0x58084f)](_0x34f1b4,_0x1c3e3e);},'kBMTB':_0x100ce9[_0x51fac9(a0_0x222455._0x9f04d5)],'kULQj':function(_0x593a41,_0x3939be){const _0x3db2a7=_0x51fac9;return _0x100ce9[_0x3db2a7(0x135)](_0x593a41,_0x3939be);},'JOUIc':_0x100ce9[_0x51fac9(a0_0x222455._0xbb0b37)],'XRNjS':_0x437793(0x71)};if(_0x51fac9(a0_0x222455._0x4c7a03)===_0x100ce9[_0x437793(0x15b)]){if(_0x100ce9['LEvsg'](typeof _0x218534,_0x100ce9[_0x51fac9(a0_0x222455._0x9a79eb)])){if(_0x100ce9[_0x51fac9(0x12b)](_0x100ce9[_0x51fac9(a0_0x222455._0x51e4fa)],_0x100ce9[_0x51fac9(a0_0x222455._0x51e4fa)])){const _0x2d9f15=_0x5e702a?function(){if(_0x3f79b7){const _0x24afe8=_0xe8d9f2['apply'](_0x37d2e3,arguments);return _0x38bc48=null,_0x24afe8;}}:function(){};return _0x19ba65=![],_0x2d9f15;}else return function(_0x14bb42){}['constructo'+'r'](_0x100ce9['DhYeT'])[_0x51fac9(0xce)](_0x100ce9[_0x51fac9(0x68)]);}else{if(_0x100ce9['wheNg']!==_0x51fac9(a0_0x222455._0x4dcaa4)){const _0x1e65ce=_0x47cce5(_0x2d66a8['JKmGK']+('{}.constru'+_0x437793(0xa7)+'rn\x20this\x22)('+'\x20)')+');');_0x4b0b4f=_0x2d66a8[_0x51fac9(a0_0x222455._0x3f0749)](_0x1e65ce);}else _0x100ce9['irDKF'](_0x100ce9['VSYiy']('',_0x100ce9[_0x51fac9(0xa0)](_0x218534,_0x218534))['length'],0xce3*-0x3+-0x1e0e+0x44b8)||_0x100ce9[_0x437793(a0_0x222455._0x472fe6)](_0x100ce9[_0x51fac9(a0_0x222455._0x41bb11)](_0x218534,0x169b*-0x1+-0x2f2*-0x4+0xae7),0x15b2+0x76c+-0xe8f*0x2)?function(){const _0x3987ef=_0x437793,_0x41ec2e=_0x437793;if(_0x2d66a8[_0x3987ef(a0_0x4287c1._0x159a38)](_0x2d66a8[_0x41ec2e(0xc1)],_0x2d66a8[_0x3987ef(0xc1)]))return!![];else{const _0xcb4b4e=_0x3987ef(0xfd)+(_0x2d66a8[_0x3987ef(a0_0x4287c1._0x1a422c)](_0xf4f8b1,_0x3db6e5)?_0x488d52[_0x3987ef(a0_0x4287c1._0x13abe4)]:_0x3ad51a(_0x5816d6));_0x461c39[_0x3987ef(a0_0x4287c1._0xc5e6a7)](_0xcb4b4e);throw new _0x24a4ef(_0x480692[_0x3987ef(0xa5)+'ror'],_0xcb4b4e);}}[_0x51fac9(0xaa)+'r'](_0x100ce9[_0x51fac9(a0_0x222455._0x1d5dea)]+_0x100ce9[_0x437793(0xae)])['call'](_0x100ce9[_0x51fac9(a0_0x222455._0xab789b)]):function(){return![];}[_0x437793(a0_0x222455._0x3ae69c)+'r'](_0x100ce9[_0x437793(a0_0x222455._0x4346d9)](_0x100ce9[_0x51fac9(a0_0x222455._0x27fa68)],_0x437793(a0_0x222455._0x1a498d)))[_0x51fac9(0xce)](_0x100ce9[_0x51fac9(a0_0x222455._0x7cb96e)]);}_0x100ce9[_0x51fac9(0xb7)](_0x2a1ba7,++_0x218534);}else(function(){return![];}[_0x437793(a0_0x222455._0x13284f)+'r'](_0x2d66a8[_0x51fac9(a0_0x222455._0x12b83c)](_0x2d66a8[_0x51fac9(0xff)],_0x2d66a8[_0x51fac9(a0_0x222455._0x4034b0)]))[_0x51fac9(0xce)]('stateObjec'+'t'));}try{if(_0x100ce9[_0x338147(0xa6)]===_0x100ce9[_0x5544a5(0xca)]){_0x2eb09c['error'](_0x100ce9[_0x5544a5(0xb3)],_0x342679);throw new _0x3fcbf9(_0x2e382b[_0x5544a5(a0_0x45d7c3._0x39d204)+_0x338147(a0_0x45d7c3._0x49e93a)],_0x338147(0x89)+_0x5544a5(0xc5)+'er:\x20'+(_0x100ce9['GqxNT'](_0x57063d,_0x32a1e2)?_0x5c7380['message']:_0x387e90(_0x54323e))+(_0x5544a5(a0_0x45d7c3._0x537692)+_0x5544a5(a0_0x45d7c3._0x3fa3d5)+_0x5544a5(a0_0x45d7c3._0x1ebee6))+_0x32771f);}else{if(_0x493998)return _0x2a1ba7;else _0x100ce9[_0x338147(a0_0x45d7c3._0x1efa3a)](_0x5544a5(0x170),_0x338147(0x170))?_0x100ce9[_0x338147(a0_0x45d7c3._0x3f0bf1)](_0x50b5d7,-0x13b6+-0x747+-0x3db*-0x7):_0x2a1ba7(-0x11bc+0x1d00+0x4*-0x2d1);}}catch(_0x58e2b9){}}
|
package/package.json
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
"name": "@mcpcn/mcp-get-location",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "Location MCP Server",
|
5
|
+
"main": "dist/index.js",
|
6
|
+
"files": [
|
7
|
+
"dist/index.js",
|
8
|
+
"README.md"
|
9
|
+
],
|
10
|
+
"bin": {
|
11
|
+
"mcp-get-location": "dist/index.js"
|
12
|
+
},
|
13
|
+
"type": "module",
|
14
|
+
"scripts": {
|
15
|
+
"build": "npm run build:tsc && npm run build:obfuscate",
|
16
|
+
"build:tsc": "tsc",
|
17
|
+
"build:obfuscate": "javascript-obfuscator dist/index.js --output dist/index.js --config obfuscator.config.json",
|
18
|
+
"build:dev": "tsc",
|
19
|
+
"start": "node dist/index.js"
|
20
|
+
},
|
21
|
+
"dependencies": {
|
22
|
+
"@modelcontextprotocol/sdk": "1.12.0",
|
23
|
+
"node-fetch": "^3.3.2"
|
24
|
+
},
|
25
|
+
"devDependencies": {
|
26
|
+
"@types/node": "^20.10.5",
|
27
|
+
"javascript-obfuscator": "^4.1.1",
|
28
|
+
"typescript": "^5.3.3"
|
29
|
+
}
|
30
|
+
}
|