Skip to main content
Glama
huhu588

Infinity-MCP

by huhu588

Infinity-MCP (Infinity Assistant / Cursor Free Plus)

⚠️ Disclaimer (Please read carefully)

  • This project is for personal learning, technical research, and reference purposes only. It is strictly prohibited to use this project for any commercial purposes or in scenarios that violate laws, regulations, or the Terms of Service (ToS) of Cursor or related third-party services.

  • This project is based on the open-source project a78789191888/wkmcp-pjb and has been modified, integrated, and researched under the MIT license. The copyright of all core concepts and upstream code belongs to the original author. This repository serves only as a sample for learning and research.

  • The publisher is merely an organizer and redistributor of the source code and has no interest relationship with the author (the current maintainer of this repository). The publisher assumes no responsibility for any direct or indirect losses, account bans, or legal liabilities caused by any user's use, modification, or dissemination of this code.

  • By downloading, cloning, compiling, running, or using the contents of this repository in any form, you are deemed to have read and agreed to this statement in its entirety. If you do not agree to the above terms, please stop using it immediately and delete all copies of this repository.

  • If this project infringes upon your legal rights, please submit an Issue to notify us, and the relevant content will be removed immediately after verification.


Keyless Cursor Enhancement Plugin · Infinity Assistant, forked and enhanced based on a78789191888/wkmcp-pjb. While retaining all its sidebar multi-session MCP functionality, it includes a built-in Cursor Membership Switcher (independent page, click to navigate; ported from the original Cursor Membership Switcher project).

This plugin no longer relies on any keys/activation codes/trial periods; it is ready to use upon opening.

Upstream project address: https://github.com/a78789191888/wkmcp-pjb (MIT License, this repository is a modified version for research and learning purposes, for reference only)

Related MCP server: BMAD Agent FastMCP Service

Features

1. Sidebar Multi-Session MCP (Retained from wkmcp)

  • Multi-project, multi-window parallel processing: Up to 32 sessions (my-mcp-1my-mcp-32), each bound to an independent message channel.

  • Three MCP tools: check_messages / send_message / ask_question, supporting attachments (images/file base64).

  • One-click "Start Configuration" to write the current sidebar session list to the workspace .cursor/mcp.json.

  • Session memos, voice input (Windows), and persistent chat history.

2. Cursor Membership Switcher (Independent Page)

  • Independent Settings Page: The sidebar only keeps an entry button; clicking it opens the full settings page in the editor area (no longer occupying sidebar space).

  • Automatic detection of Cursor installation path (running processes + common directories).

  • One-click membership type switching: Free / Free Trial / Pro / Pro+ / Ultra / Enterprise, also supports custom strings.

  • Automatic backup of original files, with one-click restoration at any time.

  • Automatically prompts to close running Cursor instances before applying patches.

  • One-click Cursor restart.

3. Cursor Billing and Usage (New, Independent Page)

  • Independent Billing Page: Adds an "Open Billing and Usage" button to the sidebar, opening in the editor area.

  • Automatic reading of local state.vscdb: Directly retrieves the currently logged-in Cursor account via cursorAuth/accessToken (no pasting required).

  • First installation → Local records: Prioritizes parsing composerData:* in cursorDiskKV, estimating historical tokens using approximate character weights for quick display.

  • Subsequent times → Official API: Marks hasFetchedFromApi after a hit, no longer falling back to local cache.

  • Cursor APIs called (referencing Open Switch implementation and tokscale):

    • POST https://api2.cursor.sh/aiserver.v1.AuthService/GetUserMeta

    • GET https://api2.cursor.sh/auth/full_stripe_profile

    • GET https://cursor.com/api/usage-summary

    • GET https://cursor.com/api/dashboard/export-usage-events-csv?strategy=tokens

  • Displayed Content:

    • Account Info Card: Email, membership type, subscription status, WorkOS ID.

    • Overview KPI Card: Today / This Week / This Month / Total $ consumption + token count + request count.

    • Last 30 days daily consumption bar chart (pure SVG, no chart library dependency).

    • Model breakdown table: Requests / Input / Output / Cache Read/Write / Total Tokens / Consumption $.

  • Data Source Labeling: A badge at the top of the page clearly indicates whether the current data is from Cursor API (Real-time) / Local composerData (Approximate) / Local Cache.

  • Implementation details:

    • Uses embedded sql.js (pre-packaged wasm, approx. 690 KB) to read state.vscdb, copying to Buffer in read-only mode without locking Cursor.

    • Uses Node's built-in https to call APIs, with no other npm runtime dependencies.

    • Automatically retries once on API failure (TLS / socket jitter tolerance).

Build and Packaging

Environment Requirements

  • Node.js 18+ (requires npm)

  • Windows / macOS / Linux are all supported; PowerShell is recommended for Windows.

  • No need to install vsce globally; it is pulled as a devDependencies with the package (@vscode/vsce).

One-Click Packaging

npm install          # 安装根依赖 + 触发 postinstall 安装 mcp-server 子包依赖
npm run compile      # 1) tsc -p . 编译 src/ → dist/   2) 执行 scripts/copy-vendor.js
npm run package      # 等价于 compile + vsce package --no-dependencies --allow-missing-repository

After successful packaging, you will get the following in the root directory of the repository:

cursor-free-plus-1.4.0.vsix   (版本号取自 package.json 的 "version")

Usage

  1. After installation, the Infinity Assistant icon will appear in the left activity bar; click it to open the sidebar.

  2. Fill in the workspace path or select "Use Current", then click "Start Configuration" to write to .cursor/mcp.json.

  3. Click the "Cursor Membership Type → Open Membership Type Settings" button, select the type on the new page, and click "Apply Patch".

  4. After the patch is complete, click "Restart Cursor" to apply the changes.

Command Palette

  • Infinity Assistant: Configure Workspace (MCP)

  • Infinity Assistant: Open Membership Type Settings

  • Infinity Assistant: Open Billing and Usage

  • Infinity Assistant: Apply Membership Patch

  • Infinity Assistant: Restore Original Membership File

  • Infinity Assistant: Detect Cursor Installation Path

Configuration Items

  • wukong.payStoreUrl: The URL for the "Sponsorship/Purchase" link in the sidebar, default https://pay.ldxp.cn/shop/superman.

  • cursorFree.supportGroupQQ: Communication QQ group number, default 1087432681.

  • cursorFree.defaultMembership: Default selected membership type, default pro.

Other wukong.* configuration items are retained for compatibility with the upstream wkmcp and do not take effect in the keyless version.

Directory Structure

Cursor-free/
├── package.json              # 扩展 manifest(命令、视图、配置、scripts 全在这)
├── tsconfig.json             # TypeScript 编译配置(outDir = dist/)
├── .vscodeignore             # vsce 打包排除清单
├── src/                      # TS 源码(编译到 dist/ 后被打进 vsix)
│   ├── extension.ts          # 扩展主入口(复刻自 wkmcp + 集成会员切换 / 账单 UI)
│   ├── license.ts            # 短路化的 license 模块(保留签名,一律永久已激活)
│   └── cursor-patcher.ts     # 会员补丁逻辑(从 Python 项目移植到 Node)
├── scripts/
│   ├── copy-vendor.js        # 把 sql.js 的 wasm 拷贝到 dist/vendor/sql.js/
│   └── smoke-billing.js      # 账单页接口 / 本地数据源冒烟脚本
├── dist/                     # 构建产物(进 vsix 的就是这一坨 + mcp-server/)
│   ├── extension.js
│   ├── license.js
│   ├── cursor-patcher.js
│   └── vendor/sql.js/        # sql-wasm.js + sql-wasm.wasm
├── mcp-server/
│   ├── index.mjs             # MCP stdio server(原样保留)
│   └── package.json
├── resources/icon.svg
├── legacy-python/            # 原 Python GUI 项目归档(不参与打包)
└── ref-wkmcp-pjb/            # wkmcp 参考源(仅作参照,不参与打包)

Communication and Support

Acknowledgments and License

  • Upstream Original Project: a78789191888/wkmcp-pjb (MIT License) This project is a modification of the original for research and learning purposes, for reference only. Thanks to the original author for their open-source contribution.

  • Membership switching logic reference: Archived code under legacy-python/ in this repository.

  • Billing API call reference: junhoyeo/tokscale

This repository follows the MIT license for secondary distribution at the source code level (see LICENSE.txt).

Final Statement

  • This project is for learning, research, and technical exchange purposes only. It must not be used for any illegal or non-compliant purposes, nor for any commercial purposes.

  • This project is a research and learning-oriented modification of a78789191888/wkmcp-pjb and is for reference only.

  • Users should bear all risks associated with using this project (including but not limited to account risks and legal risks). Any consequences are unrelated to the publisher/maintainer of this repository.

  • Please delete it within 24 hours of downloading and support the purchase of an official Cursor subscription.

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).

  • Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.

  • Hosted MCP memory: save sessions/decisions once, search from Claude, Cursor, ChatGPT. EU-hosted FTS.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/huhu588/Infinity-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server