Skip to content

Expand Context7 library configuration - #6963

Merged
danbarr merged 2 commits into
mainfrom
expand-context7-config
Oct 27, 2026
Merged

danbarr merged 2 commits into
mainfrom
expand-context7-config

Conversation

@danbarr

@danbarr danbarr commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

The Context7 library for ToolHive is now claimed, but it's indexed with default settings. That pulls in proposals, test fixtures, and agent config, and gives no guidance on how to use ToolHive. This expands context7.json so the index is more useful to people who query it.

  • Add a project title and description
  • Exclude docs/proposals, test, .claude, archive/deprecated/legacy folders, and CLAUDE.md, CHANGELOG.md, LICENSE.md and CODE_OF_CONDUCT.md
  • Add usage rules covering the thv install commands, the thv serve requirement for skill and plugin commands, the CRD and operator Helm chart install order and API version, secret handling, and a pointer to docs.stacklok.com/toolhive

Type of change

  • Other (describe): Expand Context7 configuration

Test plan

  • Manual testing (describe below)

Confirmed context7.json parses as valid JSON. Checked the usage rules against the code and docs: the thv skill and thv ai-plugin commands exist and hint to run thv serve when the server is unreachable, the API group and version is toolhive.stacklok.dev/v1beta1, the toolhive-operator-crds and toolhive-operator charts exist, thv secret set exists, and the brew and winget install commands match the install docs. The effect on the Context7 index can only be seen after merge.

Does this introduce a user-facing change?

No

🤖 Generated with Claude Code

Add a project title, description, exclusion lists, and usage rules so
Context7 indexes the relevant docs and gives accurate guidance for
ToolHive.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@danbarr
danbarr requested a review from JAORMX as a code owner October 27, 2026 17:54
@github-actions github-actions Bot added the size/XS Extra small PR: < 100 lines changed label Oct 27, 2026
@danbarr
danbarr requested a balanced review from Copilot October 27, 2026 17:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The Kubernetes guidance needs an API-version exception to avoid directing users toward invalid webhook manifests.

1 open issue
What changed in this PR

This PR refines ToolHive’s Context7 configuration to improve indexed content and provide practical usage guidance.

Changes:

  • Add a schema reference, project title, and description.
  • Exclude proposals, tests, agent configuration, and legacy or administrative content.
  • Add guidance for CLI installation, API-backed commands, Kubernetes setup, and credential handling.
File Description
context7.json Expands project metadata, indexing exclusions, and usage rules.

Review effort: Balanced

Comment thread context7.json Resolved
@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.14%. Comparing base (d6bffea) to head (9c2db54).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6963   +/-   ##
=======================================
  Coverage   80.14%   80.14%           
=======================================
  Files         845      845           
  Lines       85715    85715           
=======================================
+ Hits        68696    68700    +4     
+ Misses      17014    17010    -4     
  Partials        5        5           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

MCPWebhookConfig is only served as v1alpha1, so the blanket v1beta1
rule would produce invalid webhook manifests. Note the exception.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions github-actions Bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Oct 27, 2026
@danbarr
danbarr merged commit a993574 into main Oct 27, 2026
46 checks passed
@danbarr
danbarr deleted the expand-context7-config branch October 27, 2026 20:11
@github-actions github-actions Bot mentioned this pull request Oct 28, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants