@coinrithm/mcp-trading 0.1.8 → 0.3.0

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 (62) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +43 -19
  3. package/dist/agent/act.d.ts +4 -0
  4. package/dist/agent/act.js +114 -0
  5. package/dist/agent/capabilityGuard.d.ts +2 -0
  6. package/dist/agent/capabilityGuard.js +131 -0
  7. package/dist/agent/cli.d.ts +21 -0
  8. package/dist/agent/cli.js +382 -0
  9. package/dist/agent/client.d.ts +107 -0
  10. package/dist/agent/client.js +173 -0
  11. package/dist/agent/decision.d.ts +137 -0
  12. package/dist/agent/decision.js +118 -0
  13. package/dist/agent/decisionValidator.d.ts +16 -0
  14. package/dist/agent/decisionValidator.js +215 -0
  15. package/dist/agent/engine.d.ts +10 -0
  16. package/dist/agent/engine.js +16 -0
  17. package/dist/agent/extract.d.ts +4 -0
  18. package/dist/agent/extract.js +5 -0
  19. package/dist/agent/frontmatter.d.ts +5 -0
  20. package/dist/agent/frontmatter.js +19 -0
  21. package/dist/agent/index.d.ts +2 -0
  22. package/dist/agent/index.js +10 -0
  23. package/dist/agent/indicators.d.ts +44 -0
  24. package/dist/agent/indicators.js +135 -0
  25. package/dist/agent/manifest.d.ts +15 -0
  26. package/dist/agent/manifest.js +40 -0
  27. package/dist/agent/mergeRules.d.ts +11 -0
  28. package/dist/agent/mergeRules.js +82 -0
  29. package/dist/agent/observe.d.ts +7 -0
  30. package/dist/agent/observe.js +244 -0
  31. package/dist/agent/prompt.d.ts +3 -0
  32. package/dist/agent/prompt.js +76 -0
  33. package/dist/agent/providers.d.ts +25 -0
  34. package/dist/agent/providers.js +143 -0
  35. package/dist/agent/resolve.d.ts +11 -0
  36. package/dist/agent/resolve.js +499 -0
  37. package/dist/agent/runEvidence.d.ts +6 -0
  38. package/dist/agent/runEvidence.js +23 -0
  39. package/dist/agent/runner.d.ts +19 -0
  40. package/dist/agent/runner.js +280 -0
  41. package/dist/agent/skill.d.ts +12 -0
  42. package/dist/agent/skill.js +136 -0
  43. package/dist/agent/skillValidator.d.ts +7 -0
  44. package/dist/agent/skillValidator.js +123 -0
  45. package/dist/agent/state.d.ts +7 -0
  46. package/dist/agent/state.js +96 -0
  47. package/dist/agent/strictLint.d.ts +3 -0
  48. package/dist/agent/strictLint.js +165 -0
  49. package/dist/agent/templates.d.ts +14 -0
  50. package/dist/agent/templates.js +192 -0
  51. package/dist/agent/types.d.ts +286 -0
  52. package/dist/agent/types.js +88 -0
  53. package/dist/agent/util.d.ts +13 -0
  54. package/dist/agent/util.js +116 -0
  55. package/dist/agent/version.d.ts +11 -0
  56. package/dist/agent/version.js +16 -0
  57. package/dist/client.d.ts +162 -0
  58. package/dist/http.d.ts +2 -0
  59. package/dist/index.d.ts +2 -0
  60. package/dist/tools.d.ts +3 -0
  61. package/dist/version.d.ts +1 -0
  62. package/package.json +78 -67
package/dist/http.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,3 @@
1
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import { CoinRithmClient } from "./client.js";
3
+ export declare function registerTools(server: McpServer, client: CoinRithmClient): void;
@@ -0,0 +1 @@
1
+ export declare const SERVER_VERSION: string;
package/package.json CHANGED
@@ -1,67 +1,78 @@
1
- {
2
- "name": "@coinrithm/mcp-trading",
3
- "version": "0.1.8",
4
- "mcpName": "io.github.CoinRithm/mcp-trading",
5
- "description": "MCP server for paper-trading on CoinRithm (spot, futures, 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
- },
23
- "main": "dist/index.js",
24
- "files": [
25
- "dist",
26
- "README.md"
27
- ],
28
- "scripts": {
29
- "build": "tsc -p tsconfig.json",
30
- "start": "node dist/index.js",
31
- "start:http": "node dist/http.js",
32
- "prepare": "npm run build"
33
- },
34
- "engines": {
35
- "node": ">=18"
36
- },
37
- "keywords": [
38
- "mcp",
39
- "mcp-server",
40
- "model-context-protocol",
41
- "ai-agent",
42
- "agent-trading",
43
- "trading",
44
- "paper-trading",
45
- "crypto",
46
- "futures",
47
- "prediction-markets",
48
- "polymarket",
49
- "kalshi",
50
- "claude",
51
- "chatgpt",
52
- "cursor",
53
- "leaderboard",
54
- "coinrithm"
55
- ],
56
- "license": "MIT",
57
- "dependencies": {
58
- "@modelcontextprotocol/sdk": "^1.0.0",
59
- "express": "^4.21.0",
60
- "zod": "^3.23.8"
61
- },
62
- "devDependencies": {
63
- "@types/express": "^4.17.21",
64
- "@types/node": "^20.14.0",
65
- "typescript": "^5.5.0"
66
- }
67
- }
1
+ {
2
+ "name": "@coinrithm/mcp-trading",
3
+ "version": "0.3.0",
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
+ }