Skip to content

Latest commit

 

History

History
148 lines (93 loc) · 3.81 KB

File metadata and controls

148 lines (93 loc) · 3.81 KB

Changelog

0.0.16

Patch Changes

  • 0f1d89f: Fix npm compatibility by replacing JSR protocol dependency

    • Replace jsr:@hk/polymarket with npm-compatible @jsr/hk__polymarket package
    • Fix EUNSUPPORTEDPROTOCOL error when installing with npm/npx
    • Enable installation with all package managers (npm, pnpm, yarn) without JSR-specific syntax

0.0.15

Patch Changes

  • 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

0.0.14

Patch Changes

  • e4de267: Fix clob client errors on createOrDeriveApiKey

0.0.13

Patch Changes

  • 768ef22: Makes default signature type to 2 for supporting proxy contract

0.0.12

Patch Changes

  • aee641d: Add close false for get active markets
  • aabc860: Improves the approvals service code

0.0.11

Patch Changes

  • 2829873: adds approval code for negrisk

0.0.10

Patch Changes

  • 859db6c: improve tool descriptions

0.0.9

Patch Changes

  • 187fbb4: Fix signature error on place order

0.0.8

Patch Changes

0.0.7

Patch Changes

  • 1e28dec: Fixes polymarket kit sdk installation for pnpm

0.0.6

Patch Changes

  • 0f0efbc: Improves max gas fee logic in approvals

0.0.5

Patch Changes

  • 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

0.0.4

Patch Changes

  • 6c2982d: Adds dist in files

0.0.3

Patch Changes

  • 3c39366: Changes the build

0.0.2

Patch Changes

  • 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.

[1.0.0] - 2025-10-28

Added

  • 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 details
    • get_event_by_slug - Get event information
    • list_active_markets - List active markets with pagination
    • search_markets - Search for markets, events, and profiles
    • get_markets_by_tag - Filter markets by category tags
    • get_all_tags - Get all available market tags
    • get_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

Security

  • 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

Dependencies

  • @modelcontextprotocol/sdk ^1.20.2 - MCP server implementation
  • @polymarket/clob-client ^4.22.8 - Polymarket trading client
  • ethers ^5.7.2 - Ethereum wallet and signing (v5 for compatibility)
  • zod ^3.25.76 - Schema validation
  • @biomejs/biome ^2.3.1 - Linting and formatting
  • typescript ^5.9.3 - Type-safe development