Hacker News new | ask | show | jobs
by metadat 312 days ago
The skip-to-the-end answer: Context7 MCP is so good it seems like magic, even to many well-informed, highly capable hackers. Simply wildly good for libraries and SDKs. All it takes to start using it is to add the MCP provider to your agent config and save your arms, "Use Context7 for this".

https://context7.com/

2 comments

I'm confused a bit by this. For instance, Gemini was struggling to write proper Java code for using Firebase Admin SDK. It would write Java code using methods that only exist in the JavaScript SDK. And when I would correct it, it would give other options that also were only in the JavaScript SDK or were invalid.

So I thought this is where context7 would be useful, but I'm confused what I'm looking at in the detail page: https://context7.com/firebase/firebase-admin-java

I was expecting some sort of dump of all the admin methods, but it gives a single example of one library function and info on how to build javadoc.

You're looking at a summary for chunks of code that are relevant to the given library. If you type what specifically you need documentation for and adjust output token count, it will give LLM relevant fragments.

It lets you emulate RAG.

I think the main problem is that the source GP is using, https://github.com/firebase/firebase-admin-java, contained almost nothing that context7 extracted as "docs".

It looks like https://firebase.google.com/docs/ is being refreshed as I type this, I imagine that using that as a source and including "Java" in the topic filter might give more results (or maybe the https://github.com/firebase/firebase-docs has the same content).

What is the best approach to have something like context7 for internal tools and libraries?
context7 is open source: https://github.com/upstash/context7