Skip to content

feat(credential-requests): Add implementation of the credential requests endpoints#35

Open
Bram Winter (winterworks) wants to merge 13 commits intomainfrom
add-credential-requests-endpoints
Open

feat(credential-requests): Add implementation of the credential requests endpoints#35
Bram Winter (winterworks) wants to merge 13 commits intomainfrom
add-credential-requests-endpoints

Conversation

@winterworks

Add implementation of the new credential requests endpoints.

@winterworks Bram Winter (winterworks) marked this pull request as ready for review February 23, 2026 09:04
@winterworks Bram Winter (winterworks) requested a review from a team as a code owner February 23, 2026 09:04
Copilot AI review requested due to automatic review settings February 23, 2026 09:04
Copy link
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 first-class support for the Make “credential requests” API surface to the SDK (and exposes it via MCP tools), along with test fixtures and an integration test.

Changes:

  • Introduces CredentialRequests endpoint client with list/get/create/delete and credential actions (get/decline/delete-remote).
  • Registers new MCP tools for credential-requests and wires the endpoint into Make + MCP tool aggregation.
  • Adds credential-requests mock fixtures and an integration test.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
test/mocks/credential-requests/list.json Adds mock payload for listing credential requests (incl. pagination block).
test/mocks/credential-requests/get.json Adds mock payload for fetching a single credential request.
test/mocks/credential-requests/get-credential.json Adds mock payload for fetching a credential by id.
test/mocks/credential-requests/delete-remote.json Adds mock payload for delete-remote credential action response.
test/mocks/credential-requests/decline.json Adds mock payload for decline credential action response.
test/mocks/credential-requests/create.json Adds mock payload for create credential request response.
test/credential-requests.integration.test.ts Adds integration coverage for credential-requests flows.
src/mcp.ts Registers credential-requests MCP tools in MakeMCPTools.
src/make.ts Exposes make.credentialRequests on the SDK client.
src/index.ts Exports credential-requests types for SDK consumers.
src/endpoints/credential-requests.ts Implements the CredentialRequests endpoint client + related types.
src/endpoints/credential-requests.mcp.ts Adds MCP tool definitions for credential-requests operations.

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

* Delete a credential request by ID
* @param requestId - The ID of the credential request to delete
* @param options - Optional parameters
* @param options.confirmed - When true, also deletes associated credentials (connections and keys)

Choose a reason for hiding this comment

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

Could we please rename confirmed to something that better reflects what is actually happening? Ideally, this change should apply not only here but also in the API. The term confirmed is already used on the platform for a different purpose - to display a confirmation dialog in the UI - so the current name is misleading.

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