mapnetwork-mcp 1.2.1__tar.gz → 1.2.2__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,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mapnetwork-mcp
3
- Version: 1.2.1
3
+ Version: 1.2.2
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
7
7
  License-File: LICENSE
8
8
  Requires-Python: >=3.11
9
9
  Requires-Dist: httpx>=0.27.0
10
- Requires-Dist: mcp[cli]>=1.0.0
10
+ Requires-Dist: mcp[cli]<2.0.0,>=1.0.0
11
11
  Description-Content-Type: text/markdown
12
12
 
13
13
  # mapnetwork-mcp
@@ -0,0 +1,87 @@
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/mapnetwork_mcp-<version>*
20
+ ```
21
+ Use the version-specific glob, not `dist/*` — a leftover `.mcpb` from a
22
+ previous release sits in the same `dist/` folder and `twine check` errors
23
+ out on it ("Unknown distribution format") even though the actual wheel/
24
+ sdist are fine.
25
+
26
+ 3. **Upload to PyPI**
27
+ ```bash
28
+ .venv/Scripts/python -m twine upload --disable-progress-bar dist/mapnetwork_mcp-<version>*
29
+ ```
30
+ Requires a PyPI API token (via `~/.pypirc` or `TWINE_USERNAME=__token__` / `TWINE_PASSWORD=...`).
31
+
32
+ ⚠️ On Windows, omitting `--disable-progress-bar` can crash twine with
33
+ `UnicodeEncodeError: 'cp932' codec can't encode character '•'`
34
+ (the legacy console can't render `rich`'s progress-bar glyphs). The crash
35
+ happens in the display code, not the upload itself, so **check whether the
36
+ upload actually went through before retrying** — re-uploading a version
37
+ that already landed is rejected by PyPI:
38
+ ```bash
39
+ curl -s https://pypi.org/pypi/mapnetwork-mcp/json | grep -o '"<version>"'
40
+ ```
41
+
42
+ 4. **Publish to the MCP registry**
43
+ ```bash
44
+ ./mcp-publisher.exe validate server.json
45
+ ./mcp-publisher.exe login github # only needed if the session expired
46
+ ./mcp-publisher.exe publish server.json
47
+ ```
48
+ The registry entry's `packages[0].version` must match the version actually live on PyPI (the registry does not host the code itself).
49
+
50
+ ⚠️ `login github` opens an interactive device-confirmation flow in the
51
+ browser — it cannot be automated or run on someone's behalf. Run it
52
+ yourself in your own terminal (not delegated to an agent) and confirm
53
+ it's done before continuing to `publish`.
54
+
55
+ 5. **Rebuild the MCPB bundle**
56
+ ```bash
57
+ npx --yes @anthropic-ai/mcpb validate manifest.json
58
+ npx --yes @anthropic-ai/mcpb pack . dist/mapnetwork-mcp.mcpb
59
+ ```
60
+ The output filename is literally `mapnetwork-mcp.mcpb` — **not**
61
+ version-suffixed (the `mcpb pack` tool's own summary output shows a
62
+ version-suffixed "Archive Details > filename" field, which is just a
63
+ display label and does not match the actual file written to disk). Use
64
+ `dist/mapnetwork-mcp.mcpb` verbatim in step 7, not a guessed
65
+ `mapnetwork-mcp-<version>.mcpb`.
66
+
67
+ 6. **Commit, tag, and push**
68
+ ```bash
69
+ git add pyproject.toml server.json manifest.json mapnetwork_mcp/server.py # plus any other source files changed for this release
70
+ git commit -m "Bump version to <version>"
71
+ git push origin main
72
+ git tag -a v<version> -m "v<version>"
73
+ git push origin v<version>
74
+ ```
75
+
76
+ 7. **Create the GitHub Release** with the `.mcpb` bundle attached
77
+ ```bash
78
+ gh release create v<version> dist/mapnetwork-mcp.mcpb --title "v<version>" --notes "..."
79
+ ```
80
+
81
+ ## Notes
82
+
83
+ - `.mcpregistry_github_token` / `.mcpregistry_registry_token` hold the `mcp-publisher` login session — they are git-ignored and must never be committed.
84
+ - `dist/` is git-ignored; build artifacts and the `.mcpb` bundle are distributed only via PyPI / the GitHub Release, not via the repository. Old files from a
85
+ previous release aren't cleaned up automatically (step 2 only removes
86
+ `*.whl`/`*.tar.gz`) — the stray `.mcpb` from the last run stays there, which
87
+ is exactly what trips up the `twine check dist/*` glob above.
@@ -2,7 +2,7 @@
2
2
  "manifest_version": "0.4",
3
3
  "name": "mapnetwork-mcp",
4
4
  "display_name": "MapNetwork",
5
- "version": "1.2.1",
5
+ "version": "1.2.2",
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": {
@@ -1,11 +1,14 @@
1
1
  [project]
2
2
  name = "mapnetwork-mcp"
3
- version = "1.2.1"
3
+ version = "1.2.2"
4
4
  description = "MCP server — generate styled map images via mapnetwork.app"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
7
7
  dependencies = [
8
- "mcp[cli]>=1.0.0",
8
+ # mcp 2.0.0はmcp.server.fastmcp(Context/FastMCP/Image)を含む破壊的変更が入っており、
9
+ # このコードと互換性が無い。uv runはpyproject.toml変更のたびに新しいvenvを作るため、
10
+ # 上限を付けないと知らぬ間に非互換バージョンへ切り替わってしまう
11
+ "mcp[cli]>=1.0.0,<2.0.0",
9
12
  "httpx>=0.27.0",
10
13
  ]
11
14
 
@@ -1,61 +0,0 @@
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
- - `dist/` is git-ignored; build artifacts and the `.mcpb` bundle are distributed only via PyPI / the GitHub Release, not via the repository.
File without changes
File without changes