@coinrithm/mcp-trading 0.7.14 → 0.7.16

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 (72) hide show
  1. package/CHANGELOG.md +811 -613
  2. package/README.md +415 -366
  3. package/dist/agent/bench/bench.d.ts +59 -0
  4. package/dist/agent/bench/bench.js +319 -0
  5. package/dist/agent/bench/cassette.d.ts +97 -0
  6. package/dist/agent/bench/cassette.js +181 -0
  7. package/dist/agent/bench/costs.d.ts +28 -0
  8. package/dist/agent/bench/costs.js +60 -0
  9. package/dist/agent/bench/labelBuilder.d.ts +123 -0
  10. package/dist/agent/bench/labelBuilder.js +282 -0
  11. package/dist/agent/bench/labels.d.ts +75 -0
  12. package/dist/agent/bench/labels.js +259 -0
  13. package/dist/agent/bench/recordingClient.d.ts +51 -0
  14. package/dist/agent/bench/recordingClient.js +193 -0
  15. package/dist/agent/bench/replayClient.d.ts +41 -0
  16. package/dist/agent/bench/replayClient.js +262 -0
  17. package/dist/agent/bench/report.d.ts +115 -0
  18. package/dist/agent/bench/report.js +435 -0
  19. package/dist/agent/cli.d.ts +25 -0
  20. package/dist/agent/cli.js +300 -2
  21. package/dist/agent/client.d.ts +14 -0
  22. package/dist/agent/client.js +113 -4
  23. package/dist/agent/configurationWarnings.js +11 -0
  24. package/dist/agent/decision.d.ts +3 -0
  25. package/dist/agent/decision.js +85 -3
  26. package/dist/agent/decisionReceipt.d.ts +5 -1
  27. package/dist/agent/decisionReceipt.js +52 -3
  28. package/dist/agent/decisionValidator.d.ts +30 -0
  29. package/dist/agent/decisionValidator.js +147 -2
  30. package/dist/agent/engine.d.ts +3 -3
  31. package/dist/agent/engine.js +3 -3
  32. package/dist/agent/futuresEligibility.d.ts +36 -0
  33. package/dist/agent/futuresEligibility.js +90 -0
  34. package/dist/agent/observe.d.ts +35 -2
  35. package/dist/agent/observe.js +969 -128
  36. package/dist/agent/pmContext.d.ts +10 -1
  37. package/dist/agent/pmContext.js +163 -1
  38. package/dist/agent/prompt.d.ts +18 -1
  39. package/dist/agent/prompt.js +229 -33
  40. package/dist/agent/promptTables.d.ts +1 -0
  41. package/dist/agent/promptTables.js +33 -0
  42. package/dist/agent/providerCapabilities.d.ts +9 -0
  43. package/dist/agent/providerCapabilities.js +57 -4
  44. package/dist/agent/providers.d.ts +28 -7
  45. package/dist/agent/providers.js +200 -50
  46. package/dist/agent/resolve.js +3 -0
  47. package/dist/agent/runner.d.ts +8 -0
  48. package/dist/agent/runner.js +159 -26
  49. package/dist/agent/setups.d.ts +2 -1
  50. package/dist/agent/setups.js +17 -16
  51. package/dist/agent/signals.d.ts +33 -0
  52. package/dist/agent/signals.js +89 -0
  53. package/dist/agent/skill.js +37 -0
  54. package/dist/agent/skillValidator.js +33 -0
  55. package/dist/agent/strictLint.js +29 -0
  56. package/dist/agent/templates.js +30 -30
  57. package/dist/agent/types.d.ts +266 -13
  58. package/dist/agent/types.js +4 -0
  59. package/dist/agent/universe.d.ts +78 -0
  60. package/dist/agent/universe.js +215 -0
  61. package/dist/client.d.ts +9 -2
  62. package/dist/client.js +22 -10
  63. package/dist/http.d.ts +1 -0
  64. package/dist/http.js +17 -2
  65. package/dist/httpCompletion.d.ts +1 -1
  66. package/dist/httpCompletion.js +1 -0
  67. package/dist/index.js +2 -1
  68. package/dist/instructions.d.ts +1 -0
  69. package/dist/instructions.js +16 -0
  70. package/dist/tools.d.ts +1 -0
  71. package/dist/tools.js +150 -66
  72. package/package.json +98 -97
package/package.json CHANGED
@@ -1,97 +1,98 @@
1
- {
2
- "name": "@coinrithm/mcp-trading",
3
- "version": "0.7.14",
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
- "test:coverage": "vitest run --coverage",
35
- "lint": "eslint src",
36
- "lint:fix": "eslint src --fix",
37
- "format": "prettier --write \"src/**/*.ts\"",
38
- "format:check": "prettier --check \"src/**/*.ts\"",
39
- "start": "node dist/index.js",
40
- "start:http": "node dist/http.js",
41
- "smoke:agent": "npm run build && node scripts/agent-smoke.mjs",
42
- "prepare": "npm run build"
43
- },
44
- "engines": {
45
- "node": ">=18"
46
- },
47
- "keywords": [
48
- "mcp",
49
- "mcp-server",
50
- "model-context-protocol",
51
- "ai-agent",
52
- "agent-trading",
53
- "trading",
54
- "paper-trading",
55
- "crypto",
56
- "futures",
57
- "prediction-markets",
58
- "polymarket",
59
- "kalshi",
60
- "claude",
61
- "chatgpt",
62
- "gemini",
63
- "cursor",
64
- "open-knowledge-format",
65
- "okf",
66
- "model-agnostic",
67
- "leaderboard",
68
- "coinrithm"
69
- ],
70
- "license": "MIT",
71
- "dependencies": {
72
- "@modelcontextprotocol/sdk": "^1.0.0",
73
- "express": "^4.21.0",
74
- "yaml": "^2.5.0",
75
- "zod": "^3.23.8"
76
- },
77
- "devDependencies": {
78
- "@eslint/js": "^9.13.0",
79
- "@types/express": "^4.17.21",
80
- "@types/node": "^20.14.0",
81
- "@vitest/coverage-v8": "4.1.11",
82
- "eslint": "^9.13.0",
83
- "prettier": "^3.3.3",
84
- "typescript": "^5.5.0",
85
- "typescript-eslint": "^8.11.0",
86
- "vitest": "4.1.11"
87
- },
88
- "exports": {
89
- ".": "./dist/index.js",
90
- "./engine": {
91
- "types": "./dist/agent/engine.d.ts",
92
- "import": "./dist/agent/engine.js"
93
- },
94
- "./package.json": "./package.json",
95
- "./dist/*": "./dist/*"
96
- }
97
- }
1
+ {
2
+ "name": "@coinrithm/mcp-trading",
3
+ "version": "0.7.16",
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
+ "test:coverage": "vitest run --coverage",
35
+ "lint": "eslint src",
36
+ "lint:fix": "eslint src --fix",
37
+ "format": "prettier --write \"src/**/*.ts\"",
38
+ "format:check": "prettier --check \"src/**/*.ts\"",
39
+ "start": "node dist/index.js",
40
+ "start:http": "node dist/http.js",
41
+ "smoke:agent": "npm run build && node scripts/agent-smoke.mjs",
42
+ "prepare": "npm run build"
43
+ },
44
+ "engines": {
45
+ "node": ">=18"
46
+ },
47
+ "keywords": [
48
+ "mcp",
49
+ "mcp-server",
50
+ "model-context-protocol",
51
+ "ai-agent",
52
+ "agent-trading",
53
+ "trading",
54
+ "paper-trading",
55
+ "crypto",
56
+ "futures",
57
+ "prediction-markets",
58
+ "polymarket",
59
+ "kalshi",
60
+ "claude",
61
+ "chatgpt",
62
+ "gemini",
63
+ "cursor",
64
+ "open-knowledge-format",
65
+ "okf",
66
+ "model-agnostic",
67
+ "leaderboard",
68
+ "coinrithm"
69
+ ],
70
+ "license": "MIT",
71
+ "dependencies": {
72
+ "@modelcontextprotocol/sdk": "^1.31.0",
73
+ "express": "^4.21.0",
74
+ "json5": "2.2.3",
75
+ "yaml": "^2.5.0",
76
+ "zod": "^3.23.8"
77
+ },
78
+ "devDependencies": {
79
+ "@eslint/js": "^9.13.0",
80
+ "@types/express": "^4.17.21",
81
+ "@types/node": "^20.14.0",
82
+ "@vitest/coverage-v8": "4.1.11",
83
+ "eslint": "^9.13.0",
84
+ "prettier": "^3.3.3",
85
+ "typescript": "^5.5.0",
86
+ "typescript-eslint": "^8.11.0",
87
+ "vitest": "4.1.11"
88
+ },
89
+ "exports": {
90
+ ".": "./dist/index.js",
91
+ "./engine": {
92
+ "types": "./dist/agent/engine.d.ts",
93
+ "import": "./dist/agent/engine.js"
94
+ },
95
+ "./package.json": "./package.json",
96
+ "./dist/*": "./dist/*"
97
+ }
98
+ }