-
0f1d89f: Fix npm compatibility by replacing JSR protocol dependency
- Replace
jsr:@hk/polymarketwith npm-compatible@jsr/hk__polymarketpackage - Fix
EUNSUPPORTEDPROTOCOLerror when installing with npm/npx - Enable installation with all package managers (npm, pnpm, yarn) without JSR-specific syntax
- Replace
-
57566eb: Fix network detection errors with flaky RPC endpoints
- Use StaticJsonRpcProvider instead of JsonRpcProvider to bypass network auto-detection
- Fix signature type auto-detection being overwritten during config merge
- Skip approval checks for proxy wallet mode (signature type 2) since approvals are managed via Polymarket UI
- e4de267: Fix clob client errors on createOrDeriveApiKey
- 768ef22: Makes default signature type to 2 for supporting proxy contract
- aee641d: Add close false for get active markets
- aabc860: Improves the approvals service code
- 2829873: adds approval code for negrisk
- 859db6c: improve tool descriptions
- 187fbb4: Fix signature error on place order
- 74ac0ff: Changes negRisk to true for Polymarket/py-clob-client#138
- 1e28dec: Fixes polymarket kit sdk installation for pnpm
- 0f0efbc: Improves max gas fee logic in approvals
- dea907e: Implement Polymarket API integration, add approval logic for USDC and CTF, and introduce new trading tools. Refactor existing code for better organization and lazy initialization.
- aea156e: Makes approvals manual instead of automatic
- 6c2982d: Adds dist in files
- 3c39366: Changes the build
- d003edc: Adds trade tools to mcp
- f014136: Removes viem
- 1dce032: makes mcp to only show trade related tools when the polymarket private key is given
All notable changes to this project will be documented in this file.
- Initial implementation of Polymarket MCP Server
- TypeScript project setup with strict type checking
- Biome configuration for linting and formatting
- Market data retrieval tools:
get_market_by_slug- Get specific market detailsget_event_by_slug- Get event informationlist_active_markets- List active markets with paginationsearch_markets- Search for markets, events, and profilesget_markets_by_tag- Filter markets by category tagsget_all_tags- Get all available market tagsget_order_book- View current order book for a market
- Trading functionality implementation:
- Trading client class with API credential initialization
- Limit order placement (GTC/GTD)
- Market order placement (FOK/FAK)
- Order management (get, cancel individual, cancel all)
- Trade history retrieval
- Balance and allowance management
- Comprehensive documentation in README
- Example environment configuration file
- Test script for manual validation
- Configurable API endpoints via environment variables
- CodeQL security scan with no vulnerabilities found
- Proper handling of sensitive data (private keys)
- Use of environment variables for configuration
- Documentation of transitive dependency vulnerabilities and mitigation
@modelcontextprotocol/sdk^1.20.2 - MCP server implementation@polymarket/clob-client^4.22.8 - Polymarket trading clientethers^5.7.2 - Ethereum wallet and signing (v5 for compatibility)zod^3.25.76 - Schema validation@biomejs/biome^2.3.1 - Linting and formattingtypescript^5.9.3 - Type-safe development