k8s_contexts_resources

command module
v0.0.0-...-88b0500 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 14 Imported by: 0

README

K8s Contexts Resources Example

This example demonstrates how MCP resource could be defined using Foxy Contexts library.

Further assumes that you have installed Golang and (only for inspector) - Node.js.

Trying with inspector

To try this example with inspector, run the following command:

npx @modelcontextprotocol/inspector go run main.go

Then in browser open http://localhost:5173 , then click Connect , then click List Resources , you should see list of contexts and could click on them to see details

Trying with Claude

Firstly you would need to run in this folder:

go install

Now in your Claude Desktop configuration file add the following:

{
    "mcpServers": {
        "list_k8s_resources_example": {
            "command": "k8s_contexts_resources",
            "args": []
        }
    }
}

Now when you run Claude Desktop, you should see attachment button that would allow you to use k8s context as message attachment.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL