frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Markdown Rules MCP Server – The Portable Alternative to Cursor Rules

https://github.com/valstro/markdown-rules-mcp
2•dannychickenegg•22h ago
Hey HN,

I've built Markdown Rules MCP Server (https://github.com/valstro/markdown-rules-mcp).

I was frustrated when writing extensive Cursor rules for our large and bespoke codebase. Cursor frequently failed or inconsistently followed multiple links inside its .mdc files to other relevant documentation and live code examples. Our codebase has many internal libraries and tools that LLMs haven't been trained on, so good context is crucial. While I spent time writing detailed Cursor rules, the results were often non-deterministic.

Additionally, as we're still trialing Cursor amongst other alternatives, I wasn't comfortable with the vendor lock-in of their proprietary .mdc file format.

So, I built this alternative. It uses regular Markdown files that live with your project. Your existing docs can work as-is, but you can enrich them with simple YAML frontmatter to support the same types of rules Cursor does (Agent Requested, Always Apply, Auto-Attached based on file globs, or available for manual inclusion). The goal is to provide consistent, reliable context to AI coding assistants, portably.

Key Features & Benefits:

Universal Compatibility: Write docs once, use them with Cursor, Claude Desktop, or any future MCP-enabled AI tool. Escape vendor lock-in.

Reliable Dependency Resolution: If your Markdown links to other files ([my lib](./lib.ts?md-link=true)), the server reliably traverses and pulls them in. This was a major pain point with other solutions.

Precision Context Control: Embed specific code snippets or sections of files directly into your Markdown context using line ranges ([config example](./config.json?md-embed=10-15)), instead of dumping entire files and creating noise.

Great for Complex/Proprietary Codebases: Specifically designed to give AI models the detailed context they need for your project's custom tooling, internal libraries, or unique architecture.

A Few Caveats/Downsides:

Potentially Large Context: Markdown Rules will diligently parse through all markdown links (?md-link=true) and embeds (e.g., ?md-embed=1-10) to include referenced content. This comprehensiveness can lead to using a significant portion of the AI's context window, especially with deeply linked documentation. However, I find this to be a necessary trade-off for providing complete context in the large, bespoke codebases this tool is designed for.

MCP Tool Invocation Variance: Occasionally, depending on the specific LLM you're using, the model might not call the tool to fetch relevant docs as consistently as one might hope without explicit prompting. This behavior can often be improved by tweaking the usage instructions in your markdown-rules.md file or by directly asking the AI to consult the docs. I've personally found Anthropic models tend to call the tool very consistently without needing explicit prompts.

This is still new, and I'd love to get some feedback, especially if you've faced similar challenges or have thoughts on these trade-offs.

Check out the GitHub repo for full installation, configuration, and examples: https://github.com/valstro/markdown-rules-mcp

Thanks!

'How come I can't breathe?': Musk's data company draws a backlash in Memphis

https://simonwillison.net/2025/Jun/12/xai-data-center/
1•diggan•1m ago•0 comments

Video Filters You've Been Lied to About Roads for 60 Years [video]

https://www.youtube.com/watch?v=CVq7XOXkg1U
1•ndsipa_pomu•3m ago•0 comments

Stripe and Substack Demand Authors' Financial Details

https://www.malone.news/p/stripe-substack-demand-financial
1•pkaeding•4m ago•0 comments

Kernel Memory Safety: Mission Accomplished

https://asterinas.github.io/2025/06/04/kernel-memory-safety-mission-accomplished.html
1•Flundstrom2•4m ago•1 comments

Climate.gov will stop publishing new content on July 1

https://text.npr.org/nx-s1-5431660
1•Improvement•4m ago•0 comments

Ask HN: How did you handle the recent Google Cloud outage with your customers?

1•boredemployee•7m ago•0 comments

Pray for Peace

1•ctrlaltq•8m ago•0 comments

When AI Says 'No'– My Encounter with Gemini

https://twitter.com/utkarsh12j/status/1933452257347113098
1•utkarshs12•8m ago•1 comments

What Is AI Data Analyst?

https://mljar.com/blog/what-is-ai-data-analyst/
1•pplonski86•16m ago•0 comments

Comingle: an app founded on the principles of Universal Basic Income

https://www.comingle.us/
2•aziaziazi•16m ago•1 comments

Corporations as Paperclip Maximizers

https://www.lesswrong.com/posts/b8v6AxbNGQvH8nxGC/corporations-as-paperclip-profit-maximizers
1•busssard•18m ago•1 comments

Show HN: Timerge – Smart, effortless break reminder for macOS

https://likang.dev/timerge/
1•kang_li•19m ago•0 comments

Show HN: AidedBio – A Bioprocess Digital Twin Prototype

https://github.com/daniele-casati/AidedBio
1•dcasati•20m ago•0 comments

Atom-thin tech replaces silicon in the first 2D computer

https://www.sciencedaily.com/releases/2025/06/250612031705.htm
1•mtts•22m ago•0 comments

Show HN: Open-source 3B param model better than Mistral OCR

https://nanonets.com/research/nanonets-ocr-s/
3•PixelPanda•25m ago•0 comments

They Asked an A.I. Chatbot Questions. The Answers Sent Them Spiraling

https://www.nytimes.com/2025/06/13/technology/chatgpt-ai-chatbots-conspiracies.html
2•cainxinth•25m ago•0 comments

The world must escape the manufacturing delusion

https://www.economist.com/leaders/2025/06/12/the-world-must-escape-the-manufacturing-delusion
2•bookofjoe•29m ago•1 comments

Audio stream across network to remote Raspberry Pi from Pipewire to PulseAudio

http://serendipity.ruwenzori.net/index.php/2025/06/13/audio-stream-across-network-to-remote-raspberry-pi-from-pipewire-to-pulseaudio
2•liotier•30m ago•0 comments

How was the wheel invented? Computer simulations reveal its unlikely birth

https://theconversation.com/how-was-the-wheel-invented-computer-simulations-reveal-the-unlikely-birth-of-a-world-changing-technology-nearly-6-000-years-ago-244038
1•russfink•31m ago•1 comments

Chicago's Refusal to Deal with Its Nearly Empty Schools

https://www.propublica.org/article/chicago-public-schools-enrollment-costs
1•sea-gold•31m ago•0 comments

Show HN: I tried Xcode 26 AI Coding Assistance on a real iOS app [video]

https://www.youtube.com/watch?v=y5JW2iOUtXY
1•EtishaGarg•32m ago•1 comments

The future of infrastructure is invisible

https://blog.antimetal.com/p/the-future-of-infrastructure-is-invisible
1•sunilkumardash9•34m ago•0 comments

Final Cut Pro plus Golang: Using cutlass with FCPXML Templates [video]

https://www.youtube.com/watch?v=V9r_Ihl0Tyc
1•andrewfromx•39m ago•0 comments

Ask HN: How do you promote your Chrome extensions (on a budget or not)?

2•ForgedLabsJames•40m ago•2 comments

Live log and prosper: Elasticsearch newly specialized logsdb index mode

https://www.elastic.co/search-labs/blog/elasticsearch-logsdb-index-mode
1•geoffbp•43m ago•0 comments

Voronoi, Hashing and OSL

https://aras-p.info/blog/2025/06/13/Voronoi-Hashing-and-OSL/
1•ibobev•44m ago•0 comments

Phoenix contexts are simpler than you think

https://arrowsmithlabs.com/blog/phoenix-contexts-are-simpler-than-you-think
1•amalinovic•45m ago•0 comments

Batch mapper in RailsEventStore – how initial idea evolved into feature

https://blog.arkency.com/batch-mapper-in-railseventstore-how-initial-idea-evolved-into-experimental-feature/
1•unripe_syntax•48m ago•0 comments

Value Sense: Hedge fund-quality analytics platform

https://valuesense.io
1•MatveySecured•49m ago•0 comments

OpenAI Legal Issues: Data Retention After Chat Deletion

https://hackernoon.com/openai-data-retention-court-order-implications-for-everybody
3•Aninay•50m ago•0 comments