mapnetwork-mcp 0.1.6__tar.gz → 1.1.0__tar.gz
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.
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/PKG-INFO +11 -1
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/README.md +10 -0
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/RELEASING.md +60 -60
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/manifest.json +1 -1
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/mapnetwork_mcp/server.py +15 -11
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/pyproject.toml +1 -1
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/.gitignore +0 -0
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/.mcpbignore +0 -0
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/LICENSE +0 -0
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/images/Kanazawa21Museum-beige.png +0 -0
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/images/Kanazawa21Museum-black.png +0 -0
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/images/Kanazawa21Museum-brawn.png +0 -0
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/images/Kanazawa21Museum-darkBlue.png +0 -0
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/images/Kanazawa21Museum-lightGreen.png +0 -0
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/images/Kanazawa21Museum-popArt.png +0 -0
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/images/Kanazawa21Museum-white.png +0 -0
- {mapnetwork_mcp-0.1.6 → mapnetwork_mcp-1.1.0}/mapnetwork_mcp/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mapnetwork-mcp
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: MCP server — generate styled map images via mapnetwork.app
|
|
5
5
|
Project-URL: Homepage, https://mapnetwork.app
|
|
6
6
|
Project-URL: Repository, https://github.com/toruproject/mapnetwork-mcp
|
|
@@ -42,6 +42,16 @@ The same map, redownloaded in different color themes:
|
|
|
42
42
|
|
|
43
43
|
### Claude Desktop
|
|
44
44
|
|
|
45
|
+
#### Using the .mcpb extension file (recommended)
|
|
46
|
+
|
|
47
|
+
The easiest way to install is via the `.mcpb` extension file available on the [Releases](https://github.com/toruproject/mapnetwork-mcp/releases) page.
|
|
48
|
+
|
|
49
|
+
1. Download the latest `.mcpb` file from the Releases page.
|
|
50
|
+
2. Open Claude Desktop and go to **Settings** → **Extensions**.
|
|
51
|
+
3. Drag the downloaded `.mcpb` file onto the Extensions panel to install.
|
|
52
|
+
|
|
53
|
+
#### Manual configuration
|
|
54
|
+
|
|
45
55
|
Add the following to your `claude_desktop_config.json`:
|
|
46
56
|
|
|
47
57
|
```json
|
|
@@ -30,6 +30,16 @@ The same map, redownloaded in different color themes:
|
|
|
30
30
|
|
|
31
31
|
### Claude Desktop
|
|
32
32
|
|
|
33
|
+
#### Using the .mcpb extension file (recommended)
|
|
34
|
+
|
|
35
|
+
The easiest way to install is via the `.mcpb` extension file available on the [Releases](https://github.com/toruproject/mapnetwork-mcp/releases) page.
|
|
36
|
+
|
|
37
|
+
1. Download the latest `.mcpb` file from the Releases page.
|
|
38
|
+
2. Open Claude Desktop and go to **Settings** → **Extensions**.
|
|
39
|
+
3. Drag the downloaded `.mcpb` file onto the Extensions panel to install.
|
|
40
|
+
|
|
41
|
+
#### Manual configuration
|
|
42
|
+
|
|
33
43
|
Add the following to your `claude_desktop_config.json`:
|
|
34
44
|
|
|
35
45
|
```json
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
# Releasing a new version
|
|
2
|
-
|
|
3
|
-
This project's version number is declared in **three places** that must stay in sync:
|
|
4
|
-
|
|
5
|
-
| File | Field(s) |
|
|
6
|
-
|---|---|
|
|
7
|
-
| `pyproject.toml` | `[project] version` |
|
|
8
|
-
| `server.json` | `version`, `packages[0].version` |
|
|
9
|
-
| `manifest.json` | `version` |
|
|
10
|
-
|
|
11
|
-
## Steps
|
|
12
|
-
|
|
13
|
-
1. **Bump the version** in all three files above (same value).
|
|
14
|
-
|
|
15
|
-
2. **Build the PyPI package**
|
|
16
|
-
```bash
|
|
17
|
-
rm -f dist/*.whl dist/*.tar.gz
|
|
18
|
-
.venv/Scripts/python -m build
|
|
19
|
-
.venv/Scripts/python -m twine check dist/*
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
3. **Upload to PyPI**
|
|
23
|
-
```bash
|
|
24
|
-
.venv/Scripts/python -m twine upload dist/mapnetwork_mcp-<version>*
|
|
25
|
-
```
|
|
26
|
-
Requires a PyPI API token (via `~/.pypirc` or `TWINE_USERNAME=__token__` / `TWINE_PASSWORD=...`).
|
|
27
|
-
|
|
28
|
-
4. **Publish to the MCP registry**
|
|
29
|
-
```bash
|
|
30
|
-
./mcp-publisher.exe validate server.json
|
|
31
|
-
./mcp-publisher.exe login github # only needed if the session expired
|
|
32
|
-
./mcp-publisher.exe publish server.json
|
|
33
|
-
```
|
|
34
|
-
The registry entry's `packages[0].version` must match the version actually live on PyPI (the registry does not host the code itself).
|
|
35
|
-
|
|
36
|
-
⚠️ `login github` requires manually entering a device confirmation code in the browser — it cannot be automated.
|
|
37
|
-
|
|
38
|
-
5. **Rebuild the MCPB bundle**
|
|
39
|
-
```bash
|
|
40
|
-
npx --yes @anthropic-ai/mcpb validate manifest.json
|
|
41
|
-
npx --yes @anthropic-ai/mcpb pack . dist/mapnetwork-mcp.mcpb
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
6. **Commit, tag, and push**
|
|
45
|
-
```bash
|
|
46
|
-
git add pyproject.toml server.json manifest.json
|
|
47
|
-
git commit -m "Bump version to <version>"
|
|
48
|
-
git push origin main
|
|
49
|
-
git tag -a v<version> -m "v<version>"
|
|
50
|
-
git push origin v<version>
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
7. **Create the GitHub Release** with the `.mcpb` bundle attached
|
|
54
|
-
```bash
|
|
55
|
-
gh release create v<version> dist/mapnetwork-mcp.mcpb --title "v<version>" --notes "..."
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## Notes
|
|
59
|
-
|
|
60
|
-
- `.mcpregistry_github_token` / `.mcpregistry_registry_token` hold the `mcp-publisher` login session — they are git-ignored and must never be committed.
|
|
1
|
+
# Releasing a new version
|
|
2
|
+
|
|
3
|
+
This project's version number is declared in **three places** that must stay in sync:
|
|
4
|
+
|
|
5
|
+
| File | Field(s) |
|
|
6
|
+
|---|---|
|
|
7
|
+
| `pyproject.toml` | `[project] version` |
|
|
8
|
+
| `server.json` | `version`, `packages[0].version` |
|
|
9
|
+
| `manifest.json` | `version` |
|
|
10
|
+
|
|
11
|
+
## Steps
|
|
12
|
+
|
|
13
|
+
1. **Bump the version** in all three files above (same value).
|
|
14
|
+
|
|
15
|
+
2. **Build the PyPI package**
|
|
16
|
+
```bash
|
|
17
|
+
rm -f dist/*.whl dist/*.tar.gz
|
|
18
|
+
.venv/Scripts/python -m build
|
|
19
|
+
.venv/Scripts/python -m twine check dist/*
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
3. **Upload to PyPI**
|
|
23
|
+
```bash
|
|
24
|
+
.venv/Scripts/python -m twine upload dist/mapnetwork_mcp-<version>*
|
|
25
|
+
```
|
|
26
|
+
Requires a PyPI API token (via `~/.pypirc` or `TWINE_USERNAME=__token__` / `TWINE_PASSWORD=...`).
|
|
27
|
+
|
|
28
|
+
4. **Publish to the MCP registry**
|
|
29
|
+
```bash
|
|
30
|
+
./mcp-publisher.exe validate server.json
|
|
31
|
+
./mcp-publisher.exe login github # only needed if the session expired
|
|
32
|
+
./mcp-publisher.exe publish server.json
|
|
33
|
+
```
|
|
34
|
+
The registry entry's `packages[0].version` must match the version actually live on PyPI (the registry does not host the code itself).
|
|
35
|
+
|
|
36
|
+
⚠️ `login github` requires manually entering a device confirmation code in the browser — it cannot be automated.
|
|
37
|
+
|
|
38
|
+
5. **Rebuild the MCPB bundle**
|
|
39
|
+
```bash
|
|
40
|
+
npx --yes @anthropic-ai/mcpb validate manifest.json
|
|
41
|
+
npx --yes @anthropic-ai/mcpb pack . dist/mapnetwork-mcp.mcpb
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
6. **Commit, tag, and push**
|
|
45
|
+
```bash
|
|
46
|
+
git add pyproject.toml server.json manifest.json
|
|
47
|
+
git commit -m "Bump version to <version>"
|
|
48
|
+
git push origin main
|
|
49
|
+
git tag -a v<version> -m "v<version>"
|
|
50
|
+
git push origin v<version>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
7. **Create the GitHub Release** with the `.mcpb` bundle attached
|
|
54
|
+
```bash
|
|
55
|
+
gh release create v<version> dist/mapnetwork-mcp.mcpb --title "v<version>" --notes "..."
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Notes
|
|
59
|
+
|
|
60
|
+
- `.mcpregistry_github_token` / `.mcpregistry_registry_token` hold the `mcp-publisher` login session — they are git-ignored and must never be committed.
|
|
61
61
|
- `dist/` is git-ignored; build artifacts and the `.mcpb` bundle are distributed only via PyPI / the GitHub Release, not via the repository.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"manifest_version": "0.4",
|
|
3
3
|
"name": "mapnetwork-mcp",
|
|
4
4
|
"display_name": "MapNetwork",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "1.1.0",
|
|
6
6
|
"description": "Generate styled PNG/SVG map images of any location with 11 customizable color themes.",
|
|
7
7
|
"long_description": "MCP server for MapNetwork — generate styled map images (PNG / SVG) for any location on Earth, directly from Claude.\n\n- Generate maps from a place name, coordinates, or a list of markers\n- 11 color themes (white, darkBlue, darkGreen, popArt, lightBlue, lightGreen, beige, magenta, gray, black, brawn)\n- Overlay walking / driving routes on the map\n- PNG or SVG output, saved to your Downloads folder\n- Re-download a previously generated map in a different theme or format without regenerating\n- Open any generated map in the MapNetwork web editor for manual customization",
|
|
8
8
|
"author": {
|
|
@@ -31,7 +31,7 @@ mcp = FastMCP(
|
|
|
31
31
|
"instead of radius — useful when the area of interest is not square\n"
|
|
32
32
|
"- **Layers**: choose which features appear. "
|
|
33
33
|
"Use EXACTLY these values (singular, no trailing 's'): "
|
|
34
|
-
"'road', 'highway', 'driving', 'walking', 'railway', 'waterline', 'poi'. "
|
|
34
|
+
"'road', 'highway', 'driving', 'walking', 'railway', 'waterline', 'greenarea', 'poi'. "
|
|
35
35
|
"Wrong: 'roads', 'railways', 'waterlines' — these will be rejected by the server.\n"
|
|
36
36
|
"- **Color themes** via `color_set`: "
|
|
37
37
|
"white (clean, default), darkBlue (navy bg), darkGreen (dark teal bg), "
|
|
@@ -52,7 +52,7 @@ mcp = FastMCP(
|
|
|
52
52
|
"Use this when the user asks to change only the appearance after already generating the map.\n\n"
|
|
53
53
|
"## Open in the MapNetwork editor\n"
|
|
54
54
|
"Any generated map can be opened and edited interactively in the MapNetwork web UI at:\n"
|
|
55
|
-
" https://mapnetwork.app/
|
|
55
|
+
" https://mapnetwork.app/generate?dataKey=<dataKey>\n"
|
|
56
56
|
"Mention this URL when the user might want to customize markers, colors, or layout manually. "
|
|
57
57
|
"The map data format is identical to what the UI produces when uploading data.\n\n"
|
|
58
58
|
"## Color themes\n"
|
|
@@ -201,12 +201,6 @@ async def generate_map(
|
|
|
201
201
|
"Map name stored in the data file. Used as the default download filename. "
|
|
202
202
|
"Omit to leave unnamed.",
|
|
203
203
|
] = None,
|
|
204
|
-
title: Annotated[
|
|
205
|
-
str | None,
|
|
206
|
-
"Optional title text rendered in the bottom-left corner of the map image. "
|
|
207
|
-
"Use when the user wants a label on the map (e.g. the place name or a description). "
|
|
208
|
-
"Omit to generate an untitled map.",
|
|
209
|
-
] = None,
|
|
210
204
|
radius: Annotated[
|
|
211
205
|
int | None,
|
|
212
206
|
"Circular coverage radius in meters (max 2500). "
|
|
@@ -237,6 +231,7 @@ async def generate_map(
|
|
|
237
231
|
"'walking' — footpaths and pedestrian walkways\n"
|
|
238
232
|
"'railway' — train and subway lines\n"
|
|
239
233
|
"'waterline' — rivers, lakes, and coastlines\n"
|
|
234
|
+
"'greenarea' — forests and woods\n"
|
|
240
235
|
"'poi' — point-of-interest icons (filterable with poi_types)\n"
|
|
241
236
|
"Example for road + railway + POI: ['road', 'railway', 'poi']",
|
|
242
237
|
] = None,
|
|
@@ -253,6 +248,15 @@ async def generate_map(
|
|
|
253
248
|
"To customise the line color, add a 'color' key: {**route_result, 'color': '#FF4500'}. "
|
|
254
249
|
"Omit to generate a map without a route overlay.",
|
|
255
250
|
] = None,
|
|
251
|
+
config: Annotated[
|
|
252
|
+
dict | None,
|
|
253
|
+
"Overrides for automatic layer-visibility defaults. Omit any field to keep the default. "
|
|
254
|
+
"Fields (all optional booleans): "
|
|
255
|
+
"'patchworked' (auto-color closed areas and building shapes, default true), "
|
|
256
|
+
"'withBuilding' (draw building shapes, default true when building data is available), "
|
|
257
|
+
"'withSeaRibbon' (draw a band representing the sea along the coastline, default true when coastline data is available). "
|
|
258
|
+
"Example to turn off buildings: {\"withBuilding\": false}.",
|
|
259
|
+
] = None,
|
|
256
260
|
color_set: Annotated[
|
|
257
261
|
str | None,
|
|
258
262
|
"Color theme for the map. Only set when the user explicitly requests one. "
|
|
@@ -304,8 +308,6 @@ async def generate_map(
|
|
|
304
308
|
body["icon"] = place_icon
|
|
305
309
|
if name is not None:
|
|
306
310
|
body["name"] = name
|
|
307
|
-
if title is not None:
|
|
308
|
-
body["title"] = title
|
|
309
311
|
if color_set is not None:
|
|
310
312
|
body["colorSet"] = color_set
|
|
311
313
|
if radius is not None:
|
|
@@ -316,6 +318,8 @@ async def generate_map(
|
|
|
316
318
|
body["poiTypes"] = poi_types
|
|
317
319
|
if route is not None:
|
|
318
320
|
body["route"] = route
|
|
321
|
+
if config is not None:
|
|
322
|
+
body["config"] = config
|
|
319
323
|
|
|
320
324
|
async with httpx.AsyncClient() as client:
|
|
321
325
|
# 1. Enqueue
|
|
@@ -365,7 +369,7 @@ async def generate_map(
|
|
|
365
369
|
(
|
|
366
370
|
f"Map saved: {out_path}\n"
|
|
367
371
|
f"dataKey: {data_key}\n\n"
|
|
368
|
-
f"Open in editor: https://mapnetwork.app/
|
|
372
|
+
f"Open in editor: https://mapnetwork.app/generate?dataKey={data_key}\n\n"
|
|
369
373
|
f"Tip: call redownload_map(data_key='{data_key}', ...) to get this map "
|
|
370
374
|
f"in a different color_set or format (svg/png) without regenerating."
|
|
371
375
|
),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|