Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
제작자가 쓴 설명(영어 원문)
Scores Shelem (شلم) card game hands: bids, Mak, Shelem, the 1000-point rule and the 1165 win.
이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
필요한 것
어떤 앱을 쓰세요?
위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.
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/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요
{
"mcpServers": {
"shelem-scorekeeping": {
"command": "uvx",
"args": [
"shelem-scorekeeping-mcp"
]
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
프로젝트의 .vscode/mcp.json에 붙여 넣으세요
{
"servers": {
"shelem-scorekeeping": {
"type": "stdio",
"command": "uvx",
"args": [
"shelem-scorekeeping-mcp"
]
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.
선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.
이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 7일 점검
레지스트리 이름이 GitHub 계정 khaleghika 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(0.1.0)은 8일 전 레지스트리에 올라왔어요.
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Python (uv)도 있어야 해요.
같은 카테고리에는: Spec Driven Development, Remote Desktop Commander, Kanal Varna — drains, leaks & plumbing (Varna, BG)
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Drain unblocking, leak detection & plumbing in Varna, Bulgaria: services, prices, areas, contact
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
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.
shelem-scorekeeping-mcpio.github.khaleghika/shelem-scorekeeping (registry search)calculate_shelem_score, with typed input and structured output.shelem_mcp.scoring) that is independent of MCP, uses only the Python standard library, and never uses floating point.explanation of every hand, generated from the engine result.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.
hakem_team and bidding_team name the same team.+bid. The defenders score what they captured.+2 × bid.−bid. If the defenders captured 85 or more, the Hakem scores −2 × bid. The defenders always score what they captured.+330 on success, −330 if the defenders captured 5–80, −660 if they captured 85 or more. sar-shelem scores the same as Shelem.The package name is `shelem-scorekeeping-mcp`, and the command it installs has the same name. Python 3.10 or newer is required.
uv downloads and runs the server in an isolated environment, so there is nothing to install by hand:
uvx shelem-scorekeeping-mcp --version
pip install shelem-scorekeeping-mcp
shelem-scorekeeping-mcp --version
python -m shelem_mcp also starts the server.
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.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 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"] } } }
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.
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.
calculate_shelem_score| Field | Type | Required | Meaning |
|---|---|---|---|
team1_score | integer | yes | Team 1 total before the hand. May be negative. |
team2_score | integer | yes | Team 2 total before the hand. May be negative. |
bid | integer | yes | 100, 105, …, 165. Spoken abbreviations must be expanded first ("20" is 120). |
hakem_team | 1 or 2 | one of the two | The Hakem. |
bidding_team | 1 or 2 | one of the two | The team that won the bidding. Must equal hakem_team if both are given. |
outcome | "mak" or "sweep" | one of the three | mak: the Hakem captured exactly the bid. sweep: the defenders captured nothing. |
defending_points | integer | one of the three | Points captured by the defenders, 0–165, a multiple of 5. |
declarer_points | integer | one of the three | Points captured by the Hakem. Must sum to 165 with defending_points. |
contract | "normal", "shelem", "sare-shelem" | when bid is 165 | Omit below 165. |
bid_successful | boolean | no | A 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.
| Field | Type | Meaning |
|---|---|---|
updated_team1_score | integer | Team 1 total after the hand. |
updated_team2_score | integer | Team 2 total after the hand. |
game_finished | boolean | true when exactly one team has reached 1165 or more. |
winner | 1, 2 or null | Set only when the game is finished. |
score_changes | {team1, team2} | Points each team gained or lost in this hand. |
explanation | string | A plain-English account of the scoring. |
hand | object | Details: 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.
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.
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.
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/*
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:
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
앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요