Registry MCP

Registry MCP

A Model Context Protocol server for assisting users in registering their MCP servers, knowledge graph components, and other biomedical tools to the BioContextAI registry.

Category
访问服务器

README

Registry MCP

BioContextAI - Registry Tests Documentation

Python 3.11+ License: MIT Documentation GitHub

A Model Context Protocol (MCP) server for assisting users in registering their MCP servers, knowledge graph components, and other biomedical tools to the BioContextAI registry.

🚀 Quick Start

To use this MCP server to submit your project to the BioContext registry, simply ask your AI assistant:

"Help me submit this project to the BioContext registry"

The MCP will automatically:

  1. Analyze your project - Extract metadata from your project files
  2. Generate YAML - Create a schema.org-compatible specification
  3. Validate - Check the specification against registry requirements
  4. Request confirmation - Ask you to review before submission
  5. Submit - Send your project to the registry (after your confirmation)

Prerequisites

  • Install the MCP server in your AI assistant
  • Have your project ready with a pyproject.toml, README.md, or similar metadata files

Overview

The Registry MCP provides a comprehensive set of tools to help users create, validate, and submit schema.org-compatible YAML specifications to the BioContextAI registry. It follows the same pattern as the biocypher-mcp repository, providing structured guidance and automation for registry submissions.

Features

Core Functionality

  • Project Analysis: Automatically extract metadata from existing project files (pyproject.toml, README.md, etc.)
  • YAML Generation: Create schema.org-compatible YAML specifications from user input
  • Validation: Validate submissions against the registry schema with detailed feedback
  • API Submission: Submit validated specifications to the registry REST API
  • Troubleshooting: Comprehensive guidance and error resolution

Available Tools

Registry Submission Tools

  1. analyze_project_directory_tool - Analyze project directory to extract metadata
  2. generate_yaml_template_tool - Generate YAML template from metadata
  3. validate_yaml_specification_tool - Validate YAML against registry schema
  4. submit_to_registry_tool - Request submission (requires user confirmation)
  5. confirm_and_submit_to_registry_tool - Actually submit after user confirmation
  6. get_registry_schema_tool - Get the complete registry schema

Guidance and Troubleshooting Tools

  1. get_registry_workflow_guidance_tool - Get step-by-step submission workflow
  2. get_example_submissions_tool - Get example YAML submissions
  3. get_troubleshooting_guide_tool - Get comprehensive troubleshooting guide
  4. get_field_guidance_tool - Get detailed guidance for specific fields

Installation

# Clone the repository
git clone https://github.com/slolab/registry-mcp.git
cd registry-mcp

# Install dependencies
uv sync

# Run the MCP server
uv run registry_mcp

# Or test the installation
uv run registry_mcp --version
uv run registry_mcp --help

Usage

Basic Workflow

  1. Analyze your project:

    # Use the MCP tool to analyze your project directory
    result = analyze_project_directory_tool(".")
    
  2. Generate YAML template:

    # Create YAML from your metadata
    yaml_content = generate_yaml_template_tool({
        "identifier": "your-username/your-repo",
        "name": "Your MCP Server",
        "description": "Description of your MCP server",
        # ... other metadata
    })
    
  3. Validate specification:

    # Validate the YAML
    validation_result = validate_yaml_specification_tool(yaml_content)
    
  4. Submit to registry (with file-based confirmation):

    # First, create YAML file and request confirmation
    # Specify project_path to save meta.yaml in the project directory
    submission_request = submit_to_registry_tool(yaml_content, project_path=".")
    
    # The tool will create a YAML file and return confirmation request
    if submission_request.get("requires_confirmation"):
        print(submission_request["confirmation_message"])
        yaml_file_path = submission_request["yaml_file"]
        
        # User must explicitly confirm before actual submission
        # After user confirms, call:
        submission_result = confirm_and_submit_to_registry_tool(yaml_file_path)
    

File-Based User Confirmation Workflow

The registry submission process now uses a robust file-based confirmation system to prevent accidental submissions:

  1. YAML File Creation: submit_to_registry_tool() validates the YAML and creates a meta.yaml file with user_confirmed: false in the specified project directory (defaults to current directory)
  2. User Review: The tool displays submission details and asks for confirmation
  3. User Decision: User must explicitly confirm with "Yes, submit to registry" or "Confirm submission"
  4. Confirmation Update: confirm_and_submit_to_registry_tool() sets user_confirmed: true and performs the submission
  5. Status Checking: check_yaml_file_status_tool() allows checking the current status of any YAML file

Important: The meta.yaml file will be created in the specified project directory. Use the project_path parameter to ensure it's saved in the correct location.

This ensures users have full control over when their MCP servers are submitted to the public registry, with a persistent record of the confirmation state.

Example YAML Structure

Based on the BioCypher MCP example:

"@context": https://schema.org
"@type": SoftwareApplication
"@id": https://github.com/your-username/your-mcp

identifier: your-username/your-mcp

name: Your MCP Server Name

description: >
  A detailed description of your MCP server's functionality,
  use cases, and target audience.

codeRepository: https://github.com/your-username/your-mcp

url: https://your-mcp.example.com  # Optional

softwareHelp:
  "@type": CreativeWork
  url: https://your-mcp.example.com/docs
  name: Your MCP Documentation

maintainer:
  - "@type": Person
    name: Your Name
    identifier: "GitHub: your-username"
    url: https://github.com/your-username

license: https://spdx.org/licenses/MIT.html

applicationCategory: HealthApplication

keywords:
  - keyword1
  - keyword2
  - keyword3

operatingSystem:
  - Cross-platform

programmingLanguage:
  - Python

featureList:
  - Feature 1
  - Feature 2
  - Feature 3

user_confirmed: false  # Set to true only after user confirmation

Schema Requirements

The registry uses a schema.org-compatible specification with the following required fields:

Required Fields

  • @context: Must be "https://schema.org"
  • @type: Must be "SoftwareApplication"
  • @id: Unique identifier URI (typically GitHub URL)
  • identifier: Repository identifier in format "owner/repository"
  • name: Component name (1-100 characters)
  • description: Detailed description (10-1000 characters)
  • codeRepository: Repository URL (GitHub, GitLab, Bitbucket, or Codeberg)
  • maintainer: Maintainer information (Person or Organization)
  • license: SPDX license URL
  • applicationCategory: Application type
  • keywords: 1-10 relevant keywords
  • programmingLanguage: Programming languages used

Optional Fields

  • url: Remote hosting URL
  • softwareHelp: Documentation/help resource
  • featureList: List of features/capabilities
  • operatingSystem: Supported operating systems
  • user_confirmed: User confirmation flag (boolean, defaults to false)

Registry Schema

The registry follows a strict JSON schema for validation. You can retrieve the complete schema using:

schema = get_registry_schema_tool()

Troubleshooting

Common Issues

  1. Invalid identifier format: Use "owner/repository" format
  2. Missing required fields: Ensure all required fields are present
  3. Invalid license format: Use SPDX format (https://spdx.org/licenses/LICENSE.html)
  4. Unsupported repository: Use GitHub, GitLab, Bitbucket, or Codeberg

Getting Help

Use the troubleshooting tools for detailed guidance:

# Get comprehensive troubleshooting guide
troubleshooting = get_troubleshooting_guide_tool()

# Get guidance for specific fields
field_help = get_field_guidance_tool("identifier")

# Get workflow guidance
workflow = get_registry_workflow_guidance_tool()

Development

Running Tests

# Run the test suite
uv run python test_registry_mcp.py

Project Structure

src/registry_mcp/
├── __init__.py
├── main.py              # CLI entry point
├── mcp.py               # MCP server configuration
└── tools/
    ├── __init__.py
    ├── _greet.py        # Example tool
    ├── registry_submission.py  # Core submission tools
    └── registry_guidance.py    # Guidance and troubleshooting

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Related Projects

Support

For issues and questions:

  • Create an issue on GitHub
  • Check the troubleshooting guide
  • Review the example submissions
  • Use the field guidance tools

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选