@c0pilot/mcp-polymarket 1.0.0 → 1.0.2

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.
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # mcp-polymarket
1
+ # @c0pilot/mcp-polymarket
2
2
 
3
3
  MCP (Model Context Protocol) server and client library for [Polymarket](https://polymarket.com) prediction markets.
4
4
 
5
- [![npm version](https://badge.fury.io/js/mcp-polymarket.svg)](https://www.npmjs.com/package/mcp-polymarket)
5
+ [![npm version](https://badge.fury.io/js/@c0pilot/mcp-polymarket.svg)](https://www.npmjs.com/package/@c0pilot/mcp-polymarket)
6
6
 
7
7
  ## Features
8
8
 
@@ -17,7 +17,7 @@ MCP (Model Context Protocol) server and client library for [Polymarket](https://
17
17
  ## Installation
18
18
 
19
19
  ```bash
20
- npm install mcp-polymarket
20
+ npm install @c0pilot/mcp-polymarket
21
21
  ```
22
22
 
23
23
  ## Usage
@@ -115,16 +115,16 @@ Your "funder" is your Polymarket proxy wallet - the address shown on polymarket.
115
115
 
116
116
  ```typescript
117
117
  // Main MCP server entry
118
- import mcp from 'mcp-polymarket';
118
+ import mcp from '@c0pilot/mcp-polymarket';
119
119
 
120
120
  // Client wrapper for Polymarket CLOB
121
- import { ClobClientWrapper } from 'mcp-polymarket/client';
121
+ import { ClobClientWrapper } from '@c0pilot/mcp-polymarket/client';
122
122
 
123
123
  // Configuration utilities
124
- import { createConfig, loadConfig, Config } from 'mcp-polymarket/config';
124
+ import { createConfig, getConfig, Config } from '@c0pilot/mcp-polymarket/config';
125
125
 
126
126
  // Type definitions
127
- import { MarketInfo, OrderbookInfo, Position } from 'mcp-polymarket/types';
127
+ import { MarketInfo, OrderbookInfo, Position } from '@c0pilot/mcp-polymarket/types';
128
128
  ```
129
129
 
130
130
  ## Security
@@ -152,7 +152,8 @@ npm run test:e2e
152
152
 
153
153
  ## Related
154
154
 
155
- - [@openclaw/polymarket](https://github.com/unsanction/openclaw-polymarket) - OpenClaw plugin using this library
155
+ - [@c0pilot/openclaw-polymarket](https://www.npmjs.com/package/@c0pilot/openclaw-polymarket) - OpenClaw plugin using this library
156
+ - [GitHub](https://github.com/unsanction/mcp-polymarket)
156
157
 
157
158
  ## License
158
159
 
package/build/client.js CHANGED
@@ -14,8 +14,10 @@ export class ClobClientWrapper {
14
14
  if (this.client) {
15
15
  return;
16
16
  }
17
- // Cast to any to handle ethers version mismatch between our ethers and @polymarket/clob-client's ethers
17
+ // Create wallet and add ethers v5 compatibility shim
18
+ // @polymarket/clob-client expects _signTypedData (ethers v5), but ethers v6 uses signTypedData
18
19
  const wallet = new Wallet(this.config.privateKey);
20
+ wallet._signTypedData = wallet.signTypedData.bind(wallet);
19
21
  const funder = this.config.funder;
20
22
  // Signature type depends on wallet setup:
21
23
  // 0 = Direct EOA (when funder == signer)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c0pilot/mcp-polymarket",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "MCP server and client library for Polymarket prediction markets - trade, browse markets, manage positions",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",
@@ -47,7 +47,7 @@
47
47
  "clob",
48
48
  "model-context-protocol"
49
49
  ],
50
- "author": "unsanction",
50
+ "author": "c0pilot",
51
51
  "license": "MIT",
52
52
  "repository": {
53
53
  "type": "git",