{"_id":"@elad12390/mcp-server-langfuse","_rev":"4-e2580de20b5e9026770bd0d264c03cd6","name":"@elad12390/mcp-server-langfuse","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@elad12390/mcp-server-langfuse","version":"0.1.0","keywords":["langfuse","model-context-protocol","prompt","management"],"author":{"name":"Elad Ben-Haim"},"license":"MIT","_id":"@elad12390/mcp-server-langfuse@0.1.0","maintainers":[{"name":"elad12390","email":"elad12390+npm@gmail.com"}],"homepage":"https://github.com/elad12390/mcp-server-langfuse#readme","bugs":{"url":"https://github.com/elad12390/mcp-server-langfuse/issues"},"bin":{"mcp-server-langfuse":"build/index.js"},"dist":{"shasum":"46dec18f7da95b32133da73ab6fd61d92825f728","tarball":"https://registry.npmjs.org/@elad12390/mcp-server-langfuse/-/mcp-server-langfuse-0.1.0.tgz","fileCount":5,"integrity":"sha512-7Qsd9P1OU30puD8HQsItpDD8AXIMa35zW0PvyFn/T1COP36Wpyf5t2fzEBGEOlFX2kq8WPg1ExEZiY+20rcfbg==","signatures":[{"sig":"MEYCIQC0VVWMzueQzfKf6D+D8rmcnvIIe0m4hLTctuNAlWnEswIhAKpZVC66kTUvO2Lz6eyrgVmxB9oBKXcHkD2ku2V/DICA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31369},"main":"index.js","type":"module","gitHead":"69a1a31b12603ff7c4d368a13e4f40468cc18c6c","scripts":{"build":"tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"","deploy":"npm run build && npm publish --access public","prepare":"npm run build"},"_npmUser":{"name":"elad12390","email":"elad12390+npm@gmail.com"},"repository":{"url":"git+https://github.com/elad12390/mcp-server-langfuse.git","type":"git"},"_npmVersion":"11.6.1","description":"A MCP Server for Langfuse Prompt Management","directories":{},"_nodeVersion":"24.11.0","dependencies":{"zod":"^3.24.2","langfuse":"^3.35.2","@modelcontextprotocol/sdk":"^1.5.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.7.3","@types/node":"^22.13.4"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server-langfuse_0.1.0_1764082613010_0.7353663830544528","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@elad12390/mcp-server-langfuse","version":"0.1.1","keywords":["langfuse","model-context-protocol","prompt","management"],"author":{"name":"Elad Ben-Haim"},"license":"MIT","_id":"@elad12390/mcp-server-langfuse@0.1.1","maintainers":[{"name":"elad12390","email":"elad12390+npm@gmail.com"}],"homepage":"https://github.com/elad12390/mcp-server-langfuse#readme","bugs":{"url":"https://github.com/elad12390/mcp-server-langfuse/issues"},"bin":{"mcp-server-langfuse":"build/index.js"},"dist":{"shasum":"b12434473f9ee934bd96a269bab0da89aacf6a20","tarball":"https://registry.npmjs.org/@elad12390/mcp-server-langfuse/-/mcp-server-langfuse-0.1.1.tgz","fileCount":5,"integrity":"sha512-QlNn7gWZseyYwm3ucqmqe83DDnBtGRiXgagiRfwhqxlTbH5HFFWZPGtA0bGd/pqaBpNZiP/2mfaUA7utq8nK0w==","signatures":[{"sig":"MEQCICrN5wL2Fz7tCPkux6GSuEfh5C7EyhvewRyNzPWL8ZxUAiBySCEDcnDUSQbsGvZxIOHnoWXFZWwc8+JAyfLzOb3F6g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31663},"main":"index.js","type":"module","gitHead":"9e36a4975d58f04a96c42fa140b77cf0d5a0763a","scripts":{"build":"tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"","deploy":"npm run build && npm publish --access public","prepare":"npm run build"},"_npmUser":{"name":"elad12390","email":"elad12390+npm@gmail.com"},"repository":{"url":"git+https://github.com/elad12390/mcp-server-langfuse.git","type":"git"},"_npmVersion":"11.6.1","description":"A MCP Server for Langfuse Prompt Management","directories":{},"_nodeVersion":"24.11.0","dependencies":{"zod":"^3.24.2","langfuse":"^3.35.2","@modelcontextprotocol/sdk":"^1.5.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.7.3","@types/node":"^22.13.4"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server-langfuse_0.1.1_1764083570640_0.40560191027052883","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@elad12390/mcp-server-langfuse","version":"0.1.2","keywords":["langfuse","model-context-protocol","prompt","management"],"author":{"name":"Elad Ben-Haim"},"license":"MIT","_id":"@elad12390/mcp-server-langfuse@0.1.2","maintainers":[{"name":"elad12390","email":"elad12390+npm@gmail.com"}],"homepage":"https://github.com/elad12390/mcp-server-langfuse#readme","bugs":{"url":"https://github.com/elad12390/mcp-server-langfuse/issues"},"bin":{"mcp-server-langfuse":"build/index.js"},"dist":{"shasum":"1fa4b5751dd78c9f9d60eddb8b959699f02b663b","tarball":"https://registry.npmjs.org/@elad12390/mcp-server-langfuse/-/mcp-server-langfuse-0.1.2.tgz","fileCount":5,"integrity":"sha512-YEuSFLWG3hujD6CtHTlluu855vimdtCgs3dkx8J/uKQ2+sw9KOJ1UKECPkXLfH34ZfZWRmWndfJSyzPbKoHp8g==","signatures":[{"sig":"MEYCIQCB8VK6tdNhAG4IIlGev7YSPeKNPKu1oLz0Bu3Uo/yciwIhALL60kbWVOUyZ354k+IRBlsyECWVPSt59aQb0ciRaZzE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34420},"main":"index.js","type":"module","gitHead":"f3f4f315b42aa6b05a46f96cc5a78b67fd095ad5","scripts":{"build":"tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"","deploy":"npm run build && npm publish --access public","prepare":"npm run build"},"_npmUser":{"name":"elad12390","email":"elad12390+npm@gmail.com"},"repository":{"url":"git+https://github.com/elad12390/mcp-server-langfuse.git","type":"git"},"_npmVersion":"11.6.1","description":"A MCP Server for Langfuse Prompt Management","directories":{},"_nodeVersion":"24.11.0","dependencies":{"zod":"^3.24.2","langfuse":"^3.35.2","@modelcontextprotocol/sdk":"^1.5.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.7.3","@types/node":"^22.13.4"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server-langfuse_0.1.2_1764513083915_0.43113046923445997","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@elad12390/mcp-server-langfuse","version":"0.1.3","description":"A MCP Server for Langfuse Prompt Management","main":"index.js","type":"module","bin":{"mcp-server-langfuse":"build/index.js"},"scripts":{"build":"tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"","prepare":"npm run build","deploy":"npm run build && npm publish --access public"},"dependencies":{"@modelcontextprotocol/sdk":"^1.5.0","langfuse":"^3.35.2","zod":"^3.24.2"},"devDependencies":{"@types/node":"^22.13.4","typescript":"^5.7.3"},"repository":{"type":"git","url":"git+https://github.com/elad12390/mcp-server-langfuse.git"},"keywords":["langfuse","model-context-protocol","prompt","management"],"author":{"name":"Elad Ben-Haim"},"license":"MIT","gitHead":"b466cd93f37e7dbdf7fcd8f8cecd50cc92c7682f","_id":"@elad12390/mcp-server-langfuse@0.1.3","bugs":{"url":"https://github.com/elad12390/mcp-server-langfuse/issues"},"homepage":"https://github.com/elad12390/mcp-server-langfuse#readme","_nodeVersion":"24.11.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-eVoGWyyax9UkAraOjn+cQ12qaYg8MfVmlsD3goRqZ14uXg220RR+N9SXQt38VvcpKvtVTFhdxY5Gh4Bwt0aBzQ==","shasum":"6bc0a17e8dc3f4d717c55a9c865a59bf6b0fb9cb","tarball":"https://registry.npmjs.org/@elad12390/mcp-server-langfuse/-/mcp-server-langfuse-0.1.3.tgz","fileCount":5,"unpackedSize":39122,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDqoIBp4gYdPnTRXZF4ucwrJqglcW4my1xQ1zRysY7wOQIgEqCSjPeDnolXxrn/zNxsLEvl6SSPiicbrVzGt3ahSpI="}]},"_npmUser":{"name":"elad12390","email":"elad12390+npm@gmail.com"},"directories":{},"maintainers":[{"name":"elad12390","email":"elad12390+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-server-langfuse_0.1.3_1764513601032_0.4848872460296936"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-25T14:56:52.938Z","modified":"2025-11-30T14:40:01.467Z","0.1.0":"2025-11-25T14:56:53.188Z","0.1.1":"2025-11-25T15:12:50.851Z","0.1.2":"2025-11-30T14:31:24.121Z","0.1.3":"2025-11-30T14:40:01.242Z"},"bugs":{"url":"https://github.com/elad12390/mcp-server-langfuse/issues"},"author":{"name":"Elad Ben-Haim"},"license":"MIT","homepage":"https://github.com/elad12390/mcp-server-langfuse#readme","keywords":["langfuse","model-context-protocol","prompt","management"],"repository":{"type":"git","url":"git+https://github.com/elad12390/mcp-server-langfuse.git"},"description":"A MCP Server for Langfuse Prompt Management","maintainers":[{"name":"elad12390","email":"elad12390+npm@gmail.com"}],"readme":"# `@elad12390/mcp-server-langfuse`\n\nA tool that lets AI assistants (like Claude or Cursor) manage your prompt library stored in [Langfuse](https://langfuse.com).\n\n**What are prompts?** Prompts are the instructions you give to AI models. Instead of writing them directly in your code, you can store them in Langfuse and manage them like documents - with versions, drafts, and the ability to update them without changing your code.\n\n```bash\nnpx -y @elad12390/mcp-server-langfuse  # requires LANGFUSE_* env vars\n```\n\n---\n\n## What Can You Do?\n\n| Tool | What it does |\n| ---- | ------------ |\n| `get-prompts` | List all your saved prompts |\n| `get-prompt` | Get the exact content of a prompt (with all `{{variables}}` intact) |\n| `edit-prompt` | Create or update a prompt. Set `publish=true` to make it live immediately |\n| `publish-prompt` | Mark a draft version as \"production\" (live) |\n| `list-prompt-versions` | See all versions of a prompt |\n| `search-prompts` | Find prompts by name, label, or tag |\n| `validate-prompt` | Check a prompt for syntax errors before saving |\n| `diff-prompt` | Preview what will change BEFORE you edit (compare new content vs current production) |\n| `compare-versions` | See differences between any two versions |\n| `rollback-prompt` | Go back to an older version if something breaks |\n\n---\n\n## Quick Start\n\n```bash\n# 1. Set your Langfuse credentials\nexport LANGFUSE_PUBLIC_KEY=\"pk-...\"\nexport LANGFUSE_SECRET_KEY=\"sk-...\"\nexport LANGFUSE_BASEURL=\"https://cloud.langfuse.com\"   # optional\n\n# 2. Run it\nnpx -y @solaraai/mcp-server-langfuse\n```\n\n### Example: Add to Cursor\n\nAdd this to your MCP config:\n\n```jsonc\n{\n  \"mcpServers\": {\n    \"langfuse-prompts\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@solaraai/mcp-server-langfuse\"],\n      \"env\": {\n        \"LANGFUSE_PUBLIC_KEY\": \"pk-...\",\n        \"LANGFUSE_SECRET_KEY\": \"sk-...\",\n        \"LANGFUSE_BASEURL\": \"https://cloud.langfuse.com\"\n      },\n      \"transportType\": \"stdio\"\n    }\n  }\n}\n```\n\n---\n\n## Common Workflows\n\n### 1. View a prompt exactly as stored\n```\nget-prompt name=\"support/greeting\"\n```\nReturns the raw content with all `{{variables}}` intact - perfect for reviewing and editing.\n\n### 2. Edit and publish in one step\n```\nedit-prompt name=\"support/greeting\" prompt=\"...\" publish=true\n```\nCreates a new version AND marks it as production immediately.\n\n### 3. Safe editing workflow (recommended)\n```\n# First, see what will change\ndiff-prompt name=\"support/greeting\" newPrompt=\"...\"\n\n# If it looks good, save it\nedit-prompt name=\"support/greeting\" prompt=\"...\" publish=true\n```\n\n### 4. Something went wrong? Roll back\n```\n# See what versions exist\nlist-prompt-versions name=\"support/greeting\"\n\n# Compare current vs old version\ncompare-versions name=\"support/greeting\" version1=3 version2=2\n\n# Roll back to version 2\nrollback-prompt name=\"support/greeting\" targetVersion=2\n```\n\n---\n\n## Development\n\n```bash\ngit clone https://github.com/solaraai/mcp-server-langfuse\ncd mcp-server-langfuse\nnpm install\nnpm run build\n\n# Run locally\nLANGFUSE_PUBLIC_KEY=... node ./build/index.js\n```\n\n---\n\n## Notes\n\n- `get-prompt` returns raw content with `{{variables}}` - it does NOT substitute values\n- Every edit creates a new version - you never lose previous work\n- Use `diff-prompt` before editing to review changes\n- Only prompts labeled \"production\" show up in `get-prompts` (use `search-prompts` to find drafts)\n\nQuestions? Open an issue!\n","readmeFilename":"README.md"}