Conversation
76d7614 to
1761f14
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new MCP server command and extends the Sourceloop CLI functionality.
- Added an MCP server adapter and corresponding command implementations (update, scaffold, microservice, extension, cdk, mcp).
- Updated tests and documentation to support the new commands with MCP flags and descriptions.
Reviewed Changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/cli/src/utilities/mcp-adapter.ts | New MCP adapter that overrides prompt to throw an error for unexpected prompt calls |
| packages/cli/src/types.ts | Type definitions now include MCP-specific flags and command properties |
| packages/cli/src/commands/* | Multiple command files updated to add MCP descriptions, flags, and MCP-run implementations |
| packages/cli/src/command-base.ts, generators | Adjustments to support MCP responses and exit handling changes |
| packages/cli/src/tests/* | New tests added for MCP functionality and adjustments to existing test suites |
| packages/cli/README.md | Documentation updated to include the new MCP command usage |
| packages/cli/package.json | Dependency updates to support new functionality |
Comments suppressed due to low confidence (1)
packages/cli/src/tests/commands/mcp.test.ts:49
- The test description implies that an error should be thrown for an invalid payload, but the assertion expects a successful response. Please update the test description or adjust the assertion so that it accurately reflects the intended behavior.
it('should call throw error for registered command if invalid payload is provided', async () => {
rohit-sourcefuse
approved these changes
Jun 13, 2025
c747385 to
a6d94dd
Compare
|
samarpan-b
reviewed
Jul 3, 2025
| @@ -0,0 +1 @@ | |||
| {"root":["./src/app-generator.ts","./src/base-generator.ts","./src/command-base.ts","./src/enum.ts","./src/extension-generator.ts","./src/index.ts","./src/types.ts","./src/update-generator.ts","./src/utils.ts","./src/__tests__/commands/extension.test.ts","./src/__tests__/commands/mcp.test.ts","./src/__tests__/commands/microservice.test.ts","./src/__tests__/commands/scaffold.test.ts","./src/__tests__/commands/update.test.ts","./src/__tests__/helper/command-test.helper.ts","./src/__tests__/suite/extension.ts","./src/__tests__/suite/mcp.ts","./src/__tests__/suite/microservice-options.ts","./src/__tests__/suite/microservice-prompts.ts","./src/__tests__/suite/scaffold.ts","./src/__tests__/suite/update.ts","./src/commands/cdk.ts","./src/commands/extension.ts","./src/commands/mcp.ts","./src/commands/microservice.ts","./src/commands/scaffold.ts","./src/commands/update.ts","./src/generators/backstage-integration/index.ts","./src/generators/cdk/index.ts","./src/generators/extension/index.ts","./src/generators/microservice/index.ts","./src/generators/scaffold/index.ts","./src/generators/update/index.ts","./src/generators/update/types/types.ts","./src/types/app.d.ts","./src/types/base.d.ts","./src/types/extension.d.ts","./src/types/project.d.ts","./src/types/update.d.ts","./src/utilities/command-adapter.ts","./src/utilities/index.ts","./src/utilities/yeoman-runner.ts"],"errors":true,"version":"5.8.3"} No newline at end of file | |||
Contributor
There was a problem hiding this comment.
this file should not have been merged @a-ganguly
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.




Description
@sourceloop/cliType of change
Checklist: