Team Ai
Apppublic

openenv/echo_env

sourceHugging Faceupdated 1d agoView on Hugging Face
6likes
__init__.py30 linesDownload Raw Back to echo_env
1# Copyright (c) Meta Platforms, Inc. and affiliates.2# All rights reserved.3#4# This source code is licensed under the BSD-style license found in the5# LICENSE file in the root directory of this source tree.6 7"""8Echo Environment - A pure MCP environment for testing and demonstration.9 10This environment exposes all functionality through MCP tools:11- `echo_message(message)`: Echo back the provided message12- `echo_with_length(message)`: Echo back the message with its length13 14Example:15    >>> from echo_env import EchoEnv16    >>>17    >>> with EchoEnv(base_url="http://localhost:8000") as env:18    ...     env.reset()19    ...     tools = env.list_tools()20    ...     result = env.call_tool("echo_message", message="Hello!")21    ...     print(result)  # "Hello!"22"""23 24# Re-export MCP types for convenience25from openenv.core.env_server.mcp_types import CallToolAction, ListToolsAction26 27from .client import EchoEnv28 29__all__ = ["EchoEnv", "CallToolAction", "ListToolsAction"]30