Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Dependencies
node_modules/

# Build output
build/
dist/

# Environment variables
.env
.env.local
.env.*.local

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.vscode/
.idea/
*.swp
*.swo
*~

# OS files
.DS_Store
Thumbs.db

# TypeScript
*.tsbuildinfo

# Testing
coverage/
.nyc_output/
131 changes: 90 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"author": "",
"license": "ISC",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.9.0",
"axios": "^1.8.4",
"@modelcontextprotocol/sdk": "^1.20.2",
"axios": "^1.13.1",
"blockapps-rest": "^8.4.0",
"dotenv": "^16.5.0",
"zod": "^3.24.2"
"dotenv": "^17.2.3",
"zod": "^4.1.12"
},
"devDependencies": {
"@types/node": "^22.14.1",
"typescript": "^5.8.3"
"@types/node": "^24.9.2",
"typescript": "^5.9.3"
}
}
2 changes: 1 addition & 1 deletion src/tools/mercata/borrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ export function registerBorrowTool(server: McpServer) {
borrowTool.name,
borrowTool.description,
borrowTool.parameters,
borrowTool.handler
async (args, extra) => borrowTool.handler(args as { reserveAddress: string; escrowAddress: string; quantity: number })
);
}
2 changes: 1 addition & 1 deletion src/tools/mercata/purchase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ export function registerPurchaseTool(server: McpServer) {
purchaseTool.name,
purchaseTool.description,
purchaseTool.parameters,
purchaseTool.handler
async (args, extra) => purchaseTool.handler(args as { asset: string; quantity: number })
);
}
2 changes: 1 addition & 1 deletion src/tools/mercata/stake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,6 @@ export function registerStakeTool(server: McpServer) {
stakeTool.name,
stakeTool.description,
stakeTool.parameters,
stakeTool.handler
async (args, extra) => stakeTool.handler(args as { assetName: string; quantity: number })
);
}
4 changes: 2 additions & 2 deletions src/tools/weather/alerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ export function registerAlertsTool(server: McpServer) {
alertsTool.name,
alertsTool.description,
alertsTool.parameters,
alertsTool.handler
async (args, extra) => alertsTool.handler(args as { state: string })
);
}
}
4 changes: 2 additions & 2 deletions src/tools/weather/forecast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ export function registerForecastTool(server: McpServer) {
forecastTool.name,
forecastTool.description,
forecastTool.parameters,
forecastTool.handler
async (args, extra) => forecastTool.handler(args as { latitude: number; longitude: number })
);
}
}