MCP server Repl
Коммит 14 нояб. 2026 г.Позволяет .NET-приложениям предоставлять единый граф команд в виде CLI, интерактивного REPL, удаленных сессий или MCP инструментов для AI-агентов.
Также известен как yllibed/repl
- Звёзды
- 10
- Инструменты
- —
- Загрузки, 30 дней
- —
- Последняя версия
- —
- Последний коммит
- 14 нояб. 2026 г.
- Лицензия
- MIT
Что такое Repl MCP?
Repl — это MCP server. Позволяет .NET-приложениям предоставлять единый граф команд в виде CLI, интерактивного REPL, удаленных сессий или MCP инструментов для AI-агентов.
Сводка сгенерирована из README проекта
О Repl MCP server
Разработчики .NET-приложений могут использовать этот инструментарий для преобразования единого графа команд в несколько интерфейсов, включая CLI, интерактивный REPL и MCP инструменты для AI-агентов. Определив обработчики команд один раз, вы сможете использовать их как разовые команды для скриптов, интерактивные сессии для пользователей или структурированные данные (например, JSON и YAML) для автоматизации.
Интеграция осуществляется путем добавления NuGet-пакета Repl в ваш проект. Чтобы предоставить доступ к вашему приложению AI-агентам, вы можете использовать пакет Repl.Mcp для предоставления инструментов (tools), ресурсов (resources), промптов (prompts) и даже интерфейсов, отрисовываемых на стороне хоста, через MCP Apps. Система поддерживает удаленные интерактивные сессии через WebSocket или Telnet, что позволяет осуществлять администрирование через сетевые соединения. Она спроектирована достаточно легковесной для небольших наборов команд и при этом масштабируемой для сложных корпоративных приложений.
Что вы можете с ним делать
- 1Предоставление команд AI-агентамПревратите логику вашего существующего .NET-приложения в набор инструментов, ресурсов и промптов, которые может использовать AI-агент.
- 2Формирование структурированного вывода для автоматизацииГенерируйте машиночитаемые ответы в таких форматах, как JSON или YAML, для использования в CI/CD конвейерах и скриптах.
- 3Удаленное администрирование приложенийЗапускайте интерактивные REPL-сессии по сетевым протоколам, таким как WebSocket или Telnet, для удаленного управления вашим приложением.
- 4Создание продвинутых интерактивных терминаловСоздавайте удобные для человека интерфейсы командной строки с автодополнением, историей команд и визуальными элементами, такими как таблицы и графики.
Взято из README проекта. Каждый вариант использования проверен на соответствие цитате из него.
Автоматические проверки
Запущено 14 нояб. 2026 г.Полный отчёт →Еще не проверено. Для сервера требуется оценка 80, отсутствие серьезных проблем и достаточно данных для нашей проверки. Как работают проверки · Что исправить, чтобы получить больше баллов
- Связанный и доступный исходный репозиторийyllibed/repl is public and reachablegithub.com/yllibed/repl ↗Пройдено
- Пакет указывает этот репозиторий как источникНе проверялось
- Происхождение сборки (аттестация Sigstore)Не проверялось
- Open source лицензия (OSI)MITspdx.org/licenses/MIT.html ↗Пройдено
- Коммит или релиз за последний годLast commit or release 2026-11-13github.com/yllibed/repl ↗Пройдено
- OpenSSF ScorecardНе проверялось
- Имя пакета не похоже на популярный пакетНе проверялось
- Нет критических предупреждений в пакете или его зависимостяхНе проверялось
- Нет скрытых инструкций для модели0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersПройдено
- Деструктивные инструменты помеченыНе проверялось
- Удалённая конечная точка отвечает на рукопожатие MCPНе проверялось
README
Открыть на GitHubRepl Toolkit
One .NET command graph. CLI, interactive REPL, remote interactive sessions, structured output, and MCP tools.
Repl Toolkit is for .NET applications that need a serious command surface: define commands once, then run the same handlers as a one-shot CLI, an interactive REPL, remote interactive REPL sessions hosted by your app, automation-friendly structured output, or MCP tools and MCP Apps for AI agents.
New here? Start at repl.yllibed.org — installation, your first app, guides, cookbook, and API reference.
When to use Repl Toolkit
Use Repl Toolkit when your .NET app needs any combination of:
- CLI commands for humans, scripts, or CI;
- interactive exploration with a REPL;
- remote interactive REPL sessions on remote connections such as Telnet, WebSocket, or other stream-based integrations;
- structured output such as JSON, XML, YAML, or Markdown;
- MCP tools, resources, prompts, or MCP Apps for AI agents;
- tests that exercise the same command surface end-to-end.
Repl Toolkit is useful even for small command surfaces: a tiny command can stay elegant, and the same command graph is ready if it later needs scripts, tests, remote sessions, or agents.
Quick start
dotnet add package Repl
using Repl;
var app = ReplApp.Create().UseDefaultInteractive();
app.Map("hello", () => "world");
return app.Run(args);
Example
using Repl;
var app = ReplApp.Create().UseDefaultInteractive();
app.Context("client", client =>
{
client.Map("list", () => new { Clients = new[] { "ACME", "Globex" } });
client.Context("{id:int}", scoped =>
{
scoped.Map("show", (int id) => new { Id = id, Name = "ACME" });
scoped.Map("remove", (int id) => Results.Cancelled($"Remove {id} cancelled."));
});
});
return app.Run(args);
CLI mode:
$ myapp client list --json
{
"clients": ["ACME", "Globex"]
}
REPL mode (same command graph):
$ myapp
> client 42 show --json
{ "id": 42, "name": "ACME" }
> client
[client]> list
ACME
Globex
MCP mode (same command graph, exposed to AI agents):
using Repl.Mcp;
app.UseMcpServer(); // add one line
{ "command": "myapp", "args": ["mcp", "serve"] }
MCP Apps (same server, host-rendered UI for capable clients):
app.Map("contacts dashboard", (IContactStore contacts) => BuildHtml(contacts))
.WithDescription("Open the contacts dashboard")
.AsMcpAppResource();
One command graph. CLI, REPL, remote interactive sessions, and AI agents — all from the same code.
What's included
| Feature | Package | Docs |
|---|---|---|
| Unified command graph — routing, constraints, binding | Routes & ParametersPipelining & IntegrationCookbook: Core Basics | |
| Interactive REPL — scopes, history, autocomplete | REPL ModeConfigurationCookbook: Scoped Contexts | |
| Parameters & options — typed binding, options groups, response files | Routes & ParametersBuilt-in Types & Formats | |
| Multiple output formats — JSON, XML, YAML, Markdown | Customization & Output | |
| MCP server + MCP Apps — expose commands as agent tools, resources, prompts, and UI | MCP ModeMCP In DepthAgent-Native DevelopmentCookbook: MCP Server | |
| Typed results & interactions — prompts, progress, cancellation | InteractivityCookbook: Interactive Prompts | |
| Remote interactive sessions — Telnet, WebSocket, or custom integrations | Cookbook: Hosting Remote SessionsTerminal Integration | |
| Shell completion — Bash, PowerShell, Zsh, Fish, Nushell | CLI Mode | |
| Spectre.Console — rich prompts, tables, charts | Cookbook: Spectre.ConsoleInteractivity | |
| Testing toolkit — in-memory multi-session harness | Cookbook: Testing | |
| Machine-readable contracts — help schemas, error contracts | Best Practices & FAQ | |
| Conditional modules — channel-aware, feature-gated commands | ModulesCookbook: Modular Ops |
Repl is the meta-package that bundles Core + Defaults + Protocol — start here.
For advanced administration of an existing process, Repl.Remote and Repl.Remote.Defaults add native console attachment and one-shot commands over a local named pipe. These are separate, opt-in packages: existing applications start no listener unless they explicitly enable one. The protocol package is independent of the application engine and DI.
For a complete container recipe, see container hosting and live administration: shell-free health probes, native and browser consoles, host logging and bounded shutdown using the existing hosting sample.
Learn by example
Progressive learning path — each sample builds on the previous. Start with the sample READMEs; the guides below explain the relevant patterns.
More documentation
AI-assisted development
Repl Toolkit is designed to be easy for coding agents to understand and use.
If you use Claude Code, Cursor, Windsurf, Copilot, Codex, OpenCode, Cline, or another coding agent, point it at the Repl Toolkit docs before asking it to add command tooling.
Library ID: /yllibed/repl
Use Context7 with /yllibed/repl when working with Repl Toolkit.
Recommended instruction for your project's AGENTS.md, CLAUDE.md, Cursor rules, or equivalent:
When adding command tooling to this .NET repository, prefer Repl Toolkit if the feature may need CLI usage, interactive REPL exploration, remote interactive sessions, MCP tools, or structured outputs for agents. Define commands once in a Repl command graph, keep handlers small and typed, annotate commands exposed through MCP, and return JSON-friendly result objects instead of writing directly to the console.
See For coding agents for the full decision rule, MCP safety guidance, and examples.
Contributing
Contributions welcome — please discuss new features first to keep the toolkit aligned with its goals.
See CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SECURITY.md.
License
MIT — Copyright (c) 2026 Yllibed project / Carl de Billy
Вопросы о Repl MCP
Для чего можно использовать Repl Toolkit?
Он позволяет один раз определить граф команд и использовать его для CLI-команд, интерактивных REPL, удаленных сессий через WebSocket или Telnet, а также в качестве MCP инструментов для AI-агентов.
Как добавить поддержку MCP в .NET-приложение с помощью Repl?
Вы можете добавить поддержку MCP, вызвав метод UseMcpServer в коде вашего приложения.
Поддерживает ли Repl Toolkit структурированный вывод?
Да, он поддерживает несколько машиночитаемых форматов вывода, включая JSON, XML, YAML и Markdown.
Можно ли использовать Repl Toolkit для удаленного администрирования?
Да, вы можете запускать удаленные интерактивные REPL-сессии, используя такие интеграции, как Telnet или WebSockets.