Skip to main content
Glama
th-an

MCP Project Template

by th-an

MCP Project Template

一个用于构建 Model Context Protocol 服务器的通用、架构无关的蓝图。

快速开始

# Install
pip install -e ".[dev]"

# Run tests
pytest tests/ -v

# Start server
python -m mcp_server.server

Related MCP server: Kroki MCP

项目结构

src/mcp_server/
├── server.py          # MCP server entry point
├── engine/            # Domain logic (pure computation)
├── store/             # Persistence layer
├── security/          # Encryption, attestation
├── export/            # Output format renderers
├── ingest/            # Data ingestion pipeline
├── forensics/         # Analysis/detection modules
└── mcp/               # MCP protocol layer

配置

设置环境变量:

export MCP_PROJECT_DB_PATH=/path/to/database.db
export MCP_PROJECT_ENC_KEY=your-base64-encoded-key

测试

# All tests
pytest tests/ -v

# Determinism tests
pytest tests/test_determinism.py -v

# With coverage
pytest tests/ --cov=mcp_server

许可证

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    A Model Context Protocol server template designed for building custom servers using the @intelagent/mcp-shared library. It provides boilerplate code and example tools to streamline the development, testing, and deployment of new MCP servers.
    3
    32 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A production-ready MCP server scaffold that features built-in authentication, Docker support, and a comprehensive CI/CD release pipeline. It provides a standardized template for deploying servers with multi-transport support and configurable read-only modes.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    A production-ready foundation for developing custom Model Context Protocol (MCP) servers in TypeScript. Provides a complete layered architecture pattern, working example implementation, and comprehensive developer infrastructure to connect AI assistants with external APIs and data sources.
    50 npm
    73
    ISC
  • A
    license
    A
    quality
    C
    maintenance
    A production-ready foundation for building secure, observable MCP servers with built-in authentication, rate limiting, and reference tools like database-query and semantic-search.
    15
    8 npm
    MIT