MCP cover image
See in Github
2025-03-24

通过使用MCP Inception,可以用作代理的MCP服务器,可以产生更多的代理!

1

Github Watches

1

Github Forks

3

Github Stars

Skynet-MCP (THIS PROJECT IS A WORK IN PROGRESS)

A hierarchical network of AI agents using the Model Context Protocol (MCP). The AI Agents in this network can spawn new agents to have them do work, each agent also includes all the tools that the initiating agent has. The network of agents are capable of working through complex tasks, ranging from research, reporting, to coding.

By leveraging the growing collection of MCP-servers available each of the agents potentially have a large set of tools at their disposal to do all kinds of tasks.

Want to help?

If you like this idea and are proficient in TypeScript; I can use your help! Please reach out if you like to contribute.

Overview

Skynet-MCP is an advanced architecture that implements the Model Context Protocol (MCP) to create a hierarchical network of AI agents. Each Skynet-MCP instance acts as both an MCP server and MCP client, allowing it to provide tools to parent agents while also spawning and managing child agents.

This architecture enables recursive agent networks capable of decomposing complex tasks, parallelizing work, and integrating specialized capabilities across multiple models and services.

Features

  • Dual-Mode Operation: Acts as both MCP server and client
  • LLM Integration: Connect to OpenAI or Anthropic models for intelligent decision-making
  • Tool Discovery: Automatically discover and use tools from connected MCP servers
  • Hierarchical Agent Management: Create and manage child agents
  • Configurable: Flexible configuration system supporting multiple environments
  • FastMCP Integration: Built on the efficient FastMCP framework for robust MCP server implementations
  • Multiple Transport Options: Supports both STDIO and SSE (Server-Sent Events) transport
  • Delayed Execution: Run tasks asynchronously and poll for results later

MCP Tools

Skynet-MCP provides the following MCP tools through its FastMCP implementation:

  1. Invoke: Creates and manages agent tasks

    • Parameters:
      • mcpConfig: MCP server configuration (available tools for the agent)
      • llmConfig: LLM configuration (provider and model to use)
      • prompt: Instructions for the agent task
      • delayedExecution: Boolean indicating if the task should be run asynchronously
  2. DelayedResponse: Retrieves the result of asynchronous tasks

    • Parameters:
      • taskId: The ID of the task to check
    • Returns: Task status and result (if completed)

Agent

The agent framework still needs to be implemented.

Project Structure

skynet-mcp/
├── src/
│   ├── server/       # MCP server implementation
│   ├── client/       # MCP client implementation
│   ├── orchestrator/ # Agent orchestration
│   ├── tools/        # Agent tools
│   ├── persistence/  # State management
│   └── utils/        # Shared utilities
├── test/
│   ├── unit/         # Unit tests
│   └── integration/  # Integration tests
├── examples/         # Example implementations
└── config/           # Configuration files

Development

Prerequisites

  • Node.js (v20+)
  • npm
  • Docker and Docker Compose (optional, for containerized development)
  • API keys for OpenAI or Anthropic (for LLM-powered agents)

Setup

  1. Clone the repository
  2. Install dependencies:
    npm install
    

Available Scripts

Basic Development Commands

  • npm run build - Build the project
  • npm run test - Run tests
  • npm run test:watch - Run tests in watch mode
  • npm run test:coverage - Run tests with coverage
  • npm run lint - Lint the code
  • npm run lint:fix - Lint and fix the code
  • npm run format - Format the code
  • npm run dev - Run TypeScript in watch mode
  • npm start - Start the application

Docker Commands

  • npm run docker:build - Build the Docker image
  • npm run docker:up - Start the application with Docker Compose
  • npm run docker:down - Stop Docker Compose services
  • npm run docker:test - Run tests inside the Docker container
  • npm run test:docker - Run Docker-specific tests (requires Docker running)

Docker Support

Skynet-MCP includes Docker support for containerized development and deployment.

Dockerfile

The project includes a Dockerfile that:

  • Uses Node.js 20 Alpine as the base image
  • Sets up the application environment
  • Installs dependencies
  • Builds the TypeScript code
  • Exposes port 3000 for the server

Docker Compose

The docker-compose.yml file provides a complete development environment with:

  • The Skynet-MCP application container
  • Redis for state management and persistence
  • Volume mounts for local development
  • Environment variable configuration

To start the full environment:

npm run docker:up

Configuration System

Skynet-MCP uses a flexible configuration system that can load settings from:

  • Default values
  • Environment variables
  • Environment-specific JSON configuration files

Configuration files are stored in the config/ directory and loaded based on the NODE_ENV environment variable.

Environment Variables

Key environment variables include:

  • SERVER_PORT - Port the server listens on
  • SERVER_HOST - Host the server binds to
  • LOG_LEVEL - Logging level (debug, info, warn, error)
  • PERSISTENCE_TYPE - Storage type (memory or redis)
  • REDIS_URL - Redis connection URL (when using Redis)
  • OPENAI_API_KEY - OpenAI API key (for LLM-powered agents)
  • ANTHROPIC_API_KEY - Anthropic API key (for LLM-powered agents)

CI/CD

Skynet-MCP uses GitHub Actions for continuous integration and delivery.

The workflow:

  1. Runs on pushes to the main branch and pull requests
  2. Sets up the Node.js environment
  3. Installs dependencies
  4. Runs linting and formatting checks
  5. Builds the project
  6. Runs all tests
  7. Builds and verifies the Docker image

The CI/CD pipeline helps ensure code quality and stability by automatically testing changes before they're merged.

License

ISC

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • modelcontextprotocol
  • 模型上下文协议服务器

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

    Reviews

    2 (1)
    Avatar
    user_qDR925ub
    2025-04-17

    As a dedicated user of skynet-mcp, I highly recommend this application created by ivo-toby. It’s incredibly efficient and user-friendly, perfect for anyone looking to optimize their workflow. The well-documented GitHub page provides all the information you need to get started. Visit https://github.com/ivo-toby/skynet-mcp to check it out!