Skip to content

feat(epic): LLM-friendly integration with llms.txt, safe snippets, and docs MCP server (closes #86) - #159

Open
MehulSehgal wants to merge 14 commits into
sidd190:mainfrom
MehulSehgal:feat/llm-integration-epic
Open

MehulSehgal wants to merge 14 commits into
sidd190:mainfrom
MehulSehgal:feat/llm-integration-epic

Conversation

@MehulSehgal

Copy link
Copy Markdown

Summary

Closes #86
Addresses child issues #87, #88, #89, #90

Implements the complete LLM-friendly integration epic to enable AI assistants, agents, and IDE extensions (Cursor, Claude Code, GitHub Copilot, etc.) to integrate Dimsee securely and idiomatically.

Components Implemented

  1. Docs MCP Server (scripts/mcp-server.js & dimsee-docs-mcp CLI):

    • Full Model Context Protocol (MCP specification 2024-11-05) JSON-RPC server over stdio.
    • Resources: Exposes dimsee://docs/* for all markdown documentation.
    • Tools:
      • search_docs: Real-time query search across all documentation.
      • get_snippet: Direct retrieval of vetted secure snippets by ID.
      • list_snippets: Listing of all safe integration patterns.
    • Unit tests covering protocol initialization, tool invocation, resource reading, and error handling (__tests__/mcpServer.test.js).
  2. Machine-Readable Documentation (llms.txt & llms-full.txt):

    • llms.txt: Standard root index summarizing architecture, endpoints, and security rules adhering to llmstxt.org.
    • llms-full.txt: Consolidated machine-readable documentation dump for context windows.
    • Generation automation tool (scripts/generate-llms.js) and npm run docs:llms command.
  3. Vetted Secure Snippets (SECURE_SNIPPETS.md):

    • Standardized copy-paste setup patterns that are secure by construction (strict env handling, explicit middleware, HTTP-only cookie constraints, rate limiting, and Next.js guidelines).
  4. Repository Housekeeping & Integration:

    • README.md: Added badges, navigation entries, and an "AI Assistant & LLM Integration" overview.
    • CONTRIBUTING.md: Added verification requirements to the Definition of Done.
    • SECURITY.md: Cross-referenced machine-readable security policies and MCP server.
    • .npmignore: Kept published package bundle clean and lightweight.

Commits (14)

  • feat(mcp): build Model Context Protocol documentation server
  • test: add comprehensive unit test suite for Docs MCP server
  • chore(package): register mcp:docs script and dimsee-docs-mcp binary
  • docs: add root llms.txt index following the llmstxt convention
  • docs: add comprehensive llms-full.txt documentation context dump
  • docs: add SECURE_SNIPPETS.md containing copy-paste safe setup patterns
  • chore(scripts): add automated documentation generation script and npm command
  • chore(npmignore): update exclusions for llms dumps and generation scripts
  • docs(readme): add LLM integration and MCP server badges
  • docs(readme): add AI Assistant & LLM Integration entry to Table of Contents
  • docs(readme): add AI Assistant & LLM Integration guide covering llms.txt and MCP server
  • docs(contributing): add MCP server and LLM dump validation to definition of done
  • docs(security): document MCP server and snippet references in security policy
  • docs: synchronize llms.txt and llms-full.txt with updated documentation

Verification

  • npm test: All 6 test suites passed (52 tests total, 0 failed).
  • npm run lint: Clean with 0 errors and 0 warnings.
  • npm run docs:llms: Runs cleanly and matches current documentation.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 23 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d2315f27-e877-4390-b641-aab94d0824a6
Commits

Reviewing files that changed from the base of the PR and between 805e9f4 and 0d63a2a.

Files selected for processing: 11

  • .npmignore
  • CONTRIBUTING.md
  • README.md
  • SECURE_SNIPPETS.md
  • SECURITY.md
  • __tests__/mcpServer.test.js
  • llms-full.txt
  • llms.txt
  • package.json
  • scripts/generate-llms.js
  • scripts/mcp-server.js
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Epic] LLM-friendly integration (llms.txt, docs MCP, safe snippets)

1 participant