ceylon-runtime 0.1.3

A Rust-based agent mesh framework for building local and distributed AI agent systems
Documentation
# MCP Tools Configuration Example

# This configuration demonstrates connecting external MCP tool servers to agents

#

# Prerequisites:

# 1. Build with mcp feature: cargo build --features mcp

# 2. Ensure MCP servers are available (npx for npm packages, or local servers)



name = "mcp-enabled-mesh"

version = "1.0"



# Agent with filesystem tools from MCP server

[[agents]]

name = "file_assistant"

model = "ollama::gemma3:latest"

system_prompt = """You are a file management assistant with access to filesystem tools.
You can read, write, and navigate files using the tools available to you."""

temperature = 0.7

max_tokens = 2048



# MCP tool sources for this agent

[[agents.mcp_tools]]

type = "stdio"

name = "filesystem"

command = "npx"

args = ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]



# Agent with multiple MCP tool sources

[[agents]]

name = "developer"

model = "ollama::gemma3:latest"

system_prompt = """You are a developer assistant with access to various tools.
Use Git tools for version control and fetch tools for web requests."""

temperature = 0.6



# Git tools

[[agents.mcp_tools]]

type = "stdio"

name = "git"

command = "npx"

args = ["-y", "@modelcontextprotocol/server-git"]



# Fetch/HTTP tools

[[agents.mcp_tools]]

type = "stdio"

name = "fetch"

command = "npx"

args = ["-y", "@modelcontextprotocol/server-fetch"]



# Agent with HTTP-based MCP server

[[agents]]

name = "api_consumer"

model = "ollama::gemma3:latest"

system_prompt = "You are an API integration assistant."



[[agents.mcp_tools]]

type = "http"

name = "custom-api"

url = "http://localhost:3000/mcp"

# auth_token = "${MCP_AUTH_TOKEN}"  # Uncomment if authentication is needed



# Agent with custom Python MCP server

[[agents]]

name = "custom_tools"

model = "ollama::gemma3:latest"

system_prompt = "You have access to custom tools."



[[agents.mcp_tools]]

type = "stdio"

name = "custom-python-server"

command = "python"

args = ["-m", "my_mcp_server"]

env = [["PYTHONPATH", "./custom_tools"]]