atlasfetch-mcp 0.1.1 → 0.1.3
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/LICENSE +21 -21
- package/README.md +90 -90
- package/dist/server.js +65 -29
- package/dist/server.js.map +1 -1
- package/package.json +7 -4
- package/server.json +3 -3
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 ATLASIQ PTY LTD
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ATLASIQ PTY LTD
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
# atlasfetch-mcp
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
| `
|
|
18
|
-
| `
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
### Claude Code
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
claude mcp add atlasfetch -- npx -y atlasfetch-mcp
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Claude Desktop, Cursor, VS Code and other clients
|
|
35
|
-
|
|
36
|
-
Add to your MCP config (`claude_desktop_config.json`, `.cursor/mcp.json`, or your client's equivalent):
|
|
37
|
-
|
|
38
|
-
```json
|
|
39
|
-
{
|
|
40
|
-
"mcpServers": {
|
|
41
|
-
"atlasfetch": {
|
|
42
|
-
"command": "npx",
|
|
43
|
-
"args": ["-y", "atlasfetch-mcp"],
|
|
44
|
-
"env": {
|
|
45
|
-
"ATLASFETCH_API_KEY": "your-key-here"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Requires Node 20 or newer.
|
|
53
|
-
|
|
54
|
-
## Getting a key
|
|
55
|
-
|
|
56
|
-
The demo key is shared by **every** anonymous user on the internet — one pooled quota and rate limit. Fine for a first look, wrong for anything real.
|
|
57
|
-
|
|
58
|
-
Create your own at [atlasfetch.xyz/dashboard](https://atlasfetch.xyz/dashboard) and set `ATLASFETCH_API_KEY`. The free Personal plan needs no card.
|
|
59
|
-
|
|
60
|
-
| Variable | Default | Purpose |
|
|
61
|
-
| --- | --- | --- |
|
|
62
|
-
| `ATLASFETCH_API_KEY` | *(demo key)* | Your API key. |
|
|
63
|
-
| `ATLASFETCH_API_URL` | `https://api.atlasfetch.xyz` | Override only for local or staging APIs. |
|
|
64
|
-
|
|
65
|
-
## Two things that surprise people
|
|
66
|
-
|
|
67
|
-
**`municipal` is the finest unit available, not a consistent kind of thing.** Los Angeles returns a city; rural Kansas returns a county; some places return a district. Where a country's fine tier is patchy, a coarser complete tier answers instead, because a county beats `null` for most uses. Don't assume the value names a city.
|
|
68
|
-
|
|
69
|
-
**A new boundary set cannot be made queryable from here.** Sets are created switched off and granted to no key, and granting is addressed by API key *id* — which only a signed-in browser session can list. So this server can create a set and fill it, but the last step happens in the [dashboard](https://atlasfetch.xyz/dashboard). `create_boundary_set` says so in its response rather than leaving you with a set that silently matches nothing.
|
|
70
|
-
|
|
71
|
-
## Billing
|
|
72
|
-
|
|
73
|
-
One call is one lookup, however many layers, sets or grid codes it touches. Metering happens before matching, so a lookup that matches nothing still counts. Requests rejected as invalid or rate-limited are not billed.
|
|
74
|
-
|
|
75
|
-
## Development
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
npm install
|
|
79
|
-
npm run build
|
|
80
|
-
node scripts/smoke.mjs # drives the built server with a real MCP client, against the live API
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
## Links
|
|
84
|
-
|
|
85
|
-
- [Documentation](https://atlasfetch.xyz/docs) · [OpenAPI spec](https://api.atlasfetch.xyz/openapi.json) · [llms.txt](https://atlasfetch.xyz/llms.txt)
|
|
86
|
-
- [Playground](https://atlasfetch.xyz/playground) — try a lookup with no signup
|
|
87
|
-
|
|
88
|
-
## Licence
|
|
89
|
-
|
|
90
|
-
MIT for this server. Reference boundaries derive from OpenStreetMap under the [ODbL](https://atlasfetch.xyz/attribution); attribution and share-alike obligations pass through to you. Coordinates you look up are not stored.
|
|
1
|
+
# atlasfetch-mcp
|
|
2
|
+
|
|
3
|
+
**No signup needed to try it:** without a key it falls back to a shared public demo key, capped at 1,000 lookups a month across everyone using it. Get your own limits with a free sign-up at [atlasfetch.xyz](https://atlasfetch.xyz/dashboard).
|
|
4
|
+
|
|
5
|
+
An [MCP](https://modelcontextprotocol.io) server for [AtlasFetch](https://atlasfetch.xyz) — **reverse geocoding to administrative boundaries, and geofencing**, as tools your AI assistant can call directly.
|
|
6
|
+
|
|
7
|
+
Ask "which municipality is -33.9249, 18.4241 in?" and get **Cape Town, Western Cape, South Africa** with ISO 3166 codes — from a real point-in-polygon lookup, not the model's memory.
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
country: United Kingdom (GB) · region: England (GB-ENG) · municipal: City of Westminster (GB-WSM)
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## What it does
|
|
14
|
+
|
|
15
|
+
| Tool | What it does |
|
|
16
|
+
| --- | --- |
|
|
17
|
+
| `lookup_location` | A coordinate becomes the country, region and municipality containing it, with ISO 3166-1 / 3166-2 codes, plus matches from your own boundary sets. Optionally returns the point as an H3 cell or Google Plus Code. |
|
|
18
|
+
| `list_boundary_sets` | Lists your boundary sets, their counts, and which API keys may query them. |
|
|
19
|
+
| `create_boundary_set` | Creates an empty set for your own polygons. |
|
|
20
|
+
| `add_boundary` | Adds one GeoJSON polygon, with properties returned on every match. |
|
|
21
|
+
|
|
22
|
+
**Good for:** reverse geocoding to administrative areas, geofencing against your own delivery zones or service areas, jurisdiction and region checks, tagging location data with region codes.
|
|
23
|
+
|
|
24
|
+
**Not for:** street addresses or postcodes (this is not forward geocoding — results stop at the municipality), routing, distances, map tiles, or downloading boundary geometry.
|
|
25
|
+
|
|
26
|
+
## Install
|
|
27
|
+
|
|
28
|
+
### Claude Code
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
claude mcp add atlasfetch -- npx -y atlasfetch-mcp
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Claude Desktop, Cursor, VS Code and other clients
|
|
35
|
+
|
|
36
|
+
Add to your MCP config (`claude_desktop_config.json`, `.cursor/mcp.json`, or your client's equivalent):
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"mcpServers": {
|
|
41
|
+
"atlasfetch": {
|
|
42
|
+
"command": "npx",
|
|
43
|
+
"args": ["-y", "atlasfetch-mcp"],
|
|
44
|
+
"env": {
|
|
45
|
+
"ATLASFETCH_API_KEY": "your-key-here"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Requires Node 20 or newer.
|
|
53
|
+
|
|
54
|
+
## Getting a key
|
|
55
|
+
|
|
56
|
+
The demo key is shared by **every** anonymous user on the internet — one pooled quota and rate limit. Fine for a first look, wrong for anything real.
|
|
57
|
+
|
|
58
|
+
Create your own at [atlasfetch.xyz/dashboard](https://atlasfetch.xyz/dashboard) and set `ATLASFETCH_API_KEY`. The free Personal plan needs no card.
|
|
59
|
+
|
|
60
|
+
| Variable | Default | Purpose |
|
|
61
|
+
| --- | --- | --- |
|
|
62
|
+
| `ATLASFETCH_API_KEY` | *(demo key)* | Your API key. |
|
|
63
|
+
| `ATLASFETCH_API_URL` | `https://api.atlasfetch.xyz` | Override only for local or staging APIs. |
|
|
64
|
+
|
|
65
|
+
## Two things that surprise people
|
|
66
|
+
|
|
67
|
+
**`municipal` is the finest unit available, not a consistent kind of thing.** Los Angeles returns a city; rural Kansas returns a county; some places return a district. Where a country's fine tier is patchy, a coarser complete tier answers instead, because a county beats `null` for most uses. Don't assume the value names a city.
|
|
68
|
+
|
|
69
|
+
**A new boundary set cannot be made queryable from here.** Sets are created switched off and granted to no key, and granting is addressed by API key *id* — which only a signed-in browser session can list. So this server can create a set and fill it, but the last step happens in the [dashboard](https://atlasfetch.xyz/dashboard). `create_boundary_set` says so in its response rather than leaving you with a set that silently matches nothing.
|
|
70
|
+
|
|
71
|
+
## Billing
|
|
72
|
+
|
|
73
|
+
One call is one lookup, however many layers, sets or grid codes it touches. Metering happens before matching, so a lookup that matches nothing still counts. Requests rejected as invalid or rate-limited are not billed.
|
|
74
|
+
|
|
75
|
+
## Development
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
npm install
|
|
79
|
+
npm run build
|
|
80
|
+
node scripts/smoke.mjs # drives the built server with a real MCP client, against the live API
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Links
|
|
84
|
+
|
|
85
|
+
- [Documentation](https://atlasfetch.xyz/docs) · [OpenAPI spec](https://api.atlasfetch.xyz/openapi.json) · [llms.txt](https://atlasfetch.xyz/llms.txt)
|
|
86
|
+
- [Playground](https://atlasfetch.xyz/playground) — try a lookup with no signup
|
|
87
|
+
|
|
88
|
+
## Licence
|
|
89
|
+
|
|
90
|
+
MIT for this server. Reference boundaries derive from OpenStreetMap under the [ODbL](https://atlasfetch.xyz/attribution); attribution and share-alike obligations pass through to you. Coordinates you look up are not stored.
|
package/dist/server.js
CHANGED
|
@@ -13,7 +13,7 @@ import { ApiError, DEMO_KEY_NOTICE, request, usingDemoKey, } from './api.js';
|
|
|
13
13
|
* choosing a tool reads only these. The two that cause real mistakes:
|
|
14
14
|
* `municipal` is not always a city, and grid codes are output only.
|
|
15
15
|
*/
|
|
16
|
-
const VERSION = '0.1.
|
|
16
|
+
const VERSION = '0.1.3';
|
|
17
17
|
/** Every successful result carries the demo-key warning while one is in use. */
|
|
18
18
|
function ok(text) {
|
|
19
19
|
const body = usingDemoKey() ? `${text}\n\n${DEMO_KEY_NOTICE}` : text;
|
|
@@ -118,9 +118,9 @@ export function createServer() {
|
|
|
118
118
|
// ── Boundary sets ──────────────────────────────────────────────────────────
|
|
119
119
|
server.registerTool('list_boundary_sets', {
|
|
120
120
|
title: 'List the boundary sets on this account',
|
|
121
|
-
description: 'Lists the boundary sets on this account with their boundary counts and the API
|
|
122
|
-
'each is granted to. A set only matches during a lookup when it is available AND
|
|
123
|
-
'to the key making the call.',
|
|
121
|
+
description: 'Lists the boundary sets on this account with their boundary counts and the API keys (id ' +
|
|
122
|
+
'and label) each is granted to. A set only matches during a lookup when it is available AND ' +
|
|
123
|
+
'granted to the key making the call.',
|
|
124
124
|
inputSchema: {},
|
|
125
125
|
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
126
126
|
}, async () => {
|
|
@@ -148,7 +148,11 @@ export function createServer() {
|
|
|
148
148
|
'the user to finish that at https://atlasfetch.xyz/dashboard.',
|
|
149
149
|
].join('\n'),
|
|
150
150
|
inputSchema: {
|
|
151
|
-
name: z
|
|
151
|
+
name: z
|
|
152
|
+
.string()
|
|
153
|
+
.regex(/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,31}$/)
|
|
154
|
+
.describe('A short name, used to reference the set in lookups: 1-32 letters, digits, hyphens or ' +
|
|
155
|
+
'underscores, starting with a letter or digit.'),
|
|
152
156
|
},
|
|
153
157
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
154
158
|
}, async ({ name }) => {
|
|
@@ -162,37 +166,69 @@ export function createServer() {
|
|
|
162
166
|
return fail(error);
|
|
163
167
|
}
|
|
164
168
|
});
|
|
169
|
+
// Rules transcribed from the API's boundaryService (validatePolygon,
|
|
170
|
+
// validateProps, createBoundary) and plans.ts. The geometry schema is typed
|
|
171
|
+
// rather than a free record, so a MultiPolygon or a whole Feature is refused
|
|
172
|
+
// by the client before any request, and the schema itself tells the model
|
|
173
|
+
// what shape to build.
|
|
165
174
|
server.registerTool('add_boundary', {
|
|
166
|
-
title: 'Add a
|
|
167
|
-
description:
|
|
168
|
-
'
|
|
169
|
-
'
|
|
175
|
+
title: 'Add a polygon to a boundary set',
|
|
176
|
+
description: [
|
|
177
|
+
'Adds ONE polygon to an existing boundary set on this account, so that lookup_location',
|
|
178
|
+
'reports when a point falls inside it — delivery zones, service areas, sales territories.',
|
|
179
|
+
'Each call creates a new boundary: calling twice with the same name stores two.',
|
|
180
|
+
'',
|
|
181
|
+
'Before calling: the set must already exist (create_boundary_set). A set matches nothing in',
|
|
182
|
+
'lookups until it is switched on and granted to an API key in the dashboard at',
|
|
183
|
+
'https://atlasfetch.xyz/dashboard, which this server cannot do.',
|
|
184
|
+
'',
|
|
185
|
+
'geometry must be a single GeoJSON Polygon — not a MultiPolygon, Feature or',
|
|
186
|
+
'FeatureCollection. Positions are [longitude, latitude]. Each ring needs at least 4',
|
|
187
|
+
'positions and must be closed (last position equals the first); extra rings are holes.',
|
|
188
|
+
'Self-intersecting shapes are rejected. To store a MultiPolygon, add each part separately.',
|
|
189
|
+
'',
|
|
190
|
+
'Plan limits cap vertices per polygon (every position counts, including the closing one),',
|
|
191
|
+
'properties per boundary and boundaries per set; a limit hit is refused with a message naming',
|
|
192
|
+
'it. WITHOUT YOUR OWN KEY, the shared demo key is on the Public plan: at most 5 positions per',
|
|
193
|
+
'polygon (a closed quadrilateral), properties only category (zone, area, route, place,',
|
|
194
|
+
'other), color (green, blue, red, yellow, purple, orange) and priority (low, medium, high),',
|
|
195
|
+
'and one set shared with every demo user, where adding to a full set silently deletes its',
|
|
196
|
+
'oldest boundary. Never upload anything private with the demo key.',
|
|
197
|
+
'',
|
|
198
|
+
'Returns the stored boundary: id, set, name, properties, pointCount and createdAt.',
|
|
199
|
+
].join('\n'),
|
|
170
200
|
inputSchema: {
|
|
171
|
-
set: z
|
|
172
|
-
|
|
201
|
+
set: z
|
|
202
|
+
.string()
|
|
203
|
+
.regex(/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,31}$/)
|
|
204
|
+
.describe('Name of an existing set on this account (see list_boundary_sets).'),
|
|
205
|
+
name: z
|
|
206
|
+
.string()
|
|
207
|
+
.min(1)
|
|
208
|
+
.max(100)
|
|
209
|
+
.describe('Label returned when a looked-up point falls inside this polygon, e.g. "Zone A".'),
|
|
173
210
|
geometry: z
|
|
174
|
-
.
|
|
175
|
-
.
|
|
176
|
-
|
|
211
|
+
.object({
|
|
212
|
+
type: z.literal('Polygon'),
|
|
213
|
+
coordinates: z
|
|
214
|
+
.array(z.array(z.array(z.number()).min(2).max(3)).min(4))
|
|
215
|
+
.min(1)
|
|
216
|
+
.describe('Rings of [longitude, latitude] positions. The first ring is the outline; any further ' +
|
|
217
|
+
'rings are holes. Each ring is closed: its last position repeats its first.'),
|
|
218
|
+
})
|
|
219
|
+
.describe('A GeoJSON Polygon, e.g. {"type":"Polygon","coordinates":[[[18.40,-33.93],[18.40,-33.90],' +
|
|
220
|
+
'[18.44,-33.90],[18.44,-33.93],[18.40,-33.93]]]}.'),
|
|
177
221
|
properties: z
|
|
178
|
-
.record(z.string(), z.
|
|
222
|
+
.record(z.string().max(32), z.union([z.string().max(256), z.number(), z.boolean()]))
|
|
179
223
|
.optional()
|
|
180
|
-
.describe('
|
|
224
|
+
.describe('Optional flat key/value pairs returned with every match: keys up to 32 characters, values ' +
|
|
225
|
+
'a string (up to 256 characters), number or boolean. The demo key accepts only category, ' +
|
|
226
|
+
'color and priority, from fixed lists.'),
|
|
181
227
|
},
|
|
182
|
-
|
|
228
|
+
// destructiveHint is true because of the Public plan: adding to its full,
|
|
229
|
+
// shared set deletes the oldest boundary, which may be someone else's.
|
|
230
|
+
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
|
|
183
231
|
}, async ({ set, name, geometry, properties }) => {
|
|
184
|
-
// Caught here rather than at the API, so the message can name the actual
|
|
185
|
-
// mistake — passing a whole Feature is the common one.
|
|
186
|
-
if (typeof geometry.type !== 'string' || !('coordinates' in geometry)) {
|
|
187
|
-
return {
|
|
188
|
-
content: [{
|
|
189
|
-
type: 'text',
|
|
190
|
-
text: 'geometry must be a GeoJSON geometry object with "type" and "coordinates" — a ' +
|
|
191
|
-
'Feature or FeatureCollection is not accepted. Coordinates are [longitude, latitude].',
|
|
192
|
-
}],
|
|
193
|
-
isError: true,
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
232
|
try {
|
|
197
233
|
const created = await request('/boundaries', {
|
|
198
234
|
method: 'POST',
|
package/dist/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EACL,QAAQ,EAAE,eAAe,EAAE,OAAO,EAAE,YAAY,GAEjD,MAAM,UAAU,CAAA;AAEjB;;;;;;;;;;;GAWG;AAEH,MAAM,OAAO,GAAG,OAAO,CAAA;AAQvB,gFAAgF;AAChF,SAAS,EAAE,CAAC,IAAY;IACtB,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,OAAO,eAAe,EAAE,CAAC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EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;iBACnF,QAAQ,EAAE;iBACV,QAAQ,CACP,4FAA4F;gBAC1F,0FAA0F;gBAC1F,uCAAuC,CAC1C;SACJ;QACD,0EAA0E;QAC1E,uEAAuE;QACvE,WAAW,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE;KACxG,EACD,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE;QAC5C,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,OAAO,CAAU,aAAa,EAAE;gBACpD,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE;aAC1C,CAAC,CAAA;YACF,OAAO,EAAE,CAAC,UAAU,IAAI,aAAa,GAAG,SAAS,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QACnE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,KAAK,CAAC,CAAA;QACpB,CAAC;IACH,CAAC,CACF,CAAA;IAED,OAAO,MAAM,CAAA;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atlasfetch-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"mcpName": "xyz.atlasfetch/atlasfetch",
|
|
5
5
|
"description": "MCP server for AtlasFetch — reverse geocode a coordinate to its country, region and municipality (ISO 3166 codes), and match it against your own geofences.",
|
|
6
6
|
"keywords": [
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"homepage": "https://atlasfetch.xyz",
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/
|
|
23
|
+
"url": "git+https://github.com/atlasfetch-dev/atlasfetch-mcp.git"
|
|
24
24
|
},
|
|
25
25
|
"bugs": {
|
|
26
|
-
"url": "https://github.com/
|
|
26
|
+
"url": "https://github.com/atlasfetch-dev/atlasfetch-mcp/issues"
|
|
27
27
|
},
|
|
28
28
|
"type": "module",
|
|
29
29
|
"bin": {
|
|
@@ -42,14 +42,17 @@
|
|
|
42
42
|
"build": "tsc",
|
|
43
43
|
"prepublishOnly": "npm run build",
|
|
44
44
|
"start": "node dist/stdio.js",
|
|
45
|
-
"typecheck": "tsc --noEmit"
|
|
45
|
+
"typecheck": "tsc --noEmit",
|
|
46
|
+
"pack:mcpb": "npm run build && node scripts/pack-mcpb.mjs"
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
49
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
49
50
|
"zod": "^4.6.5"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
53
|
+
"@anthropic-ai/mcpb": "2.1.2",
|
|
52
54
|
"@types/node": "^24.0.0",
|
|
55
|
+
"fflate": "0.8.3",
|
|
53
56
|
"typescript": "^5.9.0"
|
|
54
57
|
}
|
|
55
58
|
}
|
package/server.json
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
"name": "xyz.atlasfetch/atlasfetch",
|
|
4
4
|
"title": "AtlasFetch",
|
|
5
5
|
"description": "Reverse geocode a coordinate to country, region and municipality, and match your own geofences.",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.3",
|
|
7
7
|
"websiteUrl": "https://atlasfetch.xyz",
|
|
8
8
|
"repository": {
|
|
9
|
-
"url": "https://github.com/
|
|
9
|
+
"url": "https://github.com/atlasfetch-dev/atlasfetch-mcp",
|
|
10
10
|
"source": "github"
|
|
11
11
|
},
|
|
12
12
|
"packages": [
|
|
13
13
|
{
|
|
14
14
|
"registryType": "npm",
|
|
15
15
|
"identifier": "atlasfetch-mcp",
|
|
16
|
-
"version": "0.1.
|
|
16
|
+
"version": "0.1.3",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
},
|