Skip to content
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

PoC: Model ContextProtocol #10

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
41 changes: 26 additions & 15 deletions continue-config.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
{
"models": [
{
"title": "On-prem Llama3-8b",
"model": "llama3:8b",
"apiBase": "http://localhost:11434",
"provider": "ollama"
}
],
"tabAutocompleteModel": {
"title": "Starcoder2 3b",
"provider": "ollama",
"model": "starcoder2:3b"
},
"allowAnonymousTelemetry": false
}
"models": [
{
"title": "On-prem Llama3-8b",
"model": "llama3:8b",
"apiBase": "http://localhost:11434",
"provider": "ollama"
}
],
"tabAutocompleteModel": {
"title": "Starcoder2 3b",
"provider": "ollama",
"model": "starcoder2:3b"
},
"allowAnonymousTelemetry": false,
"experimental": {
"modelContextProtocolServers": [
{
"transport": {
"type": "stdio",
"command": "npx",
"args": ["-y", "kubernetes-mcp-server@latest"]
}
}
]
}
}
15 changes: 8 additions & 7 deletions devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@ metadata:
generateName: cde-ollama-continue
attributes:
controller.devfile.io/storage-type: ephemeral
projects:
- name: cde-ollama-continue
git:
remotes:
origin: 'https://github.com/redhat-developer-demos/cde-ollama-continue'
checkoutFrom:
revision: main
components:
- name: udi
container:
Expand Down Expand Up @@ -45,6 +38,13 @@ commands:
exec:
component: ollama
commandLine: "ollama pull starcoder2:3b"
- id: trust-quarkus-mcp-servers
exec:
label: "Trust Quarkus MCP Servers"
component: udi
commandLine: |
source $HOME/.bashrc && jbang trust add https://github.com/quarkiverse/quarkus-mcp-servers/
workingDir: ${PROJECT_SOURCE}
- id: copyconfig
exec:
component: udi
Expand All @@ -53,4 +53,5 @@ events:
postStart:
- pullmodel
- pullautocompletemodel
- trust-quarkus-mcp-servers
- copyconfig