You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Access to a Kubernetes cluster via kubeconfig. You can run a cluster locally with [minikube](https://minikube.sigs.k8s.io/docs/start/).
12
12
13
-
1.Set Pulumi's backend to local: `pulumi login --local`
14
-
2.Init the local stack: `pulumi stack init local` (fine to leave `password` blank)
15
-
3.Set your config:
16
-
```bash
17
-
# General environment
18
-
pulumi config set mcp-registry:environment local
19
-
20
-
# To use your local kubeconfig (default)
21
-
pulumi config set mcp-registry:provider local
22
-
23
-
# GitHub OAuth
24
-
pulumi config set mcp-registry:githubClientId <your-github-client-id>
25
-
pulumi config set --secret mcp-registry:githubClientSecret <your-github-client-secret>
26
-
```
27
-
4. Deploy: `make local-up`
28
-
5. Access the repository via the ingress load balancer. You can find its external IP with `kubectl get svc ingress-nginx-controller -n ingress-nginx`(with minikube, if it's 'pending' you might need `minikube tunnel`). Then run `curl -H "Host: local.registry.modelcontextprotocol.io" -k https://<EXTERNAL-IP>/v0/ping` to check that the service is up.
13
+
1.Ensure your kubeconfig is configured at the cluster you want to use. For minikube, run `minikube start && minikube tunnel`.
14
+
2.Run `make local-up` to deploy the stack. Run this again if the first attempt fails.
15
+
3.Access the repository via the ingress load balancer. You can find its external IP with `kubectl get svc ingress-nginx-controller -n ingress-nginx`. Then run `curl -H "Host: local.registry.modelcontextprotocol.io" -k https://<EXTERNAL-IP>/v0/ping` to check that the service is up.
16
+
17
+
#### To change config
18
+
19
+
The stack is configured out of the box for local development. But if you want to make changes, run commands like:
20
+
21
+
```bash
22
+
PULUMI_CONFIG_PASSPHRASE="" pulumi config set mcp-registry:environment local
23
+
PULUMI_CONFIG_PASSPHRASE="" pulumi config set mcp-registry:githubClientSecret --secret <some-secret-value>
24
+
```
25
+
26
+
#### To delete the stack
27
+
28
+
`make local-destroy` and deleting the cluster (with minikube: `minikube delete`) will reset you back to a clean state.
0 commit comments