Skip to content

Commit 99a4a43

Browse files
committed
chore: set up prettier
1 parent 93c17b7 commit 99a4a43

16 files changed

+442
-212
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,46 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: '[BUG]'
4+
title: "[BUG]"
55
labels: bug
6-
assignees: ''
6+
assignees: ""
77
---
88

99
## Bug Description
10+
1011
A clear and concise description of what the bug is.
1112

1213
## Steps To Reproduce
14+
1315
1. Go to '...'
1416
2. Click on '....'
1517
3. Scroll down to '....'
1618
4. See error
1719

1820
## Expected Behavior
21+
1922
A clear and concise description of what you expected to happen.
2023

2124
## Actual Behavior
25+
2226
A clear and concise description of what actually happened.
2327

2428
## Screenshots
29+
2530
If applicable, add screenshots to help explain your problem.
2631

2732
## Environment
33+
2834
- OS: [e.g. macOS, Windows, Linux]
2935
- Node.js version: [e.g. 16.14.0]
3036
- npm/yarn version: [e.g. 8.5.0]
3137
- Base MCP version: [e.g. 1.0.0]
3238
- Claude Desktop version (if applicable): [e.g. 1.2.0]
3339

3440
## Additional Context
41+
3542
Add any other context about the problem here.
3643

3744
## Possible Solution
45+
3846
If you have ideas on how to fix the issue, please share them here.
+8-2
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: '[FEATURE] '
4+
title: "[FEATURE] "
55
labels: enhancement
6-
assignees: ''
6+
assignees: ""
77
---
88

99
## Problem Statement
10+
1011
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
1112

1213
## Proposed Solution
14+
1315
A clear and concise description of what you want to happen.
1416

1517
## Alternative Solutions
18+
1619
A clear and concise description of any alternative solutions or features you've considered.
1720

1821
## Use Case
22+
1923
Describe how this feature would be used and who would use it.
2024

2125
## Additional Context
26+
2227
Add any other context or screenshots about the feature request here.
2328

2429
## Implementation Ideas
30+
2531
If you have ideas on how to implement this feature, please share them here.

.github/PULL_REQUEST_TEMPLATE.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
## Description
2+
23
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
34

45
Fixes # (issue)
56

67
## Type of change
8+
79
Please delete options that are not relevant.
810

911
- [ ] Bug fix (non-breaking change which fixes an issue)
@@ -12,9 +14,11 @@ Please delete options that are not relevant.
1214
- [ ] Documentation update
1315

1416
## How Has This Been Tested?
17+
1518
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
1619

1720
## Checklist:
21+
1822
- [ ] My code follows the style guidelines of this project
1923
- [ ] I have performed a self-review of my own code
2024
- [ ] I have commented my code, particularly in hard-to-understand areas

.prettierrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"plugins": ["@ianvs/prettier-plugin-sort-imports"],
3+
"importOrder": ["<THIRD_PARTY_MODULES>", "^@/(.*)$", "^[./]"],
4+
"importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"],
5+
"semi": true,
6+
"singleQuote": true,
7+
"trailingComma": "all"
8+
}

CODE_OF_CONDUCT.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ We pledge to make participation in our project and community a harassment-free e
88

99
Examples of behavior that contributes to creating a positive environment include:
1010

11-
* Using welcoming and inclusive language
12-
* Being respectful of differing viewpoints and experiences
13-
* Gracefully accepting constructive criticism
14-
* Focusing on what is best for the community
15-
* Showing empathy towards other community members
11+
- Using welcoming and inclusive language
12+
- Being respectful of differing viewpoints and experiences
13+
- Gracefully accepting constructive criticism
14+
- Focusing on what is best for the community
15+
- Showing empathy towards other community members
1616

1717
Examples of unacceptable behavior include:
1818

19-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
* Trolling, insulting/derogatory comments, and personal or political attacks
21-
* Public or private harassment
22-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
* Other conduct which could reasonably be considered inappropriate in a professional setting
19+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
- Trolling, insulting/derogatory comments, and personal or political attacks
21+
- Public or private harassment
22+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
- Other conduct which could reasonably be considered inappropriate in a professional setting
2424

2525
## Our Responsibilities
2626

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Base MCP Server 🔵
1+
# Base MCP Server 🔵
22

33
![OpenRouter Integration](public/OpenRouter.gif)
44

@@ -14,14 +14,14 @@ This MCP server extends any MCP client's capabilities by providing tools to do a
1414
- Retrieve wallet addresses
1515
- List wallet balances
1616
- Transfer funds between wallets
17-
- Deploy smart contracts
17+
- Deploy smart contracts
1818
- Interact with Morpho vaults for onchain lending
19-
- Call contract functions
19+
- Call contract functions
2020
- Onramp funds via [Coinbase](https://www.coinbase.com/developer-platform/products/onramp)
2121
- Manage ERC20 tokens
2222
- Buy [OpenRouter](http://openrouter.ai/) credits with USDC
2323

24-
The server interacts with Base, powered by Base Developer Tools and [AgentKit](https://github.com/coinbase/agentkit).
24+
The server interacts with Base, powered by Base Developer Tools and [AgentKit](https://github.com/coinbase/agentkit).
2525

2626
## Prerequisites
2727

@@ -129,7 +129,7 @@ To add this MCP server to Claude Desktop:
129129
"COINBASE_API_KEY_NAME": "your_api_key_name",
130130
"COINBASE_API_PRIVATE_KEY": "your_private_key",
131131
"SEED_PHRASE": "your seed phrase here",
132-
"COINBASE_PROJECT_ID": "your_project_id",
132+
"COINBASE_PROJECT_ID": "your_project_id",
133133
"OPENROUTER_API_KEY": "your_openrouter_api_key"
134134
},
135135
"disabled": false,

examples.md

+27-14
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This document provides examples of how to interact with the Base MCP tools throu
1010

1111
**Claude:** Let me get your wallet address for you.
1212

13-
*Claude uses the `get-address` tool*
13+
_Claude uses the `get-address` tool_
1414

1515
**Claude:** Your wallet address is: 0x1234567890abcdef1234567890abcdef12345678
1616

@@ -20,9 +20,10 @@ This document provides examples of how to interact with the Base MCP tools throu
2020

2121
**Claude:** I'll check your wallet balances for you.
2222

23-
*Claude uses the `list-balances` tool*
23+
_Claude uses the `list-balances` tool_
2424

2525
**Claude:** Here are your current wallet balances:
26+
2627
- ETH: 0.5 ETH
2728
- USDC: 100 USDC
2829

@@ -32,7 +33,7 @@ This document provides examples of how to interact with the Base MCP tools throu
3233

3334
**Claude:** I'll request some testnet ETH for your wallet on Base Sepolia.
3435

35-
*Claude uses the `get-testnet-eth` tool*
36+
_Claude uses the `get-testnet-eth` tool_
3637

3738
**Claude:** I've requested testnet ETH for your wallet. The transaction hash is: 0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890
3839

@@ -44,7 +45,8 @@ This document provides examples of how to interact with the Base MCP tools throu
4445

4546
**Claude:** I'll set up that transfer for you.
4647

47-
*Claude uses the `transfer-funds` tool with the following parameters:*
48+
_Claude uses the `transfer-funds` tool with the following parameters:_
49+
4850
- destination: 0x9876543210abcdef9876543210abcdef98765432
4951
- assetId: ETH
5052
- amount: 0.01
@@ -61,10 +63,11 @@ This document provides examples of how to interact with the Base MCP tools throu
6163

6264
**Claude:** I'll prepare the ERC20 token contract for deployment.
6365

64-
*Claude uses the `deploy-contract` tool with the following parameters:*
66+
_Claude uses the `deploy-contract` tool with the following parameters:_
67+
6568
- constructorArgs: ["ExampleToken", "EXT", "1000000000000000000000000"]
6669
- contractName: "ERC20Token"
67-
- solidityInputJson: *[JSON containing the ERC20 contract source code]*
70+
- solidityInputJson: _[JSON containing the ERC20 contract source code]_
6871
- solidityVersion: "0.8.20"
6972

7073
**Claude:** Your ERC20 token contract has been deployed successfully! The contract address is: 0xdef1234567890abcdef1234567890abcdef123456
@@ -77,11 +80,14 @@ This document provides examples of how to interact with the Base MCP tools throu
7780

7881
**Claude:** I'll check the Morpho vaults for USDC.
7982

80-
*Claude uses the `get_morpho_vaults` tool with the following parameters:*
83+
_Claude uses the `get_morpho_vaults` tool with the following parameters:_
84+
8185
- assetSymbol: "USDC"
8286

8387
**Claude:** Here are the available Morpho vaults for USDC:
88+
8489
- Vault Name: USDC Yield Source
90+
8591
- Address: 0xabcdef1234567890abcdef1234567890abcdef12
8692
- Liquidity: $10,000,000 (10,000,000 USDC)
8793
- Risk Score: 85/100
@@ -99,11 +105,12 @@ This document provides examples of how to interact with the Base MCP tools throu
99105

100106
**Claude:** I'll call that contract function for you.
101107

102-
*Claude uses the `call_contract` tool with the following parameters:*
108+
_Claude uses the `call_contract` tool with the following parameters:_
109+
103110
- contractAddress: "0x1234567890abcdef1234567890abcdef12345678"
104111
- functionName: "balanceOf"
105112
- functionArgs: ["0x9876543210abcdef9876543210abcdef98765432"]
106-
- abi: *[JSON containing the contract ABI]*
113+
- abi: _[JSON containing the contract ABI]_
107114

108115
**Claude:** The balanceOf function returned: 1000000000000000000 (1 token)
109116

@@ -113,7 +120,8 @@ This document provides examples of how to interact with the Base MCP tools throu
113120

114121
**Claude:** I'll check your USDC balance.
115122

116-
*Claude uses the `erc20_balance` tool with the following parameters:*
123+
_Claude uses the `erc20_balance` tool with the following parameters:_
124+
117125
- contractAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" (USDC contract address)
118126

119127
**Claude:** Your USDC balance is: 100.0 USDC
@@ -122,7 +130,8 @@ This document provides examples of how to interact with the Base MCP tools throu
122130

123131
**Claude:** I'll set up that USDC transfer for you.
124132

125-
*Claude uses the `erc20_transfer` tool with the following parameters:*
133+
_Claude uses the `erc20_transfer` tool with the following parameters:_
134+
126135
- contractAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" (USDC contract address)
127136
- toAddress: "0x9876543210abcdef9876543210abcdef98765432"
128137
- amount: "10"
@@ -137,11 +146,13 @@ This document provides examples of how to interact with the Base MCP tools throu
137146

138147
**Claude:** I'll check what assets are available for onramping in New York.
139148

140-
*Claude uses the `get_onramp_assets` tool with the following parameters:*
149+
_Claude uses the `get_onramp_assets` tool with the following parameters:_
150+
141151
- country: "US"
142152
- subdivision: "NY"
143153

144154
**Claude:** Here are the assets available for onramping in New York, US:
155+
145156
- ETH
146157
- USDC
147158
- DAI
@@ -153,7 +164,8 @@ This document provides examples of how to interact with the Base MCP tools throu
153164

154165
**Claude:** I'll generate an onramp link for you.
155166

156-
*Claude uses the `onramp` tool with the following parameters:*
167+
_Claude uses the `onramp` tool with the following parameters:_
168+
157169
- amountUsd: 100
158170
- assetId: "eth"
159171

@@ -165,7 +177,8 @@ This document provides examples of how to interact with the Base MCP tools throu
165177

166178
**Claude:** I'll set up the purchase of OpenRouter credits for you.
167179

168-
*Claude uses the `buy_openrouter_credits` tool with the following parameters:*
180+
_Claude uses the `buy_openrouter_credits` tool with the following parameters:_
181+
169182
- amountUsd: 20
170183

171184
**Claude:** I've initiated the purchase of $20 worth of OpenRouter credits using your USDC. The transaction hash is: 0x123456789abcdef123456789abcdef123456789abcdef123456789abcdef1234

nodemon.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"ignore": ["build/*"]
3-
}
2+
"ignore": ["build/*"]
3+
}

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"build": "tsc",
1111
"start": "node build/index.js",
1212
"test": "node scripts/test-mcp.js",
13-
"submit": "node scripts/submit-to-directory.js"
13+
"submit": "node scripts/submit-to-directory.js",
14+
"format": "prettier --write ."
1415
},
1516
"files": [
1617
"build"
@@ -46,6 +47,7 @@
4647
"zod": "^3.24.2"
4748
},
4849
"devDependencies": {
50+
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
4951
"@types/node": "^22.13.9",
5052
"@types/react": "^19",
5153
"@types/react-dom": "^19",
@@ -56,4 +58,4 @@
5658
"ts-node": "^10.9.2",
5759
"typescript": "^5.8.2"
5860
}
59-
}
61+
}

0 commit comments

Comments
 (0)