Basic MCP Server Tool
by burrsutter
This is a basic MCP (Model-as-Code Platform) server tool. It allows you to interact with language models like OpenAI's GPT using a command-line interface.
View on GitHub
Last updated: N/A
Basic MCP Server Tool
Packaging and running the application
The application can be packaged using:
git clone this repository
./mvnw install
jbang provides the CLI execution
brew install jbang
mcp-cli
git clone https://github.com/chrishayuk/mcp-cli
brew install uv
cd mcp-cli
uv sync --reinstall
Create env var for OPENAI_API_KEY (note: it is much longer)
https://platform.openai.com/api-keys
export OPENAI_API_KEY=sk-proj-GzT9guXBFr7lee1m_blah
Edit server_config.json
{
"mcpServers": {
"burrhello": {
"command": "jbang",
"args": [
"--java",
"21",
"--quiet",
"org.acme:basic-tool:1.0.0-SNAPSHOT:runner"
]
}
}
}
uv run mcp-cli --server burrhello --provider openai --model gpt-4o-mini