mapnetwork-mcp 1.0.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mapnetwork-mcp
3
- Version: 1.0.0
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
@@ -1,62 +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 serv
33
- er.json
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).
36
-
37
- ⚠️ `login github` requires manually entering a device confirmation code in the browser — it cannot be automated.
38
-
39
- 5. **Rebuild the MCPB bundle**
40
- ```bash
41
- npx --yes @anthropic-ai/mcpb validate manifest.json
42
- npx --yes @anthropic-ai/mcpb pack . dist/mapnetwork-mcp.mcpb
43
- ```
44
-
45
- 6. **Commit, tag, and push**
46
- ```bash
47
- git add pyproject.toml server.json manifest.json
48
- git commit -m "Bump version to <version>"
49
- git push origin main
50
- git tag -a v<version> -m "v<version>"
51
- git push origin v<version>
52
- ```
53
-
54
- 7. **Create the GitHub Release** with the `.mcpb` bundle attached
55
- ```bash
56
- gh release create v<version> dist/mapnetwork-mcp.mcpb --title "v<version>" --notes "..."
57
- ```
58
-
59
- ## Notes
60
-
61
- - `.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.
62
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": "1.0.0",
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": {
@@ -248,6 +248,15 @@ async def generate_map(
248
248
  "To customise the line color, add a 'color' key: {**route_result, 'color': '#FF4500'}. "
249
249
  "Omit to generate a map without a route overlay.",
250
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,
251
260
  color_set: Annotated[
252
261
  str | None,
253
262
  "Color theme for the map. Only set when the user explicitly requests one. "
@@ -309,6 +318,8 @@ async def generate_map(
309
318
  body["poiTypes"] = poi_types
310
319
  if route is not None:
311
320
  body["route"] = route
321
+ if config is not None:
322
+ body["config"] = config
312
323
 
313
324
  async with httpx.AsyncClient() as client:
314
325
  # 1. Enqueue
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mapnetwork-mcp"
3
- version = "1.0.0"
3
+ version = "1.1.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
File without changes