Skip to content

feat: add functionality to list app modules with credentials#56

Merged
Patrik Simek (patriksimek) merged 9 commits intomainfrom
feat-modules-with-credentals
Apr 25, 2026
Merged

feat: add functionality to list app modules with credentials#56
Patrik Simek (patriksimek) merged 9 commits intomainfrom
feat-modules-with-credentals

Conversation

@JanKulhavy
Copy link
Copy Markdown
Contributor

@JanKulhavy JanKulhavy commented Apr 23, 2026

Adds an SDK endpoint to list Make app modules that require credentials (including required credential types/scopes), with corresponding MCP tool exposure and test coverage.

Copilot AI review requested due to automatic review settings April 23, 2026 11:52
@JanKulhavy JanKulhavy requested a review from a team as a code owner April 23, 2026 11:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an SDK endpoint to list Make app modules that require credentials (including required credential types/scopes), with corresponding MCP tool exposure and test coverage.

Changes:

  • Added CredentialRequests.listAppModulesWithCredentials(appName, appVersion) and the AppModuleWithCredentials response type.
  • Exported the new response type from the package entrypoint.
  • Added unit + integration tests and a JSON mock fixture for the new endpoint.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/endpoints/credential-requests.ts Introduces AppModuleWithCredentials type and the listAppModulesWithCredentials API call.
src/index.ts Re-exports AppModuleWithCredentials for public consumption.
src/endpoints/credential-requests.mcp.ts Adds an MCP tool wrapper for listing app modules with credentials.
test/mocks/credential-requests/list-app-modules-with-credentials.json Provides mock API payload for unit testing.
test/credential-requests.spec.ts Adds unit tests validating URL construction + URL-encoding for SDK apps.
test/credential-requests.integration.test.ts Adds integration test to validate real API shape for a public app.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/endpoints/credential-requests.mcp.ts Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/tools.ts
Comment thread test/credential-requests.integration.test.ts Outdated
- Add minItems/maxItems to JSONSchema (already used by tool defs) and
  correct minLength/maxLength docs to be string-only per JSON Schema spec.
- Align integration test assertion with AppModuleWithCredentials.scope
  being optional for non-OAuth credential types.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/tools.ts
@patriksimek Patrik Simek (patriksimek) merged commit b2e0f00 into main Apr 25, 2026
4 checks passed
@patriksimek Patrik Simek (patriksimek) deleted the feat-modules-with-credentals branch April 25, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants