@coinrithm/mcp-trading 0.7.2 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +171 -113
  2. package/README.md +277 -238
  3. package/dist/agent/act.d.ts +2 -2
  4. package/dist/agent/act.js +24 -3
  5. package/dist/agent/cli.js +68 -23
  6. package/dist/agent/client.d.ts +33 -0
  7. package/dist/agent/client.js +34 -7
  8. package/dist/agent/decision.d.ts +3 -0
  9. package/dist/agent/decision.js +26 -3
  10. package/dist/agent/decisionValidator.js +2 -1
  11. package/dist/agent/deploymentOverlay.js +25 -5
  12. package/dist/agent/engine.d.ts +2 -1
  13. package/dist/agent/engine.js +4 -1
  14. package/dist/agent/extract.js +3 -1
  15. package/dist/agent/gate.js +25 -5
  16. package/dist/agent/index.js +0 -1
  17. package/dist/agent/indicators.js +4 -2
  18. package/dist/agent/manifest.js +1 -1
  19. package/dist/agent/mechanical.d.ts +36 -0
  20. package/dist/agent/mechanical.js +286 -0
  21. package/dist/agent/observe.d.ts +4 -0
  22. package/dist/agent/observe.js +140 -53
  23. package/dist/agent/prompt.d.ts +3 -1
  24. package/dist/agent/prompt.js +17 -6
  25. package/dist/agent/providers.js +39 -4
  26. package/dist/agent/resolve.js +23 -6
  27. package/dist/agent/resolvePm.js +14 -3
  28. package/dist/agent/runEvidence.js +6 -2
  29. package/dist/agent/runner.d.ts +8 -2
  30. package/dist/agent/runner.js +363 -59
  31. package/dist/agent/scorecard.js +12 -4
  32. package/dist/agent/setups.js +57 -9
  33. package/dist/agent/skill.js +1 -1
  34. package/dist/agent/state.js +9 -4
  35. package/dist/agent/types.d.ts +17 -2
  36. package/dist/agent/types.js +2 -1
  37. package/dist/agent/util.js +11 -4
  38. package/dist/agent/version.d.ts +1 -1
  39. package/dist/agent/version.js +1 -1
  40. package/dist/client.d.ts +51 -0
  41. package/dist/client.js +30 -3
  42. package/dist/executionPolicy.d.ts +2 -0
  43. package/dist/executionPolicy.js +21 -0
  44. package/dist/http.js +13 -3
  45. package/dist/tools.d.ts +23 -0
  46. package/dist/tools.js +796 -39
  47. package/package.json +86 -78
package/package.json CHANGED
@@ -1,78 +1,86 @@
1
- {
2
- "name": "@coinrithm/mcp-trading",
3
- "version": "0.7.2",
4
- "mcpName": "io.github.CoinRithm/mcp-trading",
5
- "description": "CoinRithm paper-trading toolkit: an MCP server (coinrithm-mcp) AND a self-host agent runner (coinrithm-agent) for spot, futures, and prediction markets with a user-minted API key.",
6
- "type": "module",
7
- "author": "CoinRithm",
8
- "homepage": "https://coinrithm.com/agentic-trading",
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/CoinRithm/coinrithm-agent-trading.git",
12
- "directory": "packages/mcp-trading"
13
- },
14
- "bugs": {
15
- "url": "https://github.com/CoinRithm/coinrithm-agent-trading/issues"
16
- },
17
- "publishConfig": {
18
- "access": "public"
19
- },
20
- "bin": {
21
- "coinrithm-mcp": "dist/index.js",
22
- "coinrithm-agent": "dist/agent/index.js"
23
- },
24
- "main": "dist/index.js",
25
- "files": [
26
- "dist",
27
- "README.md",
28
- "CHANGELOG.md"
29
- ],
30
- "scripts": {
31
- "build": "tsc -p tsconfig.json",
32
- "typecheck": "tsc -p tsconfig.json --noEmit",
33
- "test": "vitest run",
34
- "start": "node dist/index.js",
35
- "start:http": "node dist/http.js",
36
- "smoke:agent": "npm run build && node scripts/agent-smoke.mjs",
37
- "prepare": "npm run build"
38
- },
39
- "engines": {
40
- "node": ">=18"
41
- },
42
- "keywords": [
43
- "mcp",
44
- "mcp-server",
45
- "model-context-protocol",
46
- "ai-agent",
47
- "agent-trading",
48
- "trading",
49
- "paper-trading",
50
- "crypto",
51
- "futures",
52
- "prediction-markets",
53
- "polymarket",
54
- "kalshi",
55
- "claude",
56
- "chatgpt",
57
- "gemini",
58
- "cursor",
59
- "open-knowledge-format",
60
- "okf",
61
- "model-agnostic",
62
- "leaderboard",
63
- "coinrithm"
64
- ],
65
- "license": "MIT",
66
- "dependencies": {
67
- "@modelcontextprotocol/sdk": "^1.0.0",
68
- "express": "^4.21.0",
69
- "yaml": "^2.5.0",
70
- "zod": "^3.23.8"
71
- },
72
- "devDependencies": {
73
- "@types/express": "^4.17.21",
74
- "@types/node": "^20.14.0",
75
- "typescript": "^5.5.0",
76
- "vitest": "^2.1.0"
77
- }
78
- }
1
+ {
2
+ "name": "@coinrithm/mcp-trading",
3
+ "version": "0.7.4",
4
+ "mcpName": "io.github.CoinRithm/mcp-trading",
5
+ "description": "CoinRithm paper-trading toolkit: an MCP server (coinrithm-mcp) AND a self-host agent runner (coinrithm-agent) for spot, futures, and prediction markets with a user-minted API key.",
6
+ "type": "module",
7
+ "author": "CoinRithm",
8
+ "homepage": "https://coinrithm.com/agentic-trading",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/CoinRithm/coinrithm-agent-trading.git",
12
+ "directory": "packages/mcp-trading"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/CoinRithm/coinrithm-agent-trading/issues"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "bin": {
21
+ "coinrithm-mcp": "dist/index.js",
22
+ "coinrithm-agent": "dist/agent/index.js"
23
+ },
24
+ "main": "dist/index.js",
25
+ "files": [
26
+ "dist",
27
+ "README.md",
28
+ "CHANGELOG.md"
29
+ ],
30
+ "scripts": {
31
+ "build": "tsc -p tsconfig.json",
32
+ "typecheck": "tsc -p tsconfig.json --noEmit",
33
+ "test": "vitest run",
34
+ "lint": "eslint src",
35
+ "lint:fix": "eslint src --fix",
36
+ "format": "prettier --write \"src/**/*.ts\"",
37
+ "format:check": "prettier --check \"src/**/*.ts\"",
38
+ "start": "node dist/index.js",
39
+ "start:http": "node dist/http.js",
40
+ "smoke:agent": "npm run build && node scripts/agent-smoke.mjs",
41
+ "prepare": "npm run build"
42
+ },
43
+ "engines": {
44
+ "node": ">=18"
45
+ },
46
+ "keywords": [
47
+ "mcp",
48
+ "mcp-server",
49
+ "model-context-protocol",
50
+ "ai-agent",
51
+ "agent-trading",
52
+ "trading",
53
+ "paper-trading",
54
+ "crypto",
55
+ "futures",
56
+ "prediction-markets",
57
+ "polymarket",
58
+ "kalshi",
59
+ "claude",
60
+ "chatgpt",
61
+ "gemini",
62
+ "cursor",
63
+ "open-knowledge-format",
64
+ "okf",
65
+ "model-agnostic",
66
+ "leaderboard",
67
+ "coinrithm"
68
+ ],
69
+ "license": "MIT",
70
+ "dependencies": {
71
+ "@modelcontextprotocol/sdk": "^1.0.0",
72
+ "express": "^4.21.0",
73
+ "yaml": "^2.5.0",
74
+ "zod": "^3.23.8"
75
+ },
76
+ "devDependencies": {
77
+ "@eslint/js": "^9.13.0",
78
+ "@types/express": "^4.17.21",
79
+ "@types/node": "^20.14.0",
80
+ "eslint": "^9.13.0",
81
+ "prettier": "^3.3.3",
82
+ "typescript": "^5.5.0",
83
+ "typescript-eslint": "^8.11.0",
84
+ "vitest": "^2.1.0"
85
+ }
86
+ }