Used to create a multi-tool MCP server that can host multiple tools in a single endpoint
Integrates with GitHub's remote MCP server in public preview, allowing users to register and use remote tools on GitHub's cloud MCP platform
Provides a chat interface for interacting with the MCP agent tools
Enables running local language models through Ollama to power the agent capabilities
Provides tools for calculations and string manipulation through Python functions exposed as MCP tools
🧠 Agent with MCP Tools and Ollama (Codespaces Ready)
This project demonstrates how to use smolagents
, mcp
, and Ollama
in GitHub Codespaces, and how to integrate with GitHub's remote MCP server (public preview).
Lab 1: Use Local MCP Inspector in Codespaces
✅ Setup
- Open this repo in GitHub Codespaces
- Ensure
.devcontainer
builds the container withOllama
and Python dependencies - In terminal:
- MCP Inspector UI at:
http://localhost:6274
- SSE endpoint at:
http://localhost:6277/sse
✅ Test Agent via CLI
✅ Or Use Chat UI
Lab 2: Use GitHub’s New Remote MCP Server (Public Preview)
🆕 As of June 12, 2025, you can register and use remote tools on GitHub’s cloud MCP platform.
🛠 Steps
- Install latest
mcp
CLI:
- Register your tool with GitHub’s MCP cloud server:
- Start agent with remote tools:
- Run the CLI agent or Gradio app as usual
🔁 Lab 3: Add a Second Tool (Reverse String)
This lab shows how to add another tool to the MCP Inspector workflow.
✅ Setup
Create reverse_string.py
:
Then launch it:
Update your test agent or Gradio interface to prompt:
"Reverse the string 'hello world'"
🧠 The LLM will choose the appropriate tool via schema-based reasoning.
🎁 Bonus: Multi-Tool MCP Server
Instead of running individual tools, you can host multiple tools in a single server using FastMCP.
✅ Setup
Create a file multi_tool_server.py
:
Run it with:
Then connect your agent to:
Now you can access both tools from one endpoint!
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A cloud platform for registering and using remote tools with GitHub's MCP service, enabling agents to access registered tools through SSE endpoints.
Related MCP Servers
- -securityFlicense-qualityAn MCP server that enables Claude and other compatible LLMs to interact with the GitHub API, supporting features like creating issues, retrieving repository information, listing issues, and searching repositories.Last updated -TypeScript
- -security-license-qualityAn MCP server that allows Claude and other MCP-compatible LLMs to interact with the GitHub API, supporting features like creating issues, getting repository information, listing issues, and searching repositories.Last updated -TypeScript
- -securityFlicense-qualityProvides tools for interacting with GitHub's API through the MCP protocol, allowing users to create repositories, push content, and retrieve user information.Last updated -JavaScript
- -securityAlicense-qualityA free, open-source service that transforms GitHub projects into MCP endpoints, enabling AI assistants to access and understand project documentation without any setup.Last updated -2,823TypeScriptApache 2.0