mcptry

module
v0.0.0-...-0245349 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0

README

Model Context Protocol experiments

This uses the MCP library from: https://github.com/modelcontextprotocol/go-sdk

hello: Client and Server

Build the executable myserver and place the binary in your PATH.

go build -o ~/bin/myserver ./cmd/helloServer/

Run the client:

go run ./cmd/helloClient/

Using MCP with Ollama

MCP tools are defined in jsonschema while Ollama has its onw tool definition.

cmd/ollamaTools/main.go shows how to convert MCP tools so that they are callable from Ollama.

This uses the olamtl.FromMCP function.

Directories

Path Synopsis
cmd
helloClient command
helloServer command
ollamaTools command
Package olamtl provide tools to convert mcp tools to ollama tools.
Package olamtl provide tools to convert mcp tools to ollama tools.

Jump to

Keyboard shortcuts

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