feat: add create_subscription_registration_link MCP tool#91
Open
jating06 wants to merge 9 commits into
Open
Conversation
Add comprehensive agent skill for integrating Razorpay UPI Reserve Pay APIs, enabling merchants to implement single-block multiple-debit recurring payment workflows with proper authorization and execution handling. Made-with: Cursor
Adds the create_subscription_registration_link tool that wraps the Razorpay POST /v1/subscription_registration/auth_links API. The tool allows merchants to create registration auth links that are sent to customers (via SMS/email) to authorize a recurring payment mandate (card, emandate, nach, etc.). Also fixes a pre-existing build failure in pkg/mcpgo/server.go caused by the mcp-go v0.45.0 upgrade changing OnAfterCallToolFunc's result parameter type from *mcp.CallToolResult to any. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The result parameter must be *mcp.CallToolResult, not any, to match the OnAfterCallToolFunc type defined in mcp-go v0.43.2. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Moves the skill from ~/.claude/skills into .claude/skills so it is version-controlled alongside the codebase it operates on. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The tool belongs to a separate resource (subscription_registration), not payment_links. Extract it into: - pkg/razorpay/subscription_registration_links.go - pkg/razorpay/subscription_registration_links_test.go Register it under a new `subscription_registration_links` toolset in tools.go instead of the payment_links toolset. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #91 +/- ##
==========================================
+ Coverage 97.32% 97.33% +0.01%
==========================================
Files 34 35 +1
Lines 7370 7480 +110
==========================================
+ Hits 7173 7281 +108
- Misses 134 135 +1
- Partials 63 64 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Summary
create_subscription_registration_linkMCP tool wrapping the RazorpayPOST /v1/subscription_registration/auth_linksAPIpayment_linkstoolsetpkg/mcpgo/server.gocaused by themcp-go v0.45.0upgrade changingOnAfterCallToolFunc'sresultparameter type from*mcp.CallToolResulttoanyParameters
customertype"link")amountcurrencyINR,MYR)subscription_registrationdescriptionreceiptemail_notifysms_notifyexpire_bynotesTest plan
go test ./...passes (all 9 packages)//nolint:lll🤖 Generated with Claude Code