Initial configuatuions + Workflows setup #2
Merged
Conversation
Set rootDir to "src" so tsc outputs directly to dist/ instead of dist/src/, fixing the broken build/start scripts. Add .mcp.json for local MCP server discovery in Claude Code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Support both stdio and HTTP transports, selected via PORT env var. Uses StreamableHTTPServerTransport from the MCP SDK with Node's built-in http module — no new dependencies required. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6929765 to
00e6921
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR sets up initial project configuration and CI, adds a Vitest test suite for the MCP server tools, and extends the server entrypoint to optionally run over MCP Streamable HTTP when PORT is set.
Changes:
- Update TypeScript compilation root to
src/. - Add Vitest and a comprehensive
src/server.test.tssuite coveringlist_plugins,get_plugin, andsearch_plugins. - Add optional HTTP transport mode (
POST /mcp) plus a GitHub Actions CI workflow that builds and runs tests.
Reviewed changes
Copilot reviewed 7 out of 9 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.json | Set rootDir to src for cleaner build output structure. |
| src/server.test.ts | Adds Vitest coverage for MCP tool behaviors and filtering semantics. |
| src/index.ts | Adds HTTP server mode using Streamable HTTP transport when PORT is set. |
| pnpm-lock.yaml | Locks new dev dependencies (Vitest ecosystem, Vite transitive deps). |
| package.json | Adds packageManager, serve, and test scripts; adds Vitest devDependency. |
| README.md | Documents stdio vs HTTP usage and available MCP tools. |
| .mcp.json | Adds local MCP server config pointing to dist/index.js. |
| .github/workflows/ci.yml | Adds CI workflow to install, build, and test on PRs and main. |
| .claude/commands/commit.md | Removes the /commit slash command definition. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
8 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.