langfuse-mcp-general-rules

langfuse-mcp-general-rules is a cursor rule for Cursor from avivsinai/langfuse-mcp. It costs 562 tokens per session, scanned C, original, MIT.

A set of project rules for developing and releasing a Langfuse MCP server. MCP is a way for an AI client to use tools provided by another program, while PyPI is Python’s package repository.

In plain words
What is it for?
Use it when working on this project with uv or uvx, investigating server or Cursor logs, creating semantic-version tags, and publishing packages to PyPI.
Why use it?
It gives contributors consistent commands and release practices for building, testing, debugging, versioning, and publishing the server.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when working on this project with uv or uvx, investigating server or Cursor logs, creating semantic-version tags, and publishing packages to PyPI.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/avivsinai/langfuse-mcp/langfuse-mcp-general-rules
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/avivsinai/langfuse-mcp

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for langfuse-mcp-general-rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/avivsinai/langfuse-mcp/langfuse-mcp-general-rules/github.svg)](https://agentmods.dev/rules/avivsinai/langfuse-mcp/langfuse-mcp-general-rules)
Your own site
<a href="https://agentmods.dev/rules/avivsinai/langfuse-mcp/langfuse-mcp-general-rules"><img src="https://agentmods.dev/badge/rules/avivsinai/langfuse-mcp/langfuse-mcp-general-rules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for langfuse-mcp-general-rules

Your own site · 80×15
<a href="https://agentmods.dev/rules/avivsinai/langfuse-mcp/langfuse-mcp-general-rules"><img src="https://agentmods.dev/badge/rules/avivsinai/langfuse-mcp/langfuse-mcp-general-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 562 This file is loaded in full into every session.
When invoked 562 The same file — it is already loaded in full.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00562 $0.00562
Opus 5 $0.00281 $0.00281
Sonnet 5 $0.00112 $0.00112
Haiku 4.5 $0.00056 $0.00056

Measured 10d ago against content hash b8944562a6fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade C, and why

langfuse-mcp-general-rules scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf dist/
.cursor/rules/langfuse-mcp-general-rules.mdc · 59 lines

What it actually says

How to build, run, test and debug Langfuse MCP project effectively

  • We ONLY use uv/uvx in order to run, build our app, do not use vanilla Python or scripts
  • Our server logs reside in /tmp/langfuse_mcp.log - read them in our for properly debugging our server
  • For debugging Cursor MCP client, the logs exist in: ~/Library/Application\ Support/Cursor/logs/
  • In order to only find MCP related logs one can use find ~/Library/Application\ Support/Cursor/logs/ -type f -exec grep -i "mcp" {} \;
  • Since we aren't using SSE and there are many SSE implementations that are used, one can also use find ~/Library/Application\ Support/Cursor/logs/ -type f -exec grep -i "mcp" {} \; | grep -v "SSE error"
  • Read README.md for various information, which relates to our project.

Building and Publishing to PyPI

Version Numbering and Tagging

  • We use semantic versioning with format v0.x.y for version tags
  • Always create a git tag for each release with the format v0.x.y

Build and Publish Workflow

  1. Commit your changes:

    git add <modified files>
    git commit -m "Your commit message"
    
  2. Tag the release:

    git tag -a v0.x.y -m "Brief description of the release"
    
  3. Build the wheel (skip source distribution):

    rm -rf dist/
    uv build --wheel --no-build-logs --index-strategy unsafe-best-match
    
  4. Publish to TestPyPI first:

    uv publish --index testpypi dist/langfuse_mcp-0.x.y-py3-none-any.whl
    
    • Use __token__ as username
    • Use your TestPyPI API token as password
  5. Push tag and changes to remote:

    git push origin v0.x.y
    git push
    
  6. Publish to PyPI (when ready):

    uv publish dist/langfuse_mcp-0.x.y-py3-none-any.whl
    
    • Use __token__ as username
    • Use your PyPI API token as password
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 59 lines · 562 tokens per session scan C b8944562a6fb

Subscribe to this mod's changes

langfuse-mcp-general-rules is a cursor rule published in the GitHub repository avivsinai/langfuse-mcp (105 stars, last pushed today), licensed MIT. It adds 562 tokens to every session, about $0.0028 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.