Add opt-in documentation discovery (llms.txt) to the MCP server - #217
Merged
Merged
Conversation
…for Data Commons API queries
… using MCP tools for statistical research
rohitkumarbhagat
had a problem deploying
to
evals-and-secrets
September 1, 2026 12:08 — with
GitHub Actions
Failure
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces the option to expose the official Data Commons documentation resource, controlled by the new DC_ENABLE_DOCUMENTATION_RESOURCE setting. When enabled, the server registers a documentation index resource and appends a routing hint to the server instructions. The feedback recommends moving the requests import from the module level to inside the registration function to defer loading and keep server startup fast when the feature is disabled.
rohitkumarbhagat
had a problem deploying
to
evals-and-secrets
September 9, 2026 08:23 — with
GitHub Actions
Error
rohitkumarbhagat
had a problem deploying
to
evals-and-secrets
September 9, 2026 08:30 — with
GitHub Actions
Error
keyurva
reviewed
Sep 9, 2026
rohitkumarbhagat
had a problem deploying
to
evals-and-secrets
September 14, 2026 13:18 — with
GitHub Actions
Error
keyurva
approved these changes
Sep 14, 2026
keyurva
left a comment
Contributor
There was a problem hiding this comment.
Thanks Rohit! Consider whether we need the server flag. LGTM otherwise.
rohitkumarbhagat
had a problem deploying
to
evals-and-secrets
September 15, 2026 02:39 — with
GitHub Actions
Error
Contributor
Author
Thanks Keyur. Removed server side flag. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add optional, client-controlled guidance for discovering Data Commons documentation through llms.txt.
The guidance directs clients to read the index for API, library, schema, dataset coverage, concept, and integration questions, then follow only relevant documentation links. Statistical queries continue to use the existing MCP tools and skills.
Configuration
Documentation guidance is disabled by default, including autopush.
DC_ENABLE_DOCUMENTATIONsets the server default and configures stdio deployments.X-DC-Enable-Documentation: trueorfalse.Disabling the feature omits the guidance; it does not restrict access to public documentation.
Implementation
server.mdunchanged.doc_instructions_extension.md, overridable throughDC_INSTRUCTIONS_DIR.DCApp.The direct-link approach avoids resource registration and filtering because clients already need URL-reading capability to access the linked documentation.
FastMCP remains pinned to
3.4.2. The isolated private session-options dependency is documented and covered by initialization tests.Validation