Skip to content

Commit e170138

Browse files
authored
Merge pull request #244 from dgageot/fixes
Fixes
2 parents ad1d109 + 9e93e42 commit e170138

File tree

4 files changed

+170
-23
lines changed

4 files changed

+170
-23
lines changed

prompts/catalog.yaml

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ registry:
77
source: https://github.com/docker/labs-ai-tools-for-devs/tree/main/prompts/examples/mcp-sqlite.md
88
icon: https://avatars.githubusercontent.com/u/48680494?v=4
99
tools:
10-
- name: read-query
11-
- name: write-query
12-
- name: create-table
13-
- name: list-tables
14-
- name: describe-table
15-
- name: append-insight
10+
- name: read_query
11+
- name: write_query
12+
- name: create_table
13+
- name: list_tables
14+
- name: describe_table
15+
- name: append_insight
1616
prompts: 1
1717
resources: {}
1818
curl:
@@ -479,7 +479,6 @@ registry:
479479
description: "Provides PostgreSQL database management capabilities. \nThis server assists with analyzing existing PostgreSQL setups, providing implementation guidance, debugging database issues, managing schemas, migrating data, and monitoring database performance.\n"
480480
title: PostgreSQL
481481
ref: github:docker/labs-ai-tools-for-devs?path=prompts/mcp/postgresql.md
482-
readme: https://github.com/docker/labs-ai-tools-for-devs/blob/main/prompts/mcp/readmes/postgres.md
483482
icon: https://avatars.githubusercontent.com/u/177543?s=200&v=4
484483
tools:
485484
- name: analyze_database
@@ -855,7 +854,7 @@ registry:
855854
type: string
856855
description: sender email address
857856
github-official:
858-
description: Provides seamless integration with GitHub APIs, enabling advanced automation and interaction capabilities for developers and tools.
857+
description: Official GitHub MCP Server, by GitHub. Provides seamless integration with GitHub APIs, enabling advanced automation and interaction capabilities for developers and tools.
859858
title: GitHub Official
860859
ref: github:docker/labs-ai-tools-for-devs?ref=main&path=prompts/mcp/github-official.md
861860
readme: https://github.com/docker/labs-ai-tools-for-devs/blob/main/prompts/mcp/readmes/github-official.md
@@ -2619,3 +2618,27 @@ registry:
26192618
- name: browser_wait
26202619
prompts: 0
26212620
resources: {}
2621+
razorpay:
2622+
description: Razorpay's Official MCP Server.
2623+
title: Razorpay
2624+
ref: github:docker/labs-ai-tools-for-devs?ref=main&path=prompts/mcp/razorpay.md
2625+
readme: https://github.com/docker/labs-ai-tools-for-devs/blob/main/prompts/mcp/readmes/razorpay.md
2626+
source: https://github.com/razorpay/razorpay-mcp-server/tree/main
2627+
icon: https://avatars.githubusercontent.com/u/7713209?v=4
2628+
tools:
2629+
- name: create_order
2630+
- name: create_payment_link
2631+
- name: fetch_order
2632+
- name: fetch_payment
2633+
- name: fetch_payment_link
2634+
secrets:
2635+
- name: razorpay.key_secret
2636+
prompts: 0
2637+
resources: {}
2638+
config:
2639+
- name: razorpay
2640+
description: Configure the connection to Razorpay
2641+
type: object
2642+
properties:
2643+
key_id:
2644+
type: string

prompts/mcp/razorpay.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
mcp:
3+
- container:
4+
image: mcp/razorpay:latest
5+
workdir: /app
6+
secrets:
7+
razorpay.key_secret: RAZORPAY_KEY_SECRET
8+
environment:
9+
RAZORPAY_KEY_ID: "{{razorpay.key_id}}"
10+
source:
11+
url: https://github.com/razorpay/razorpay-mcp-server/tree/main
12+
---

prompts/mcp/readmes/razorpay.md

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# Razorpay MCP Server
2+
3+
Razorpay's Official MCP Server.
4+
5+
[What is an MCP Server?](https://www.anthropic.com/news/model-context-protocol)
6+
7+
## Characteristics
8+
Attribute|Details|
9+
|-|-|
10+
**Image Source**|Official Image
11+
**Docker Image**|[mcp/razorpay](https://hub.docker.com/repository/docker/mcp/razorpay)
12+
**Author**|[razorpay](https://github.com/razorpay)
13+
**Repository**|https://github.com/razorpay/razorpay-mcp-server
14+
**Dockerfile**|https://github.com/razorpay/razorpay-mcp-server/blob/main/Dockerfile
15+
**Docker Image built by**|Docker Inc.
16+
**Docker Scout Health Score**| ![Docker Scout Health Score](https://api.scout.docker.com/v1/policy/insights/org-image-score/badge/mcp/razorpay)
17+
**Licence**|MIT License
18+
19+
## Available Tools
20+
Tools provided by this Server|Short Description
21+
-|-
22+
`create_order`|Create a new order in Razorpay|
23+
`create_payment_link`|Create a new payment link in Razorpay with a specified amount|
24+
`fetch_order`|Fetch an order's details using its ID|
25+
`fetch_payment`|Use this tool to retrieve the details of a specific payment using its id.|
26+
`fetch_payment_link`|Fetch payment link details using it's ID.Response contains the basic details like amount, status etc|
27+
28+
---
29+
## Tools Details
30+
31+
#### Tool: **`create_order`**
32+
Create a new order in Razorpay
33+
Parameters|Type|Description
34+
-|-|-
35+
`amount`|`number`|Payment amount in the smallest currency sub-unit (e.g., for ₹295, use 29500)
36+
`currency`|`string`|ISO code for the currency (e.g., INR, USD, SGD)
37+
`first_payment_min_amount`|`number` *optional*|Minimum amount for first partial payment (only if partial_payment is true)
38+
`notes`|`object` *optional*|Key-value pairs for additional information (max 15 pairs, 256 chars each)
39+
`partial_payment`|`boolean` *optional*|Whether the customer can make partial payments
40+
`receipt`|`string` *optional*|Receipt number for internal reference (max 40 chars, must be unique)
41+
42+
---
43+
#### Tool: **`create_payment_link`**
44+
Create a new payment link in Razorpay with a specified amount
45+
Parameters|Type|Description
46+
-|-|-
47+
`amount`|`number`|Amount to be paid using the link in smallest currency unit(e.g., ₹300, use 30000)
48+
`currency`|`string`|Three-letter ISO code for the currency (e.g., INR)
49+
`description`|`string` *optional*|A brief description of the Payment Link explaining the intent of the payment.
50+
51+
---
52+
#### Tool: **`fetch_order`**
53+
Fetch an order's details using its ID
54+
Parameters|Type|Description
55+
-|-|-
56+
`order_id`|`string`|Unique identifier of the order to be retrieved
57+
58+
---
59+
#### Tool: **`fetch_payment`**
60+
Use this tool to retrieve the details of a specific payment using its id. Amount returned is in paisa
61+
Parameters|Type|Description
62+
-|-|-
63+
`payment_id`|`string`|payment_id is unique identifier of the payment to be retrieved.
64+
65+
---
66+
#### Tool: **`fetch_payment_link`**
67+
Fetch payment link details using it's ID.Response contains the basic details like amount, status etc
68+
Parameters|Type|Description
69+
-|-|-
70+
`payment_link_id`|`string`|ID of the payment link to be fetched(ID should have a plink_ prefix).
71+
72+
---
73+
## Use this MCP Server
74+
75+
```json
76+
{
77+
"mcpServers": {
78+
"razorpay": {
79+
"command": "docker",
80+
"args": [
81+
"run",
82+
"-i",
83+
"--rm",
84+
"-e",
85+
"RAZORPAY_KEY_ID",
86+
"-e",
87+
"RAZORPAY_KEY_SECRET",
88+
"mcp/razorpay"
89+
],
90+
"env": {
91+
"RAZORPAY_KEY_ID": "your_razorpay_key_id",
92+
"RAZORPAY_KEY_SECRET": "your_razorpay_key_secret"
93+
}
94+
}
95+
}
96+
}
97+
```
98+
99+
[Why is it safer to run MCP Servers with Docker?](https://www.docker.com/blog/the-model-context-protocol-simplifying-building-ai-apps-with-anthropic-claude-desktop-and-docker/)

src/extension/ui/src/components/tile/Modal.tsx

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -302,21 +302,34 @@ const ConfigurationModal = ({
302302
</Typography>
303303
</TableCell>
304304
<TableCell>
305-
<Link
306-
onClick={() =>
307-
client.host.openExternal(
308-
`${
309-
catalogItem.readme
310-
}#tool-${tool.name.replaceAll(' ', '-')}` || ''
311-
)
312-
}
313-
href="#"
314-
target="_blank"
315-
sx={{ fontSize: 12 }}
316-
>
317-
Documentation
318-
<Launch />
319-
</Link>
305+
{catalogItem.readme && (
306+
<Link
307+
onClick={() =>
308+
client.host.openExternal(`${catalogItem.readme}#tool-${tool.name.replaceAll(' ', '-')}`
309+
)
310+
}
311+
href="#"
312+
target="_blank"
313+
sx={{ fontSize: 12 }}
314+
>
315+
Documentation
316+
<Launch />
317+
</Link>
318+
) || (
319+
<Link
320+
onClick={() =>
321+
client.host.openExternal(
322+
`https://raw.githubusercontent.com/docker/labs-ai-tools-for-devs/refs/heads/main/${new URLSearchParams(catalogItem.ref.split('?')[1]).get('path')}`
323+
)
324+
}
325+
href="#"
326+
target="_blank"
327+
sx={{ fontSize: 12 }}
328+
>
329+
Documentation
330+
<Launch />
331+
</Link>
332+
)}
320333
</TableCell>
321334
</TableRow>
322335
))}

0 commit comments

Comments
 (0)