mapnetwork-mcp 0.1.5__tar.gz → 1.0.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mapnetwork-mcp
3
- Version: 0.1.5
3
+ Version: 1.0.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
@@ -28,7 +28,7 @@ MCP server for [MapNetwork](https://mapnetwork.app) — generate styled map imag
28
28
  **Prompt:** "Generate a map around the 21st Century Museum of Contemporary Art, Kanazawa."
29
29
 
30
30
  Here is the map it generated:
31
- <img src="images/Kanazawa21Museum-white.png" width="400" alt="Map Drawing Example">
31
+ <img src="https://raw.githubusercontent.com/toruproject/mapnetwork-mcp/main/images/Kanazawa21Museum-white.png" width="400" alt="Map Drawing Example">
32
32
 
33
33
  **Prompt:** "Redownload that map in a few different color themes."
34
34
 
@@ -36,12 +36,22 @@ The same map, redownloaded in different color themes:
36
36
 
37
37
  | Dark Blue Style | Light Green Style | Pop Art Style | Black Style |
38
38
  |:------------------------------------------------------------:|:--------------------------------------------------------------:|:----------------------------------------------------------------:|:---------------------------------------------------------:|
39
- | <img src="images/Kanazawa21Museum-darkBlue.png" width="160"> | <img src="images/Kanazawa21Museum-lightGreen.png" width="160"> | <img src="images/Kanazawa21Museum-popArt.png" width="160"> | <img src="images/Kanazawa21Museum-black.png" width="160"> |
39
+ | <img src="https://raw.githubusercontent.com/toruproject/mapnetwork-mcp/main/images/Kanazawa21Museum-darkBlue.png" width="160"> | <img src="https://raw.githubusercontent.com/toruproject/mapnetwork-mcp/main/images/Kanazawa21Museum-lightGreen.png" width="160"> | <img src="https://raw.githubusercontent.com/toruproject/mapnetwork-mcp/main/images/Kanazawa21Museum-popArt.png" width="160"> | <img src="https://raw.githubusercontent.com/toruproject/mapnetwork-mcp/main/images/Kanazawa21Museum-black.png" width="160"> |
40
40
 
41
41
  ## Installation
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
@@ -16,7 +16,7 @@ MCP server for [MapNetwork](https://mapnetwork.app) — generate styled map imag
16
16
  **Prompt:** "Generate a map around the 21st Century Museum of Contemporary Art, Kanazawa."
17
17
 
18
18
  Here is the map it generated:
19
- <img src="images/Kanazawa21Museum-white.png" width="400" alt="Map Drawing Example">
19
+ <img src="https://raw.githubusercontent.com/toruproject/mapnetwork-mcp/main/images/Kanazawa21Museum-white.png" width="400" alt="Map Drawing Example">
20
20
 
21
21
  **Prompt:** "Redownload that map in a few different color themes."
22
22
 
@@ -24,12 +24,22 @@ The same map, redownloaded in different color themes:
24
24
 
25
25
  | Dark Blue Style | Light Green Style | Pop Art Style | Black Style |
26
26
  |:------------------------------------------------------------:|:--------------------------------------------------------------:|:----------------------------------------------------------------:|:---------------------------------------------------------:|
27
- | <img src="images/Kanazawa21Museum-darkBlue.png" width="160"> | <img src="images/Kanazawa21Museum-lightGreen.png" width="160"> | <img src="images/Kanazawa21Museum-popArt.png" width="160"> | <img src="images/Kanazawa21Museum-black.png" width="160"> |
27
+ | <img src="https://raw.githubusercontent.com/toruproject/mapnetwork-mcp/main/images/Kanazawa21Museum-darkBlue.png" width="160"> | <img src="https://raw.githubusercontent.com/toruproject/mapnetwork-mcp/main/images/Kanazawa21Museum-lightGreen.png" width="160"> | <img src="https://raw.githubusercontent.com/toruproject/mapnetwork-mcp/main/images/Kanazawa21Museum-popArt.png" width="160"> | <img src="https://raw.githubusercontent.com/toruproject/mapnetwork-mcp/main/images/Kanazawa21Museum-black.png" width="160"> |
28
28
 
29
29
  ## Installation
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
@@ -29,10 +29,13 @@ This project's version number is declared in **three places** that must stay in
29
29
  ```bash
30
30
  ./mcp-publisher.exe validate server.json
31
31
  ./mcp-publisher.exe login github # only needed if the session expired
32
- ./mcp-publisher.exe publish server.json
32
+ ./mcp-publisher.exe publish serv
33
+ er.json
33
34
  ```
34
35
  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
 
37
+ ⚠️ `login github` requires manually entering a device confirmation code in the browser — it cannot be automated.
38
+
36
39
  5. **Rebuild the MCPB bundle**
37
40
  ```bash
38
41
  npx --yes @anthropic-ai/mcpb validate manifest.json
@@ -2,7 +2,7 @@
2
2
  "manifest_version": "0.4",
3
3
  "name": "mapnetwork-mcp",
4
4
  "display_name": "MapNetwork",
5
- "version": "0.1.5",
5
+ "version": "1.0.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": {
@@ -11,8 +11,8 @@ import httpx
11
11
  from mcp.server.fastmcp import FastMCP, Image
12
12
 
13
13
  BASE_URL = os.environ.get("MAPNETWORK_BASE_URL", "https://mapnetwork.app")
14
- POLL_INTERVAL_SEC = 5.0
15
- MAX_WAIT_SEC = 200
14
+ POLL_INTERVAL_SEC = 10.0
15
+ MAX_WAIT_SEC = 600
16
16
 
17
17
  mcp = FastMCP(
18
18
  "MapNetwork",
@@ -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/edit?dataKey=<dataKey>\n"
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,
@@ -304,8 +299,6 @@ async def generate_map(
304
299
  body["icon"] = place_icon
305
300
  if name is not None:
306
301
  body["name"] = name
307
- if title is not None:
308
- body["title"] = title
309
302
  if color_set is not None:
310
303
  body["colorSet"] = color_set
311
304
  if radius is not None:
@@ -365,7 +358,7 @@ async def generate_map(
365
358
  (
366
359
  f"Map saved: {out_path}\n"
367
360
  f"dataKey: {data_key}\n\n"
368
- f"Open in editor: https://mapnetwork.app/edit?dataKey={data_key}\n\n"
361
+ f"Open in editor: https://mapnetwork.app/generate?dataKey={data_key}\n\n"
369
362
  f"Tip: call redownload_map(data_key='{data_key}', ...) to get this map "
370
363
  f"in a different color_set or format (svg/png) without regenerating."
371
364
  ),
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mapnetwork-mcp"
3
- version = "0.1.5"
3
+ version = "1.0.0"
4
4
  description = "MCP server — generate styled map images via mapnetwork.app"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
File without changes