Sample code for GreenNode AgentBase: build, deploy and connect AI agents and MCP (Model Context Protocol) servers on GreenNode.
Every repository is a complete, deployable example. Each one comes with a step-by-step Portal setup guide (aiplatform.console.vngcloud.vn), architecture diagrams, tests and CI.
| Sample | What you build | AgentBase features |
|---|---|---|
| sample-travel-buddy | Travel assistant AI agent with a web UI | Agent Runtime (LangGraph) · long-term Memory (CUSTOM + SEMANTIC strategies) · MCP Gateway + Tavily web search · Policy Group · network diagrams |
| sample-zalo-restaurant | Restaurant booking chatbot on Zalo | Custom MCP server in the customer VPC · Private MCP Gateway · returning-guest memory · Zalo Bot Platform webhook · self-hosted Langfuse |
| sample-mcp-stock-server | Vietnam stock market MCP server (24hMoney, 13 tools) | Fail-closed API-key auth · one image deploys to Agent Runtime, vServer / VKS in your VPC, or on-premises |
| sample-byo-agent-mcp-gateway | Bring your own agent, running outside AgentBase | Call MCP Gateway with IAM or JWT auth from a CLI, a LangGraph agent, Claude Desktop or Cursor |
| sample-onprem-mcp-vpn | Internal ERP/HR MCP server in your data center | VPN Site-to-Site (IPsec, strongSwan) · Private MCP Gateway with Route CIDRs · firewall rules and a lab guide |
| sample-multi-agent-a2a | Multi-agent "Trip Concierge" orchestrator | Delegates in parallel over A2A to travel-buddy and zalo-restaurant · MCP tools through the MCP Gateway · agent-card discovery · streaming progress |
| sample-enterprise-assistant-oauth | Enterprise assistant that acts as the signed-in user | OIDC sign-in (Keycloak) · JWT inbound auth at the MCP Gateway · OAuth 3LO to GitHub as the user · Policy Group with conditions on claims and tool arguments · human-in-the-loop approval of every write |
| sample-greennode-agentbase-builder-skills | Skills that teach coding agents to build on AgentBase | Agent skills for Claude Code / Codex — scaffold, memory, identity, MCP Gateway, policy, deploy |
| I want to… | Start with |
|---|---|
| Build an agent with memory that calls SaaS tools on the Internet | sample-travel-buddy |
| Build a chatbot for Zalo | sample-zalo-restaurant |
| Write my own MCP server and run it on Agent Runtime | sample-mcp-stock-server |
| Run an MCP server in my VPC (vServer / VKS) behind a Private MCP Gateway | sample-mcp-stock-server · sample-zalo-restaurant |
| Reach an MCP server on-premises over VPN or Interconnect | sample-onprem-mcp-vpn |
| Use MCP Gateway from an agent that does not run on AgentBase | sample-byo-agent-mcp-gateway |
| Compose several agents into one system (agent-to-agent delegation) | sample-multi-agent-a2a |
| Make an agent act as the signed-in enterprise user (SSO, per-user permissions, approvals) | sample-enterprise-assistant-oauth |
| Teach my coding agent (Claude Code, Codex) to build agents on AgentBase | sample-greennode-agentbase-builder-skills |
| Understand how Runtime, LLM, Memory and MCP Gateway connect on the network | sample-travel-buddy/docs/network |
Agent Runtime (LangGraph) ── Memory (strategies / actors)
│
├── LLM (OpenAI-compatible endpoint)
└── MCP Gateway (IAM / JWT inbound auth, Policy Group)
├── connector → MCP SaaS on the Internet (API key / OAuth)
├── connector → MCP server on Agent Runtime
├── connector → MCP server in your VPC (Private gateway)
└── connector → MCP server on-premises (VPN / Interconnect)
- Sign in to the GreenNode AI Platform console: aiplatform.console.vngcloud.vn.
- Pick a sample from the table above and follow its README. Each one runs locally first, then deploys to your own AgentBase account.
- Most samples share the same stack: Python, the
greennode-agentbaseSDK, LangGraph, MCP and Docker.
Found a bug or have an idea for a new sample? Open an issue in the repository it relates to.
All samples are released under the MIT License.