Use Granit docs with AI assistants
Stop copy-pasting code snippets into your AI assistant. Granit exposes its entire documentation as plain-text files that any LLM can ingest in one shot — so it answers with real framework knowledge, not guesswork.
ChatGPT
Section titled “ChatGPT”- Open chatgpt.com and start a new conversation.
- Click the attachment icon and upload
llms-full.txt. - Ask your question — ChatGPT now has the full Granit documentation as context.
For repeated use, create a Custom GPT and add
https://granit-fx.dev/llms-full.txt
as a knowledge file. Every conversation will start
with Granit context built in.
Claude
Section titled “Claude”claude.ai
Section titled “claude.ai”- Open claude.ai and start a new conversation.
- Attach
llms-full.txtas a file. - Ask your question.
For repeated use, create a Claude Project and add the file as project knowledge — it stays available across all conversations in that project.
Claude Code (MCP server)
Section titled “Claude Code (MCP server)”The fastest way: install the Granit MCP server as a local .NET tool so Claude Code can search the documentation in real time — no file upload, always up to date.
- Install the tool:
Terminal window dotnet tool install --global Granit.Tools.Mcp - Add this to your project’s
.mcp.json:{"mcpServers": {"granit": {"command": "granit-tools-mcp"}}}
Claude Code now has 9 Granit tools:
| Tool | Description |
|---|---|
docs_search | Full-text search across all docs (returns ID + snippet) |
docs_get | Read full article content by ID |
docs_list_patterns | List all architecture patterns |
code_search | Search symbols across .NET and TypeScript |
code_get_api | Inspect a type’s public API surface with signatures |
code_get_graph | Project/package dependency graph |
code_list_branches | Branches with a committed code index |
nuget_list | List published Granit NuGet packages |
nuget_get | Package versions, deps, frameworks, license |
Claude Code (file context)
Section titled “Claude Code (file context)”Alternatively, add this to your project’s CLAUDE.md so
Claude Code loads Granit context as a static file:
## Granit documentation
Full framework reference:https://granit-fx.dev/llms-full.txtEvery conversation in the project will have access to the full module reference, patterns, and ADRs.
GitHub Copilot
Section titled “GitHub Copilot”Add a .github/copilot-instructions.md file to your
repository so Copilot always knows about Granit:
When answering questions about the Granit framework,refer to the full documentation at:https://granit-fx.dev/llms-full.txtThen ask Copilot Chat as usual:
@workspace How does Granit handle multi-tenancy?Other tools
Section titled “Other tools”Any LLM tool that supports the
llms.txt standard will discover
the documentation automatically from
https://granit-fx.dev/llms.txt.
For tools with smaller context windows, use the compact
version:
https://granit-fx.dev/llms-small.txt.