原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Shelem Scorekeeping

作者:khaleghika版本 0.1.0i★ –i在你的电脑上运行
注册名称io.github.khaleghika/shelem-scorekeeping

安装

概览

作者提供的说明(英文原文)

Scores Shelem (شلم) card game hands: bids, Mak, Shelem, the 1000-point rule and the 1165 win.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 游戏、体育、美食与学习

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "shelem-scorekeeping": {
      "command": "uvx",
      "args": [
        "shelem-scorekeeping-mcp"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add shelem-scorekeeping -- uvx shelem-scorekeeping-mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "shelem-scorekeeping": {
      "command": "uvx",
      "args": [
        "shelem-scorekeeping-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "shelem-scorekeeping": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "shelem-scorekeeping-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 khaleghika 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“游戏、体育、美食与学习”中的其他服务器比较i

  • 星标数多于此分类中其他 1285 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1285 个服务器的 79% 更新
  • 基础检查结果等于或优于此分类中其他 1285 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Shelem Scorekeeping 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.0)于9天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:SponsorHound, Joinable, Castos MCP by usefulapi

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

SponsorHound

作者:sponsorhound.com

Find brands that sponsor podcasts and newsletters like yours, with dated public ad reads.

在云端运行今天更新
安装

Joinable

作者:Noju-io

Make any game joinable: pick the pattern, get the snippet, run a two-player self-test.

在你的电脑上运行今天更新
安装

Read podcasts and episodes; create and update episodes; manage private subscribers in Castos.

在云端运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Shelem Scorekeeping MCP Server

A local Model Context Protocol server that scores hands of Shelem (شلم), the Persian trick-taking card game. An AI assistant reads the bids and results from conversation, and this server does every score change with deterministic integer arithmetic. The assistant never has to do the maths itself.

The server runs on your machine over STDIO. It has no network access, no database, and no state. It needs nothing hosted.

Features

  • One tool, calculate_shelem_score, with typed input and structured output.
  • A scoring engine (shelem_mcp.scoring) that is independent of MCP, uses only the Python standard library, and never uses floating point.
  • Strict validation. A hand that is missing a fact or contradicts itself returns an error naming the field. The server never guesses a score.
  • A plain-English explanation of every hand, generated from the engine result.
  • Diagnostics are written to stderr only. stdout carries nothing but MCP messages.

Supported Shelem rules

The full specification, including the contradictions found in the source rules and how each one is resolved, is in docs/scoring-rules.md. The same document in Persian is docs/scoring-rules.fa.md.

  • Each hand distributes 165 points. Normal bids run from 100 to 165 in steps of 5.
  • The Hakem is the declaring team. hakem_team and bidding_team name the same team.
  • Made bid: the Hakem captured at least the bid and scores +bid. The defenders score what they captured.
  • Mak (مک): the Hakem captured exactly the bid. This is a made bid, not a failure.
  • Sweep: the defenders captured nothing, and the Hakem scores +2 × bid.
  • Failed bid: the Hakem captured fewer points than the bid and scores −bid. If the defenders captured 85 or more, the Hakem scores −2 × bid. The defenders always score what they captured.
  • Shelem / sar-shelem (a bid of 165 to take every point): +330 on success, −330 if the defenders captured 5–80, −660 if they captured 85 or more. sar-shelem scores the same as Shelem.
  • A normal bid of 165 is scored by the ordinary rules, so the contract must be stated when the bid is 165.
  • 1000-point rule: a *defending* team that was at 1000 or more before the hand scores 0 when the Hakem makes the bid. If the bid fails, it scores what it captured. A team at or above 1000 that is the Hakem is scored normally.
  • Winning: the game ends when exactly one team reaches 1165 or more. Below that the game continues. Scores are not capped, and negative totals are allowed. No tie-break exists, so the server never invents one.

Installation

The package name is `shelem-scorekeeping-mcp`, and the command it installs has the same name. Python 3.10 or newer is required.

With uvx (recommended)

uv downloads and runs the server in an isolated environment, so there is nothing to install by hand:

uvx shelem-scorekeeping-mcp --version
With pip
pip install shelem-scorekeeping-mcp

shelem-scorekeeping-mcp --version

python -m shelem_mcp also starts the server.

From a local checkout (before the package is on PyPI)
git clone https://github.com/khaleghika/shelem-mcp

cd shelem-mcp uvx --from . shelem-scorekeeping-mcp --version

Run without arguments, the command starts the MCP server on STDIO and waits for a client. You do not normally run it yourself. Your MCP client launches it.

Options:

  • --log-level DEBUG|INFO|WARNING|ERROR|CRITICAL sets the level of diagnostics written to stderr. The default is WARNING. The SHELEM_MCP_LOG_LEVEL environment variable does the same.
  • --version prints the version.

MCP client configuration

Claude Desktop

Edit claude_desktop_config.json. On macOS it is at ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows it is at %APPDATA%\Claude\claude_desktop_config.json.

{

"mcpServers": { "shelem-scorekeeping": { "command": "uvx", "args": ["shelem-scorekeeping-mcp"] } } }

Restart Claude Desktop afterwards. If you installed with pip instead, use "command": "shelem-scorekeeping-mcp" with "args": [].

Claude Code
claude mcp add shelem-scorekeeping -- uvx shelem-scorekeeping-mcp

Add --scope user to make it available in every project. Alternatively, commit a project-level .mcp.json:

{

"mcpServers": { "shelem-scorekeeping": { "type": "stdio", "command": "uvx", "args": ["shelem-scorekeeping-mcp"] } } }

Cursor and other clients

Any client that launches STDIO servers takes the same command and args. In Cursor, add the Claude Desktop block above to ~/.cursor/mcp.json or to .cursor/mcp.json in a project.

Usage

Tell your assistant about the game in your own words, for example: *"We're both on 1000. Team 1 is Hakem, bid 20, and made it exactly (مک)."* The assistant expands the spoken bid "20" to 120 and calls the tool:

{

"team1_score": 1000, "team2_score": 1000, "hakem_team": 1, "bidding_team": 1, "bid": 120, "outcome": "mak" }

The server returns this structured result:

{

"updated_team1_score": 1120, "updated_team2_score": 1000, "game_finished": false, "winner": null, "score_changes": { "team1": 120, "team2": 0 }, "explanation": "Team 1 (Hakem) declared a normal bid of 120. Team 1 captured 120 points and Team 2 captured 45. Team 1 captured exactly its bid (Mak), which is a made bid: +120. Team 2 had 1000 before the hand (1000 or more) and the bid was made, so its 45 captured points are withheld: +0. New totals: Team 1 1120, Team 2 1000. Neither team has reached 1165, so the game continues.", "hand": { "bid": 120, "contract": "normal", "bidding_team": 1, "hakem_team": 1, "defending_team": 2, "declarer_points": 120, "defending_points": 45, "bid_successful": true, "scoring_rule": "bid_made", "thousand_point_rule_applied": true, "scoring_note": null } }

The server is stateless. The assistant keeps the running totals and passes the totals from before each hand. To correct an earlier hand, it re-scores every hand from that point on.

Tool reference: calculate_shelem_score

Input
FieldTypeRequiredMeaning
team1_scoreintegeryesTeam 1 total before the hand. May be negative.
team2_scoreintegeryesTeam 2 total before the hand. May be negative.
bidintegeryes100, 105, …, 165. Spoken abbreviations must be expanded first ("20" is 120).
hakem_team1 or 2one of the twoThe Hakem.
bidding_team1 or 2one of the twoThe team that won the bidding. Must equal hakem_team if both are given.
outcome"mak" or "sweep"one of the threemak: the Hakem captured exactly the bid. sweep: the defenders captured nothing.
defending_pointsintegerone of the threePoints captured by the defenders, 0–165, a multiple of 5.
declarer_pointsintegerone of the threePoints captured by the Hakem. Must sum to 165 with defending_points.
contract"normal", "shelem", "sare-shelem"when bid is 165Omit below 165.
bid_successfulbooleannoA cross-check only. If it disagrees with the points, the hand is rejected.

"One of the two" and "one of the three" mean at least one field from that group is required. When several are given, they must agree.

bid_successful alone cannot score a hand. The Hakem's award depends on whether the defenders captured nothing or 85 or more, and the defenders' award is the points they captured. The tool therefore needs the captured points, or outcome, as well.

Output
FieldTypeMeaning
updated_team1_scoreintegerTeam 1 total after the hand.
updated_team2_scoreintegerTeam 2 total after the hand.
game_finishedbooleantrue when exactly one team has reached 1165 or more.
winner1, 2 or nullSet only when the game is finished.
score_changes{team1, team2}Points each team gained or lost in this hand.
explanationstringA plain-English account of the scoring.
handobjectDetails: the resolved bid, contract, teams, captured points, bid_successful, scoring_rule, thousand_point_rule_applied, scoring_note.

scoring_rule is one of sweep_double, bid_made, bid_failed, heavy_failure, shelem_made, shelem_failed, or shelem_heavy_failure.

Errors

Invalid input returns an MCP tool result with isError: true and a message that ends in (field: ), for example:

bid must be from 100 through 165 in steps of 5. Abbreviated spoken bids are not accepted. (field: bid)

No score is returned with an error. The tool refuses to score a hand when either team is already at 1165 or more, because that game is over.

Using the engine without MCP

from shelem_mcp.scoring import calculate, explain

result = calculate({"team1_score": 0, "team2_score": 0, "bidding_team": 2, "bid": 135, "defending_points": 35}) print(result["team1_score"], result["team2_score"]) # 35 -135 print(explain(result))

python -m shelem_mcp.scoring < hand.json scores one hand from JSON on the command line.

Development and testing

uv venv

uv pip install -e ".[dev]" uv run pytest

The tests cover the following:

  • tests/test_scoring.py tests the engine alone: every worked example from the source rules, every boundary (999 and 1000, 1160 and 1165, 80 and 85 defensive points), Mak, sweeps, Shelem, validation, a multi-hand game, and the 1000-1000 Mak regression.
  • tests/test_mcp_tools.py tests the MCP layer: tool discovery and schemas, invocation in-process and over a real STDIO subprocess (both the classic initialize handshake and the 2026-07-28 protocol), raw JSON-RPC to check that stdout carries only protocol messages, server.json against the official registry schema, and this README's example against the real output.

To build the distribution:

uv build

uvx twine check dist/*

Publishing

server.json uses the current registry schema, https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json. It is a local PyPI package on STDIO. There is no remote endpoint. The mcp-name comment at the top of this file is the ownership proof PyPI publishing checks.

The current registry guides are:

GitHub Actions

Pushing a tag such as v0.1.0 runs .github/workflows/publish-mcp.yml. The tag, the package version, and both version fields in server.json must be the same number. The workflow tests, builds, publishes shelem-scorekeeping-mcp to PyPI with a repository secret named PYPI_API_TOKEN, then publishes this repository's `server.json

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx