Skip to main content
Glama
Darwin Standards MCP Server

Darwin Standards MCP Server

Darwin Standards MCP Server

MCP server providing standards documentation and validation tools for the Darwin platform.

Overview

The Standards MCP Server is designed to:

  1. Expose standards as MCP resources - Agents can read platform standards via standard URIs

  2. Provide validation tools - Validate naming conventions, tool definitions, and agent cards

  3. Enable standards search - Find relevant standards documentation quickly

Note: This is an MCP Server, not a true Agent. It provides tools and resources but does not contain an LLM and does not make autonomous decisions.

Quick Start

# Build and run
make build
make run

# Or with docker directly
docker build -t standards-mcp-server .
docker run -p 8080:8080 \
  -v /path/to/standards:/app/standards:ro \
  -e MCP_TRANSPORT=http \
  standards-mcp-server

Option 2: Local Installation

# Create virtual environment and install
make install

# Run locally (stdio mode)
make run-local

# Run locally (HTTP mode)
make run-http

Option 3: Claude Code Integration

# Using Python module directly
claude mcp add --transport stdio \
  --env STANDARDS_PATH=/path/to/docs/standards \
  standards -- python -m standards_mcp_server.server

# Using container
claude mcp add --transport stdio standards -- \
  docker run --rm -i \
  -v /path/to/docs/standards:/app/standards:ro \
  -e MCP_TRANSPORT=stdio \
  fgsansharedacrdeveus.azurecr.io/standards-mcp-server:latest

MCP Resources

Standards Documentation

URI

Description

standards://agents/design

Agent design principles

standards://agents/communication

A2A protocol standards

standards://agents/tools

MCP tool integration

standards://agents/memory

Neo4j memory architecture

standards://agents/observability

OpenTelemetry setup

standards://agents/security

Security requirements

standards://mcp/server-design

MCP server architecture

standards://mcp/tool-design

Tool definition standards

standards://mcp/resource-design

Resource exposure standards

standards://mcp/security

MCP security patterns

standards://mcp/error-handling

Error handling standards

Templates and Implementations

URI

Description

templates://mcp/python

Python MCP server template

templates://mcp/dotnet

.NET MCP server template

implementations://mcp/standards

This server's implementation

implementations://agents/python/langchain

LangChain agent

MCP Tools

Validation Tools

  • validate_azure_resource_name - Validate Azure resource names against naming conventions

  • validate_mcp_tool_definition - Validate MCP tool definitions against standards

  • validate_agent_card - Validate A2A agent cards against protocol standards

Search Tools

  • search_standards - Full-text search across standards documents

  • list_standards_categories - List all available categories

  • get_standards_summary - Get document summaries for a category

Configuration

Variable

Description

Default

MCP_SERVER_NAME

Server name

standards-mcp-server

MCP_TRANSPORT

Transport type (stdio or http)

stdio

MCP_PORT

HTTP port

8080

MCP_HOST

HTTP host

0.0.0.0

MCP_LOG_LEVEL

Log level

INFO

STANDARDS_PATH

Path to standards docs

docs/standards

REFERENCE_IMPLEMENTATIONS_PATH

Path to implementations

reference-implementations

OTEL_ENABLED

Enable OpenTelemetry

true

OTEL_EXPORTER_OTLP_ENDPOINT

OTLP endpoint

null

Development

Running Tests

# Run all tests
make test

# With coverage
make test-cov

# Linting
make lint

# Type checking
make typecheck

Project Structure

darwin-standards-mcp/
├── .github/
│   ├── workflows/          # CI/CD pipelines
│   └── PULL_REQUEST_TEMPLATE.md
├── .k8s/
│   ├── base/              # Base Kubernetes manifests
│   └── overlays/          # Environment-specific overlays
│       ├── dev/
│       └── prod/
├── src/standards_mcp_server/
│   ├── __init__.py
│   ├── server.py          # Main MCP server
│   ├── config.py          # Configuration
│   ├── observability.py   # OpenTelemetry setup
│   ├── resources/         # MCP resources
│   └── tools/             # MCP tools
├── tests/
├── scripts/               # Deployment scripts
├── docs/                  # Documentation
├── Dockerfile
├── Makefile
└── pyproject.toml

Deployment

Deploy to AKS

# Using make
make deploy

# Using script
./scripts/deploy-to-aks.sh

Manual Deployment

# Get AKS credentials
az aks get-credentials --resource-group rg-fgsan-shared-dev-eus --name fgsan-shared-aks-dev-eus

# Apply manifests
kubectl apply -k .k8s/overlays/dev

# Verify
kubectl get pods -n darwin-mcp -l app=standards-mcp-server

See DEPLOYMENT.md for detailed deployment instructions.

CI/CD

The repository includes GitHub Actions workflows for:

  • lint-and-test.yml - Runs on PRs: linting, testing, type checking

  • build-and-push.yml - Runs on push to main: builds and pushes Docker image to ACR

  • deploy-to-aks.yml - Runs after build: deploys to AKS

  • release.yml - Runs on version tags: creates GitHub releases

License

MIT License - see LICENSE for details.

Available Tools

6 tools
get_standards_summaryB

Get a summary of all standards in a category.

Returns titles and descriptions of all documents in the specified category for quick reference.

Args: category: Category name (agents, mcp, infrastructure) ctx: MCP context

Returns: Dictionary with document summaries.

Inputs: category (required). Returns: object

list_standards_categoriesA

List all available standards categories.

Returns a list of all top-level categories in the standards documentation with descriptions and document counts.

Args: ctx: MCP context

Returns: Dictionary with category information.

Inputs: no named parameters. Returns: object

search_standardsB

Search standards documents for relevant content.

Performs a full-text search across all standards documents and returns relevant excerpts with context.

Args: query: Search query (keywords or phrases) category: Optional category filter (agents, mcp, infrastructure) max_results: Maximum number of results to return (default: 10) ctx: MCP context

Returns: Dictionary with search results and metadata.

Example: >>> results = await search_standards("authentication") >>> for r in results["results"]: ... print(f"{r['title']}: {r['excerpt']}")

Inputs: query (required), category, max_results. Returns: object

validate_agent_cardC

Validate an Agent Card against A2A protocol standards.

Checks if the agent card follows the Darwin platform A2A standards and contains all required fields.

Args: agent_card: The agent card JSON to validate ctx: MCP context

Returns: ValidationResult with any issues found.

Inputs: agent_card (required). Returns: object

validate_azure_resource_nameA

Validate an Azure resource name against naming conventions.

Checks if the given resource name follows the Darwin platform naming conventions for Azure resources.

Args: resource_name: The resource name to validate resource_type: Type of Azure resource (e.g., "resource_group", "storage_account") ctx: MCP context for logging

Returns: ValidationResult with any issues found.

Example: >>> result = await validate_azure_resource_name( ... "rg-myapp-eus-dev", ... "resource_group" ... ) >>> print(result["valid"]) True

Inputs: resource_name (required), resource_type (required). Returns: object

validate_mcp_tool_definitionC

Validate an MCP tool definition against standards.

Checks if the tool follows Darwin platform MCP tool design standards.

Args: tool_name: Name of the tool tool_description: Tool docstring/description parameters: Tool parameters schema (JSON Schema format) ctx: MCP context

Returns: ValidationResult with any issues found.

Inputs: tool_name (required), tool_description (required), parameters (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools have distinct purposes: get_standards_summary, list_standards_categories, and search_standards all operate on standards documents but with clear differentiation (summary vs. list categories vs. search). The three validation tools target different objects (agent cards, Azure resource names, MCP tool definitions), though all being validation functions creates some conceptual overlap. Overall, descriptions help clarify boundaries, but the validation trio could potentially cause minor confusion.

    Naming Consistency5/5

    All tools follow a consistent snake_case naming pattern with clear verb_noun structure. The verbs are appropriate and consistent: 'get', 'list', 'search', and 'validate' are used logically throughout. There are no deviations in style or convention across the six tools.

    Tool Count5/5

    Six tools is well-scoped for a standards server, covering core operations: browsing standards (summary, categories, search) and validation (agent cards, Azure resources, MCP tools). Each tool earns its place without redundancy, and the count aligns with the server's purpose of providing standards access and validation.

    Completeness4/5

    The tool surface covers the main workflows for standards access and validation effectively. Minor gaps exist: there's no tool to retrieve full standards documents (only summaries or search results), and validation tools are limited to three specific types without a general validation function. However, agents can work around these gaps using the available tools, and the core domain is reasonably covered.

    Related MCP Connectors