@coinrithm/mcp-trading 0.7.13 → 0.7.15

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 (49) hide show
  1. package/CHANGELOG.md +692 -573
  2. package/README.md +400 -364
  3. package/dist/agent/act.d.ts +7 -2
  4. package/dist/agent/act.js +10 -3
  5. package/dist/agent/cli.d.ts +1 -0
  6. package/dist/agent/cli.js +25 -4
  7. package/dist/agent/client.d.ts +13 -0
  8. package/dist/agent/client.js +107 -4
  9. package/dist/agent/decisionReceipt.d.ts +5 -1
  10. package/dist/agent/decisionReceipt.js +95 -3
  11. package/dist/agent/decisionValidator.js +74 -0
  12. package/dist/agent/definitionSnapshot.d.ts +22 -0
  13. package/dist/agent/definitionSnapshot.js +28 -0
  14. package/dist/agent/engine.d.ts +1 -0
  15. package/dist/agent/engine.js +1 -0
  16. package/dist/agent/futuresEligibility.d.ts +36 -0
  17. package/dist/agent/futuresEligibility.js +90 -0
  18. package/dist/agent/mergeRules.d.ts +1 -1
  19. package/dist/agent/mergeRules.js +17 -2
  20. package/dist/agent/observe.d.ts +9 -1
  21. package/dist/agent/observe.js +507 -45
  22. package/dist/agent/pmContext.d.ts +10 -1
  23. package/dist/agent/pmContext.js +163 -1
  24. package/dist/agent/prompt.d.ts +14 -0
  25. package/dist/agent/prompt.js +138 -27
  26. package/dist/agent/providerCapabilities.d.ts +3 -0
  27. package/dist/agent/providerCapabilities.js +34 -4
  28. package/dist/agent/providers.d.ts +3 -0
  29. package/dist/agent/providers.js +12 -2
  30. package/dist/agent/resolve.js +8 -1
  31. package/dist/agent/runner.js +140 -18
  32. package/dist/agent/skill.js +9 -0
  33. package/dist/agent/skillValidator.js +11 -2
  34. package/dist/agent/strictLint.js +1 -0
  35. package/dist/agent/templates.js +30 -30
  36. package/dist/agent/types.d.ts +138 -1
  37. package/dist/agent/types.js +4 -0
  38. package/dist/client.d.ts +11 -2
  39. package/dist/client.js +22 -10
  40. package/dist/http.d.ts +1 -0
  41. package/dist/http.js +17 -2
  42. package/dist/httpCompletion.d.ts +1 -1
  43. package/dist/httpCompletion.js +1 -0
  44. package/dist/index.js +2 -1
  45. package/dist/instructions.d.ts +1 -0
  46. package/dist/instructions.js +16 -0
  47. package/dist/tools.d.ts +1 -0
  48. package/dist/tools.js +150 -66
  49. package/package.json +97 -97
package/package.json CHANGED
@@ -1,97 +1,97 @@
1
- {
2
- "name": "@coinrithm/mcp-trading",
3
- "version": "0.7.13",
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.15",
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
+ }