Neonia MCP Gateway examples

Neonia MCP Gateway examples

agent-mcp-examples•byneonia-io

Examples showing how autonomous agents connect to the hosted Neonia MCP Gateway over Streamable HTTP to use tools such as JQ filtering, URL-to-markdown discovery, and cloud memory.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Runs JQ filter queries on the remote gateway so agents receive only filtered results instead of loading large payloads into context.
  • •Lets agents dynamically search the gateway for a missing tool, read its schema, and execute it without human intervention.
  • •Provides cloud memory tools to store and recall rules and lessons across isolated sessions.
  • •Supports chained data workflows where remote JSON is fetched to the gateway and a pointer is passed to the JQ filter.

BEST FOR

  • •Building agents that process large JSON payloads without consuming context window tokens.
  • •Giving agents autonomous tool discovery instead of hard-coded static tool lists.
  • •Creating agents that persist preferences and architectural lessons across sessions.

ABOUT AGENT-MCP-EXAMPLES

Neonia MCP Gateway examples is cataloged as an MCP server attributed to neonia-io. Examples showing how autonomous agents connect to the hosted Neonia MCP Gateway over Streamable HTTP to use tools such as JQ filtering, URL-to-markdown discovery, and cloud memory. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Neonia MCP Gateway examples are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What transport standard does the Neonia MCP Gateway use?

The examples integrate the gateway using the official Streamable HTTP transport standard.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 056bfcca58ef · 采集于 2026-11-13 10:33:01 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Neonia Agent MCP Examples

AI-Ready via Neonia

A collection of autonomous agent examples demonstrating how to integrate the Neonia Model Context Protocol (MCP) Gateway using the official Streamable HTTP transport standard.

About These Examples

This repository will continuously grow with new patterns demonstrating deterministic, high-performance AI agents.

Our first major showcases focus on solving two critical problems in modern agent architectures: Context Window Bloat and Tool Rigidity.

1. Solving Tool Rigidity (Auto-Pilot Discovery)

Agents are traditionally hard-coded with a static list of tools. If a user asks for something outside that list, the agent hallucinates or fails. The auto-discovery-url-to-markdown examples demonstrate how to give your agents true autonomy. By connecting to the Neonia Gateway, the agent can dynamically search for missing capabilities, read the tool's schema, and execute it on the fly without human intervention.

2. Solving Context Bloat (Zero-Bloat Data Processing)

Traditionally, when an agent needs to extract data from a large 5MB JSON file, it loads the entire file into its context window, causing massive token consumption, high latency, and LLM "amnesia". By connecting to the Neonia MCP Gateway (mcp.neonia.io/mcp?tools=neonia_data_jq_filter), our zero-bloat-jq-filter agents explicitly bind the Wasm-powered JQ Filter tool. The agent executes queries on the remote server and receives only the filtered result (e.g. $651,758.23), saving ~50,000+ tokens per request and responding almost instantly.

3. Stateful Memory Note (stateful-cloud-memory)

Agents typically suffer from absolute amnesia between sessions. If a user states a preference or business rule, it is lost unless hardcoded into the system prompt. The stateful-cloud-memory examples demonstrate how to create stateful agents that use Neonia's Dual Memory Architecture (neonia_sys_memory_note for writing and neonia_sys_memory_search for reading) to dynamically store and recall rules (like custom personas or user preferences) across completely isolated sessions without needing a custom database.

4. Persistent Knowledge Memory (persistent-knowledge-memory)

When agents learn hard architectural lessons, bug fixes, or strict operational rules, they need a way to persist this knowledge using a strict Cause-and-Effect structure (ADR). The persistent-knowledge-memory examples demonstrate using the neonia_sys_memory_lesson tool to save complex insights so future agents can fetch them using neonia_sys_memory_search before starting their tasks.

(More examples covering vision extraction, dynamic execution, and multi-agent orchestration will be added soon!)

Examples Provided

This repository includes implementations of "Zero-Bloat Data Processing", "Auto-Pilot Tool Discovery", and "Stateful Memory Note" across major agentic frameworks in 3 different languages:

1. Python (LangGraph)

A deterministic workflow using LangChain and LangGraph to build a reactive agent (create_agent) that dynamically wraps MCP capabilities into native LangChain @tool instances.

  • Directories: python/langgraph/zero-bloat-jq-filter, python/langgraph/chained-json-jq-filter, python/langgraph/auto-discovery-url-to-markdown, python/langgraph/stateful-cloud-memory, python/langgraph/persistent-knowledge-memory
  • Setup: uv sync && uv run python agent.py

2. Python (SmolAgents)

A self-assembling agent using Hugging Face's SmolAgents and LiteLLM. Demonstrates subclassing smolagents.Tool for synchronous forward execution wrapped around an asynchronous Streamable HTTP session.

  • Directories: python/smolagents/zero-bloat-jq-filter, python/smolagents/chained-json-jq-filter, python/smolagents/auto-discovery-url-to-markdown, python/smolagents/stateful-cloud-memory, python/smolagents/persistent-knowledge-memory
  • Setup: uv sync && uv run python main.py

3. TypeScript (Vercel AI SDK)

An integration with the Vercel AI SDK utilizing the official @modelcontextprotocol/sdk and @openrouter/ai-sdk-provider. Demonstrates proper multi-turn tool calling and schema mapping for Claude 3.7 Sonnet.

  • Directories: typescript/vercel-ai-sdk/zero-bloat-jq-filter, typescript/vercel-ai-sdk/chained-json-jq-filter, typescript/vercel-ai-sdk/auto-discovery-url-to-markdown, typescript/vercel-ai-sdk/stateful-cloud-memory, typescript/vercel-ai-sdk/persistent-knowledge-memory
  • Setup: npm install && npm start

4. Rust (Rig)

A statically-typed integration using the Rig agent framework and rust-mcp-sdk. Demonstrates bridging an initialized MCP client session into Rust's strong type system.

  • Directories: rust/rig/zero-bloat-jq-filter, rust/rig/chained-json-jq-filter, rust/rig/auto-discovery-url-to-markdown, rust/rig/stateful-cloud-memory, rust/rig/persistent-knowledge-memory
  • Setup: cargo run

Prerequisites

To run these examples, you will need:

  1. A Neonia API Key (NEONIA_API_KEY)
  2. An OpenRouter API Key (OPENROUTER_API_KEY)

Configure these in the .env file within the specific example directory you wish to run.

Ecosystem Architecture

agent-mcp-examples/
├── typescript/                 # TypeScript Ecosystem
│   └── vercel-ai-sdk/          # Vercel AI SDK Framework
│       ├── zero-bloat-jq-filter/           # Single-tool Data Processing
│       ├── chained-json-jq-filter/         # Multi-tool Chained Data Processing
│       ├── auto-discovery-url-to-markdown/ # Auto-Pilot Tool Discovery
│       ├── stateful-cloud-memory/          # System Memory Note Persistence
│       └── persistent-knowledge-memory/    # Architectural Lesson Persistence
│
├── python/                     # Python Ecosystem
│   ├── langgraph/              # LangGraph Framework
│   │   ├── zero-bloat-jq-filter/
│   │   ├── chained-json-jq-filter/
│   │   ├── auto-discovery-url-to-markdown/
│   │   ├── stateful-cloud-memory/
│   │   └── persistent-knowledge-memory/
│   └── smolagents/             # SmolAgents Framework
│       ├── zero-bloat-jq-filter/
│       ├── chained-json-jq-filter/
│       ├── auto-discovery-url-to-markdown/
│       ├── stateful-cloud-memory/
│       └── persistent-knowledge-memory/
│
└── rust/                       # Rust Ecosystem
    └── rig/                    # Rig Framework
        ├── zero-bloat-jq-filter/
        ├── chained-json-jq-filter/
        ├── auto-discovery-url-to-markdown/
        ├── stateful-cloud-memory/
        └── persistent-knowledge-memory/

Available Examples

Each example is self-contained and demonstrates specific, production-ready architectural patterns over MCP.

1. Auto-Pilot Tool Discovery (auto-discovery-url-to-markdown)

Demonstrates how to give agents true autonomy. If an agent lacks a required capability, it dynamically searches the Neonia Gateway for a matching tool, reads its parameters, and executes it on the fly without human intervention.

2. Zero-Bloat Data Processing (zero-bloat-jq-filter)

Demonstrates how to safely process massive API payloads using a deterministic Wasm JQ filter at the edge, drastically reducing LLM token context usage and preventing hallucination.

3. Chained Data Execution (chained-json-jq-filter)

Demonstrates how to safely process massive API payloads using a chained data workflow. The agent uses neonia_web_json_fetch to retrieve remote JSON and stores it on the Gateway, returning a lightweight pointer. It then passes this pointer to a deterministic Wasm JQ filter (neonia_data_jq_filter) to extract exactly what it needs, keeping its context window incredibly small.

4. Stateful Memory Note (stateful-cloud-memory)

Demonstrates how to use the Dual Memory Architecture (neonia_sys_memory_note and neonia_sys_memory_search) to allow an agent to remember personas or business rules across completely isolated sessions.

5. Persistent Knowledge Memory (persistent-knowledge-memory)

Demonstrates how to use the Dual Memory Architecture (neonia_sys_memory_lesson and neonia_sys_memory_search) to allow an agent to record hard architectural lessons in a cause-and-effect format and retrieve them dynamically on new tasks.

Getting Started

To run the examples, you will need an Anthropic API key (for the AI agent) and a free Neonia API key (for the Wasm MCP Gateway).

  1. Clone the repository:

    git clone https://github.com/neonia-io/agent-mcp-examples.git
    cd agent-mcp-examples
    
  2. Navigate to the example you want to try:

    cd typescript/vercel-ai-sdk/zero-bloat-jq-filter
    
  3. Set up environment variables:

    OPENROUTER_API_KEY="your-openrouter-key"
    NEONIA_API_KEY="your-neonia-key"
    

    (Note: The Neonia Gateway requires a free API key to authenticate MCP connections).

  4. Install dependencies and run:

    npm install
    npx tsx index.ts
    

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Neonia MCP Gateway examples from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/agent-mcp-examples)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools