-
Notifications
You must be signed in to change notification settings - Fork 0
feat: MCP server packaging and CI/CD setup #2
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4c4aa4f
chore: update package.json to add MCPB pack script and dependencies
mpicciolli c81aff4
feat: enhance long description in manifest.json for clarity
mpicciolli cfa1da1
feat: add step to build MCP bundle in CI workflow
mpicciolli 94f2fe3
fix: add author name to package.json
mpicciolli 4fa937e
feat: add GitHub Actions workflow for package publishing
mpicciolli 501246c
feat: add lint-staged configuration for JSON and TypeScript files
mpicciolli 075d783
fix: standardize formatting in lint-staged config and README
mpicciolli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: Publish Package | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - "v*.*.*" | ||
|
|
||
| permissions: | ||
| id-token: write # Required for OIDC | ||
| contents: write # Required for creating GitHub Releases | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: "24" | ||
| registry-url: "https://registry.npmjs.org" | ||
| package-manager-cache: false # never use caching in release builds | ||
| - run: npm ci | ||
| - run: npm run build --if-present | ||
| - run: npm run pack | ||
| - run: npm test | ||
| - run: npm publish | ||
|
mpicciolli marked this conversation as resolved.
|
||
|
|
||
|
mpicciolli marked this conversation as resolved.
|
||
| - name: Create GitHub Release | ||
| uses: softprops/action-gh-release@v3 | ||
| with: | ||
| generate_release_notes: true | ||
| files: dist/pcm-mcp.mcpb | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "*.json": ["biome check --write"], | ||
| "*.ts": ["biome check --write"] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { | ||
| "manifest_version": "0.3", | ||
| "name": "pcm-mcp-server", | ||
| "version": "0.0.0", | ||
| "description": "MCP server for querying Pro Cycling Manager game databases", | ||
| "long_description": "MCP server for querying Pro Cycling Manager game databases. This server provides tools to discover and inspect PCM career save files via the MCP protocol, allowing AI assistants to explore your saves in a structured way. This server is strictly read-only", | ||
| "author": { | ||
| "name": "mpicciolli" | ||
| }, | ||
| "server": { | ||
| "type": "node", | ||
| "entry_point": "dist/index.js", | ||
| "mcp_config": { | ||
| "command": "node", | ||
| "args": ["${__dirname}/dist/index.js"], | ||
| "env": {} | ||
| } | ||
| }, | ||
| "license": "MIT", | ||
| "icon": "assets/icon.png" | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.