Skip to content

Commit 3ec8dfc

Browse files
authored
Merge pull request #10 from manixate/feature/rename-openfinance
Rename 'Open Banking' to 'Open Finance'
2 parents 5d0cbad + 86fbe5c commit 3ec8dfc

File tree

15 files changed

+58
-58
lines changed

15 files changed

+58
-58
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<img src="https://developer.mastercard.com/_/_/src/global/assets/svg/mcdev-logo-dark.svg" alt="mastercard developers logo">
66
</picture>
77

8-
The Mastercard Developers Agent Toolkit allows popular agent frameworks (currently Model Context Protocol - MCP) to integrate with [Mastercard Developers Platform](https://developer.mastercard.com) for service discovery and integration guides.
8+
The Mastercard Developers Agent Toolkit allows popular agent frameworks (currently Model Context Protocol - MCP) to integrate with [Mastercard Developers](https://developer.mastercard.com) for service discovery and integration guides.
99

1010
## Key Features
1111

@@ -28,7 +28,7 @@ The toolkit provides the following tools for agents to use:
2828
* `get-documentation-section-content`: Retrieves the complete content for a specific documentation section.
2929
* `get-documentation-page`: Retrieves the complete content of a specific documentation page.
3030
* `get-oauth10a-integration-guide`: Retrieves the comprehensive OAuth 1.0a integration guide.
31-
* `get-openbanking-integration-guide`: Retrieves the comprehensive Open Banking integration guide.
31+
* `get-openfinance-integration-guide`: Retrieves the comprehensive Open Finance integration guide.
3232

3333
### API Operations
3434

modelcontextprotocol/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This MCP server acts as a bridge between MCP clients and Mastercard Developers r
1414
- List available Mastercard services
1515
- Query API specifications and their operations
1616
- Access documentation for each service
17-
- Retrieve integration guides for OAuth 1.0a and Open Banking
17+
- Retrieve integration guides for OAuth 1.0a and Open Finance
1818

1919
## Available Tools
2020

@@ -40,7 +40,7 @@ This MCP server acts as a bridge between MCP clients and Mastercard Developers r
4040

4141
- **`get-oauth10a-integration-guide`**: Retrieves the comprehensive OAuth 1.0a integration guide including step-by-step instructions, code examples, and best practices for Mastercard APIs.
4242

43-
- **`get-openbanking-integration-guide`**: Retrieves the comprehensive Open Banking integration guide including setup instructions, API usage examples, and implementation best practices.
43+
- **`get-openfinance-integration-guide`**: Retrieves the comprehensive Open Finance integration guide including setup instructions, API usage examples, and implementation best practices.
4444

4545
## Configuration Options
4646

@@ -78,7 +78,7 @@ To use this server with MCP clients like Claude Desktop, add it to your MCP conf
7878
"args": [
7979
"-y",
8080
"@mastercard/developers-mcp",
81-
"--service=https://developer.mastercard.com/open-banking-us/documentation/"
81+
"--service=https://developer.mastercard.com/open-finance-us/documentation/"
8282
]
8383
}
8484
}
@@ -95,7 +95,7 @@ To use this server with MCP clients like Claude Desktop, add it to your MCP conf
9595
"args": [
9696
"-y",
9797
"@mastercard/developers-mcp",
98-
"--api-specification=https://developer.mastercard.com/open-banking-us/swagger/openbanking-us.yaml"
98+
"--api-specification=https://developer.mastercard.com/open-finance-us/swagger/openbanking-us.yaml"
9999
]
100100
}
101101
}
@@ -168,10 +168,10 @@ The server runs on stdio and will be available for MCP client connections.
168168

169169
```bash
170170
# Pre-configure with a documentation URL
171-
npm run start -- --service=https://developer.mastercard.com/open-banking-us/documentation/
171+
npm run start -- --service=https://developer.mastercard.com/open-finance-us/documentation/
172172

173173
# Pre-configure with an API specification path
174-
npm run start -- --api-specification=https://static.developer.mastercard.com/content/open-banking-us/swagger/openbanking-us.yaml
174+
npm run start -- --api-specification=https://static.developer.mastercard.com/content/open-finance-us/swagger/openbanking-us.yaml
175175
```
176176

177177
### To build the DXT file
@@ -192,4 +192,4 @@ npx @modelcontextprotocol/inspector node dist/index.js
192192

193193
- [Mastercard Developers Platform](https://developer.mastercard.com/)
194194
- [Model Context Protocol](https://modelcontextprotocol.io/)
195-
- [MCP SDK](https://github.com/modelcontextprotocol/sdk)
195+
- [MCP SDKs](https://github.com/modelcontextprotocol)

modelcontextprotocol/dxt/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "0.1.0",
66
"display_name": "Mastercard Developers MCP",
77
"description": "Access Mastercard Developers APIs, documentation, and specifications through MCP",
8-
"long_description": "This extension provides seamless access to Mastercard Developers APIs, comprehensive documentation, and API specifications. It enables developers to query available services, retrieve detailed API operation information, access documentation sections, and get integration guides directly.\n\n**Key Features:**\n- List all available Mastercard services\n- Access comprehensive documentation and specific sections\n- Retrieve OAuth 1.0a and Open Banking integration guides\n- Get detailed API operation information including parameters and schemas\n- Query API specifications and operation details\n\n**Use Cases:**\n- API discovery and exploration\n- Documentation lookup during development\n- Integration planning and implementation\n- Authentication and authorization guidance",
8+
"long_description": "This extension provides seamless access to Mastercard Developers APIs, comprehensive documentation, and API specifications. It enables developers to query available services, retrieve detailed API operation information, access documentation sections, and get integration guides directly.\n\n**Key Features:**\n- List all available Mastercard services\n- Access comprehensive documentation and specific sections\n- Retrieve OAuth 1.0a and Open Finance integration guides\n- Get detailed API operation information including parameters and schemas\n- Query API specifications and operation details\n\n**Use Cases:**\n- API discovery and exploration\n- Documentation lookup during development\n- Integration planning and implementation\n- Authentication and authorization guidance",
99
"author": {
1010
"name": "Mastercard Developers",
1111
"email": "developer@mastercard.com",
@@ -63,8 +63,8 @@
6363
"description": "Retrieves the comprehensive OAuth 1.0a integration guide including step-by-step instructions, code examples, and best practices for Mastercard APIs."
6464
},
6565
{
66-
"name": "openbanking-integration-guide",
67-
"description": "Retrieves the comprehensive Open Banking integration guide including setup instructions, API usage examples, and implementation best practices."
66+
"name": "openfinance-integration-guide",
67+
"description": "Retrieves the comprehensive Open Finance integration guide including setup instructions, API usage examples, and implementation best practices."
6868
}
6969
]
7070
}

modelcontextprotocol/src/__tests__/index.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,24 @@ describe('parseArgs function', () => {
1919

2020
it('should parse valid api-specification-path argument', () => {
2121
const result = parseArgs([
22-
'--api-specification=https://static.developer.mastercard.com/content/open-banking-us/swagger/spec.yaml',
22+
'--api-specification=https://static.developer.mastercard.com/content/open-finance-us/swagger/spec.yaml',
2323
]);
2424
expect(result).toEqual({
2525
apiSpecification:
26-
'https://static.developer.mastercard.com/content/open-banking-us/swagger/spec.yaml',
26+
'https://static.developer.mastercard.com/content/open-finance-us/swagger/spec.yaml',
2727
});
2828
});
2929

3030
it('should parse both arguments together', () => {
3131
const result = parseArgs([
3232
'--service=https://developer.mastercard.com/payment-gateway/documentation/',
33-
'--api-specification=https://static.developer.mastercard.com/content/open-banking-us/swagger/spec.yaml',
33+
'--api-specification=https://static.developer.mastercard.com/content/open-finance-us/swagger/spec.yaml',
3434
]);
3535
expect(result).toEqual({
3636
service:
3737
'https://developer.mastercard.com/payment-gateway/documentation/',
3838
apiSpecification:
39-
'https://static.developer.mastercard.com/content/open-banking-us/swagger/spec.yaml',
39+
'https://static.developer.mastercard.com/content/open-finance-us/swagger/spec.yaml',
4040
});
4141
});
4242

@@ -83,14 +83,14 @@ describe('main function', () => {
8383
process.argv = [
8484
'node',
8585
'index.js',
86-
'--service=https://developer.mastercard.com/open-banking-us/documentation/',
86+
'--service=https://developer.mastercard.com/open-finance-us/documentation/',
8787
];
8888

8989
await main();
9090

9191
expect(MastercardDevelopersAgentToolkit).toHaveBeenCalledWith({
9292
service:
93-
'https://developer.mastercard.com/open-banking-us/documentation/',
93+
'https://developer.mastercard.com/open-finance-us/documentation/',
9494
});
9595
});
9696

typescript/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<img src="https://developer.mastercard.com/_/_/src/global/assets/svg/mcdev-logo-dark.svg" alt="mastercard developers logo">
66
</picture>
77

8-
The Mastercard Developers Agent Toolkit allows popular agent frameworks (currently Model Context Protocol - MCP) to integrate with [Mastercard Developers Platform](https://developer.mastercard.com) for service discovery and integration guides.
8+
The Mastercard Developers Agent Toolkit allows popular agent frameworks (currently Model Context Protocol - MCP) to integrate with [Mastercard Developers](https://developer.mastercard.com) for service discovery and integration guides.
99

1010
## Installation
1111

@@ -33,7 +33,7 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
3333

3434
const server = new MastercardDevelopersAgentToolkit({
3535
configuration: {
36-
service: 'https://developer.mastercard.com/open-banking-us/documentation',
36+
service: 'https://developer.mastercard.com/open-finance-us/documentation',
3737
},
3838
});
3939

@@ -53,4 +53,4 @@ main().catch((error) => {
5353

5454
- [Mastercard Developers Platform](https://developer.mastercard.com/)
5555
- [Model Context Protocol](https://modelcontextprotocol.io/)
56-
- [MCP SDK](https://github.com/modelcontextprotocol/sdk)
56+
- [MCP SDKs](https://github.com/modelcontextprotocol)

typescript/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.1.1",
2+
"version": "0.1.2",
33
"name": "@mastercard/developers-agent-toolkit",
44
"homepage": "https://github.com/mastercard/developers-agent-toolkit",
55
"description": "Agent Toolkit for Mastercard Developers Platform",

typescript/src/modelcontextprotocol/__tests__/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ describe('buildContext function', () => {
7272
it('should parse service URL and extract serviceId', () => {
7373
const result = buildContext({
7474
service:
75-
'https://developer.mastercard.com/open-banking-us/documentation/',
75+
'https://developer.mastercard.com/open-finance-us/documentation/',
7676
});
7777
expect(result).toEqual({
78-
serviceId: 'open-banking-us',
78+
serviceId: 'open-finance-us',
7979
});
8080
});
8181

@@ -104,10 +104,10 @@ describe('buildContext function', () => {
104104
it('should handle service IDs with hyphens and numbers', () => {
105105
const result = buildContext({
106106
service:
107-
'https://developer.mastercard.com/open-banking-us-v2/documentation/',
107+
'https://developer.mastercard.com/open-finance-us-v2/documentation/',
108108
});
109109
expect(result).toEqual({
110-
serviceId: 'open-banking-us-v2',
110+
serviceId: 'open-finance-us-v2',
111111
});
112112
});
113113
});

typescript/src/modelcontextprotocol/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function parseAPISpecificationPathAndServiceId(
124124
// Try to parse as URL first
125125
const url = new URL(input);
126126

127-
// Handle full URL: https://static.developer.mastercard.com/content/open-banking-us/swagger/openbanking-us.yaml
127+
// Handle full URL: https://static.developer.mastercard.com/content/open-finance-us/swagger/openbanking-us.yaml
128128
if (url.hostname !== 'static.developer.mastercard.com') {
129129
return null;
130130
}

typescript/src/shared/api/__tests__/index.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe('MastercardAPIClient', () => {
6363
const requestUrl = new URL(urlString);
6464
expect(requestUrl.searchParams.get('absolute_urls')).toBe('false');
6565
expect(urlString).toBe(
66-
mcd('/open-banking-us/documentation/llms.txt?absolute_urls=false')
66+
mcd('/open-finance-us/documentation/llms.txt?absolute_urls=false')
6767
);
6868
return Promise.resolve({
6969
ok: true,
@@ -72,7 +72,7 @@ describe('MastercardAPIClient', () => {
7272
} as Response);
7373
});
7474

75-
const result = await client.getDocumentation('open-banking-us');
75+
const result = await client.getDocumentation('open-finance-us');
7676
expect(result).toBe('documentation content');
7777
});
7878
});
@@ -88,7 +88,7 @@ describe('MastercardAPIClient', () => {
8888
);
8989
expect(urlString).toBe(
9090
mcd(
91-
'/open-banking-us/documentation/llms-full.txt?absolute_urls=false&section_id=getting-started'
91+
'/open-finance-us/documentation/llms-full.txt?absolute_urls=false&section_id=getting-started'
9292
)
9393
);
9494
return Promise.resolve({
@@ -99,7 +99,7 @@ describe('MastercardAPIClient', () => {
9999
});
100100

101101
const result = await client.getDocumentationSection(
102-
'open-banking-us',
102+
'open-finance-us',
103103
'getting-started'
104104
);
105105
expect(result).toBe('section content');
@@ -111,7 +111,7 @@ describe('MastercardAPIClient', () => {
111111
mockFetch.mockImplementation((url: RequestInfo) => {
112112
const urlString = url.toString();
113113
expect(urlString).toBe(
114-
mcd('/open-banking-us/documentation/api-basics')
114+
mcd('/open-finance-us/documentation/api-basics')
115115
);
116116
return Promise.resolve({
117117
ok: true,
@@ -121,7 +121,7 @@ describe('MastercardAPIClient', () => {
121121
});
122122

123123
const result = await client.getDocumentationPage(
124-
'/open-banking-us/documentation/api-basics'
124+
'/open-finance-us/documentation/api-basics'
125125
);
126126
expect(result).toBe('page content');
127127
});
@@ -146,7 +146,7 @@ describe('MastercardAPIClient', () => {
146146
const requestUrl = new URL(urlString);
147147
expect(requestUrl.searchParams.get('summary')).toBe('true');
148148
expect(urlString).toBe(
149-
mcd('/open-banking-us/swagger/openbanking-us.yaml?summary=true')
149+
mcd('/open-finance-us/swagger/openbanking-us.yaml?summary=true')
150150
);
151151
return Promise.resolve({
152152
ok: true,
@@ -156,7 +156,7 @@ describe('MastercardAPIClient', () => {
156156
});
157157

158158
const result = await client.getApiOperations(
159-
'/open-banking-us/swagger/openbanking-us.yaml'
159+
'/open-finance-us/swagger/openbanking-us.yaml'
160160
);
161161
expect(result).toBe('operations list');
162162
});
@@ -177,7 +177,7 @@ describe('MastercardAPIClient', () => {
177177
expect(requestUrl.searchParams.get('path')).toBe('/accounts');
178178
expect(urlString).toBe(
179179
mcd(
180-
'/open-banking-us/swagger/openbanking-us.yaml?method=GET&path=%2Faccounts'
180+
'/open-finance-us/swagger/openbanking-us.yaml?method=GET&path=%2Faccounts'
181181
)
182182
);
183183
return Promise.resolve({
@@ -188,7 +188,7 @@ describe('MastercardAPIClient', () => {
188188
});
189189

190190
const result = await client.getApiOperationDetails(
191-
'/open-banking-us/swagger/openbanking-us.yaml',
191+
'/open-finance-us/swagger/openbanking-us.yaml',
192192
'GET',
193193
'/accounts'
194194
);

0 commit comments

Comments
 (0)