-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add mcpb #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add mcpb #17
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Release MCPB Package | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v5 | ||
|
||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v2 | ||
with: | ||
bun-version: 1.2.23 | ||
|
||
- name: Set package version | ||
env: | ||
VERSION: ${{ github.ref_name }} | ||
run: | | ||
echo $(jq --arg v "${{ env.VERSION }}" '(.version) = $v' package.json) > package.json | ||
echo $(jq --arg v "${{ env.VERSION }}" '(.version) = $v' manifest.json) > manifest.json | ||
|
||
- name: Install Dependencies | ||
run: bun install --frozen-lockfile | ||
|
||
- name: Build | ||
run: bun run build | ||
|
||
- name: Pack MCPB | ||
run: bunx @anthropic-ai/mcpb pack | ||
|
||
- name: Clean MCPB | ||
run: bunx @anthropic-ai/mcpb clean mcp.mcpb | ||
|
||
- name: Upload MCPB to GitHub Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: mcp.mcpb | ||
fail_on_unmatched_files: true | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,6 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json | |
|
||
# Trae | ||
.trae | ||
|
||
# MCPB | ||
*.mcpb |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
*.config.* | ||
*.md | ||
**/__tests__/* | ||
|
||
.git* | ||
.trae | ||
|
||
src | ||
|
||
glama.json | ||
tsconfig.json | ||
Comment on lines
+1
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainReview ignore patterns for correctness. The ignore patterns generally look appropriate for MCPB packaging, excluding source, tests, and config files while keeping the built artifacts. However, verify that line 6 ( Run the following script to check if 🏁 Script executed: #!/bin/bash
# Description: Check for .trae files in the repository
# Search for files matching .trae pattern
fd -H -t f '\.trae$'
# Also check if this might be a typo for .trace
echo "Checking for .trace files:"
fd -H -t f '\.trace$' Length of output: 26 Remove or correct 🤖 Prompt for AI Agents
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
# Geocoding MCP Desktop Extension - Installation Guide | ||
|
||
## Overview | ||
This guide will help you install and configure the Geocoding MCP Desktop Extension (MCPB) for Claude Desktop. | ||
|
||
## Prerequisites | ||
- Claude Desktop application installed | ||
- macOS, Windows, or Linux operating system | ||
- Internet connection for geocoding API calls | ||
|
||
## Installation Steps | ||
|
||
### Method 1: Manual Installation (Recommended) | ||
|
||
1. **Locate the MCPB file** | ||
- Find the `mcp.mcpb` file in your project directory | ||
- File size: ~44MB | ||
|
||
2. **Install via Claude Desktop** | ||
- Open Claude Desktop | ||
- Go to Settings → Extensions | ||
- Click "Install Extension" | ||
- Select the `mcp.mcpb` file | ||
- Follow the installation prompts | ||
|
||
3. **Verify Installation** | ||
- Restart Claude Desktop | ||
- Check that "Geocoding MCP" appears in your extensions list | ||
- The extension should show as "Active" | ||
|
||
### Method 2: Command Line Installation (Advanced) | ||
|
||
```bash | ||
# If you have the MCPB CLI installed | ||
mcpb install mcp.mcpb | ||
|
||
# Or using bunx | ||
bunx @anthropic-ai/mcpb install mcp.mcpb | ||
``` | ||
|
||
## Configuration | ||
|
||
No additional configuration is required. The extension uses the free Nominatim API service. | ||
|
||
## Usage | ||
|
||
Once installed, you can use the following tools in Claude Desktop: | ||
|
||
### Geocode Tool | ||
Convert addresses to coordinates: | ||
```text | ||
Find the coordinates for "Times Square, New York" | ||
``` | ||
|
||
### Reverse Geocode Tool | ||
Convert coordinates to addresses: | ||
```text | ||
What address is at coordinates 40.7580, -73.9855? | ||
``` | ||
|
||
## Available Parameters | ||
|
||
### Geocode Parameters | ||
- `query` (required): Address or place name to search | ||
- `format`: Output format (json, xml, geojson, etc.) | ||
- `addressdetails`: Include detailed address components (0 or 1) | ||
- `countrycodes`: Limit search to specific countries | ||
- `limit`: Maximum number of results | ||
- `extratags`: Include additional tags | ||
- `namedetails`: Include name details | ||
- `polygon_*`: Include geometry data | ||
|
||
### Reverse Geocode Parameters | ||
- `lat` (required): Latitude (-90 to 90) | ||
- `lon` (required): Longitude (-180 to 180) | ||
- `zoom`: Detail level (0-18, higher = more detailed) | ||
- `format`: Output format | ||
- `addressdetails`: Include detailed address components | ||
- `extratags`: Include additional tags | ||
- `namedetails`: Include name details | ||
|
||
## Troubleshooting | ||
|
||
### Extension Not Loading | ||
1. Check that the DXT file is not corrupted | ||
2. Restart Claude Desktop | ||
3. Verify system compatibility | ||
4. Check Claude Desktop logs for errors | ||
|
||
### API Errors | ||
1. Verify internet connection | ||
2. Check if Nominatim service is accessible | ||
3. Ensure query parameters are valid | ||
4. Try simpler queries if complex ones fail | ||
|
||
### Performance Issues | ||
1. Reduce the number of results requested | ||
2. Avoid requesting polygon data unless needed | ||
3. Use appropriate zoom levels for reverse geocoding | ||
|
||
## Data Source & License | ||
|
||
- **Data Source**: OpenStreetMap via Nominatim API | ||
- **License**: Data © OpenStreetMap contributors, ODbL 1.0 | ||
- **Usage Policy**: Please respect Nominatim's usage policy | ||
- **Rate Limits**: Be mindful of API rate limits for heavy usage | ||
|
||
## Support | ||
|
||
For issues or questions: | ||
1. Check the troubleshooting section above | ||
2. Review the DXT_README.md for detailed documentation | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainVerify the referenced file exists. The documentation references Run the following script to check if the file exists: 🏁 Script executed: #!/bin/bash
# Check if DXT_README.md exists in the repository
fd -t f "DXT_README.md" Length of output: 0 Locate any matching README file Run the following to confirm whether a 🏁 Script executed: #!/bin/bash
# Find any Markdown file with “dxt” and “readme” in its name (case-insensitive)
find . -type f -iname "*dxt*readme*.md"
# Search for references to “DXT_README” in the repository
rg -n "DXT_README" Length of output: 74 Broken link to DXT_README.md 🤖 Prompt for AI Agents
|
||
3. Verify your query format and parameters | ||
4. Check Claude Desktop extension logs | ||
|
||
## Uninstallation | ||
|
||
To remove the extension: | ||
1. Open Claude Desktop Settings | ||
2. Go to Extensions | ||
3. Find "Geocoding MCP" in the list | ||
4. Click "Uninstall" or "Remove" | ||
5. Restart Claude Desktop | ||
|
||
## Version Information | ||
|
||
- **Extension Version**: 1.x | ||
- **MCPB Version**: 0.2 | ||
- **MCP SDK Version**: Latest | ||
- **Node.js Compatibility**: 18.x and above | ||
|
||
--- | ||
|
||
**Note**: This extension runs locally and does not store or transmit personal data beyond the geocoding queries sent to the Nominatim API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify MCPB command syntax and artifact naming.
The MCPB pack, clean, and upload steps look appropriate, but verify:
bunx @anthropic-ai/mcpb clean mcp.mcpb
command syntax is correct.mcp.mcpb
matches what's produced by the pack command.Ask the user to search the web for the latest @anthropic-ai/mcpb CLI documentation:
🌐 Web query:
💡 Result:
Short answer:
pack: mcpb pack [] []
clean: mcpb clean []
Artifact filename produced by pack:
Sources: Anthropic MCPB repo / README and Anthropic engineering docs (pack examples). [1] https://github.com/anthropics/mcpb [2] https://www.anthropic.com/engineering/desktop-extensions
Correct MCPB pack & clean commands
bunx @anthropic-ai/mcpb pack . mcp.mcpb
to explicitly generatemcp.mcpb
bunx @anthropic-ai/mcpb clean
(no file argument) to remove previous build artifacts🤖 Prompt for AI Agents