Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Singularity – design a data model, get the REST API and the MCP server (github.com/dantesabatier)
    —discuss
  2. Show HN: Squidbrake – self-hosted approval gateway for AI agent tool calls (github.com/batrapulkit)
    —discuss
  3. Enforce positive security with Cloudflare Application Profiles (cloudflare.com)
    —discuss
  4. Bootstrapping an Infrastructure [pdf] (usenix.org)
    —discuss
  5. Author Dropped from Literary Prize over AI Allegations (plagiarismtoday.com)
    —discuss
  6. Nvidia Donates $12,000 to the Perl and Raku Foundation (perl.com)
    —discuss
  7. TLA+ helped us fix and10 issues in our OSS project (github.com/desplega-ai)
    1comments
  8. People building AI think it might kill everyone. Hear from them directly. (frominside.ai)
    —discuss
  9. Ciao, Control coding agents from your phone (apps.apple.com)
    1comments
  10. SlopOne: Winning the code quality fight with Jev (qlty.sh)
    —discuss
  11. Have we reached peak Markdown? (strata.space)
    —discuss
  12. Does software performance still matter? (lemire.me)
    —discuss
  13. AI: Igniting the Spark to End Stagnation (lemire.me)
    —discuss
  14. Antifragile Programming and Why AI Won't Steal Your Job (lemire.me)
    —discuss
  15. Fallout: New York (fallout.nyc)
    —discuss
  16. Weapons of Mass Decentralization (worksinprogress.co)
    —discuss
  17. LeRebot So-101 Crash Course (medium.com/rob.bercik)
    —discuss
  18. Show HN: Postgres MCP server with a context file the agent can add to (github.com/contextflo)
    1comments
  19. PocketCI – Monitor your CircleCI builds from your iPhone (apps.apple.com)
    —discuss
  20. Neoserver – A multi-workspace geospatial server in Go (neoserver.cloud)
    —discuss
  21. Hacking SimCity 2000 saved games (schemescape.com)
    —discuss
  22. Mercedes-Benz wants employees in the office four days a week (marketscreener.com)
    1comments
  23. Book of Shapes – Collection of minimal, generative and customizable SVG-patterns (bookofshapes.com)
    —discuss
  24. Claude suddenly stopped cheating – Drone Bench (twitter.com/lukaspet)
    1comments
  25. Ask HN: What new software are you using?
    —discuss
  26. Muse's Mission (manton.org)
    —discuss
  27. Show HN: Libyears – dependency debt in years, across every repo you maintain (libyears.com)
    —discuss
  28. Hydraulic RAM (wikipedia.org)
    —discuss
  29. Igalia Improving the Firefox Experience for Valve's Steam Deck (phoronix.com)
    —discuss
  30. New formulation helps RNA vaccines withstand high temperatures (news.mit.edu)
    —discuss

Show HN: Postgres MCP server with a context file the agent can add to

1 pointsby 12m agogithub.com
1 comments
6m agoHN ↗

HI HN, this is Vivek (from Contextflo). We help companies connect their AI agents to company data.

Our "connect Claude to Postgres" guide was recommending the official @modelcontextprotocol/server-postgres. It turned out to be archived with a known hole: it ran each query in a read-only transaction but accepted several statements at once, so COMMIT; DROP SCHEMA public CASCADE got through.

So we wrote a replacement. Two things are different: - Read-only is enforced in several places: the wire protocol rejects multiple statements, the transaction is read-only, the real Postgres parser checks every statement, and functions Postgres marks as having side effects are blocked. That last check came from asking Claude to break our own guards. It found pg_logical_emit_message, which writes to the WAL inside a read-only transaction. - A context file in your repo, seeded from your COMMENT ON descriptions. The agent can append what it learns ("amount is in cents", "this table only has completed orders"), so the next session starts with it. The reason to integrate context file inside the mcp connector was to have more fine control of what the agent sees (compared to agent managing its own md file). You can swap out agents any time with just mcp connection.

Would love any feedbacks on this.