aethershell 0.3.1

The world's first multi-agent shell with typed functional pipelines and multi-modal AI
Documentation
#!/usr/bin/env ae
# MCP Server Concepts

print("šŸ”§ MCP Server Integration")
print("=" * 60)

# Filesystem MCP Server
print("\nšŸ“ Example 1: Filesystem MCP Server")
print("-" * 60)
fs_config = {
  name: "filesystem",
  type: "builtin",
  allowed_paths: ["./", "~/Documents"],
  tools: ["read_file", "write_file", "list_dir", "search_files"]
}
print("Server: ${fs_config.name}")
print("Tools: ${len(fs_config.tools)}")
fs_config.tools | each(fn(t) => print("  • ${t}"))

# Git MCP Server
print("\nšŸ”€ Example 2: Git MCP Server")
print("-" * 60)
git_config = {
  name: "git",
  type: "builtin",
  operations: ["status", "log", "diff", "branch"],
  safe_mode: true
}
print("Server: ${git_config.name}")
print("Operations: ${len(git_config.operations)}")
print("Safe mode: ${git_config.safe_mode}")

# Cloud MCP Server
print("\nā˜ļø Example 3: AWS MCP Server")
print("-" * 60)
aws_config = {
  name: "aws",
  provider: "aws",
  services: ["s3", "ec2", "lambda"],
  read_only: true
}
print("Provider: ${aws_config.provider}")
print("Services: ${len(aws_config.services)}")

# Docker MCP Server
print("\n🐳 Example 4: Docker MCP Server")
print("-" * 60)
docker_config = {
  name: "docker",
  operations: ["ps", "inspect", "logs", "stats"],
  allow_start_stop: false
}
print("Server: ${docker_config.name}")
print("Operations: ${len(docker_config.operations)}")

# Database MCP Server
print("\nšŸ—„ļø Example 5: Database MCP Server")
print("-" * 60)
db_config = {
  name: "postgres",
  type: "database",
  read_only: true,
  query_timeout: 30,
  max_rows: 10000
}
print("Database: ${db_config.name}")
print("Read-only: ${db_config.read_only}")
print("Timeout: ${db_config.query_timeout}s")

# Multi-server agent
print("\nšŸ”— Example 6: Multi-Server Agent")
print("-" * 60)
agent_servers = ["filesystem", "git", "docker", "aws"]
print("Agent has access to ${len(agent_servers)} MCP servers:")
agent_servers | each(fn(s) => print("  • ${s}"))

print("\n✨ MCP Server Concepts Complete!")
print("Safe, controlled tool access for AI agents!")