-
Notifications
You must be signed in to change notification settings - Fork 0
Skip registry ingestion in k8s mode and add Kubernetes deployment examples #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
82c8cd9
thv group investigation
therealnb 3c87fb4
Example tweaks
therealnb d6ef090
Skip registry if in k8s mode
therealnb 5444b3e
URL normalization for streamable-http transport
therealnb 66aaebb
Update ToolHive API models (#92)
stackloke2e 87cbf7f
chore(deps): update actions/checkout action to v6 (#77)
renovate[bot] 533f5bc
chore(deps): update peter-evans/create-pull-request action to v7.0.9 …
renovate[bot] e47667f
chore(deps): update docker/metadata-action action to v5.10.0 (#87)
renovate[bot] a6c87eb
Update renovate.json to bump pyproject.toml dependencies (#93)
aponcedeleonch 45c2261
Fix formatting issues
therealnb 340b000
Fix URL normalization to avoid double-adding /mcp
therealnb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| #!/bin/bash | ||
| # Apply all MCP server examples to Kubernetes cluster | ||
|
|
||
| set -e | ||
|
|
||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| EXAMPLES_DIR="${SCRIPT_DIR}" | ||
|
|
||
| echo "Applying MCP server examples..." | ||
| echo "" | ||
|
|
||
| # Check if kubectl is available | ||
| if ! command -v kubectl &> /dev/null; then | ||
| echo "Error: kubectl is not installed or not in PATH" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Check if namespace exists | ||
| if ! kubectl get namespace toolhive-system &> /dev/null; then | ||
| echo "Creating toolhive-system namespace..." | ||
| kubectl create namespace toolhive-system | ||
| fi | ||
|
|
||
| # Check if GitHub secrets exist, prompt to create if not | ||
| echo "Checking for GitHub secrets..." | ||
| if ! kubectl get secret ghcr-pull-secret -n toolhive-system &> /dev/null; then | ||
| echo " Warning: ghcr-pull-secret does not exist" | ||
| echo " Images from ghcr.io may fail to pull without this secret" | ||
| echo " Create it with:" | ||
| echo " export GITHUB_TOKEN=your_token_here" | ||
| echo " export GITHUB_USERNAME=your_username" | ||
| echo " ./examples/mcp-servers/create-github-secrets.sh" | ||
| echo " Continuing anyway..." | ||
| else | ||
| echo " ✓ ghcr-pull-secret found" | ||
| fi | ||
|
|
||
| if ! kubectl get secret github-token -n toolhive-system &> /dev/null; then | ||
| echo " Warning: github-token secret does not exist" | ||
| echo " GitHub MCP servers may fail without this secret" | ||
| echo " Create it with:" | ||
| echo " export GITHUB_TOKEN=your_token_here" | ||
| echo " export GITHUB_USERNAME=your_username" | ||
| echo " ./examples/mcp-servers/create-github-secrets.sh" | ||
| echo " Continuing anyway..." | ||
| else | ||
| echo " ✓ github-token found" | ||
| fi | ||
|
|
||
| # Apply shared ServiceAccount with imagePullSecrets | ||
| echo "" | ||
| echo "Applying shared-serviceaccount.yaml..." | ||
| kubectl apply -f "${EXAMPLES_DIR}/shared-serviceaccount.yaml" | ||
|
|
||
| # Apply MCP servers | ||
| echo "" | ||
| echo "Applying MCP servers..." | ||
| kubectl apply -f "${EXAMPLES_DIR}/mcpserver_fetch.yaml" | ||
| kubectl apply -f "${EXAMPLES_DIR}/mcpserver_github.yaml" | ||
| kubectl apply -f "${EXAMPLES_DIR}/mcpserver_toolhive-doc-mcp.yaml" | ||
| kubectl apply -f "${EXAMPLES_DIR}/mcpserver_mcp-optimizer.yaml" | ||
|
|
||
| echo "" | ||
| echo "✓ Applied all MCP server examples!" | ||
| echo "" | ||
| echo "Check status with: kubectl get mcpservers -n toolhive-system" | ||
| echo "Check pods with: kubectl get pods -n toolhive-system" | ||
|
|
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these updates coming from a rebase? not sure why they're showing in the diff..