baseline-mcp-server

baseline-mcp-server

An MCP server that queries the baseline status of web platform features using data from webstatus.dev. It provides tools to get feature baseline status and a summary of baseline categories.

Category
访问服务器

README

Baseline MCP Server

A Model Context Protocol (MCP) server that allows you to query the baseline status of web platform features using data from webstatus.dev.

VS Code setup

  1. Install dependencies:

    npm install
    
  2. Build the local MCP server:

    npm run build
    
  3. Create a .vscode/mcp.json file in your workspace and add the following configuration (example for GitHub Copilot):

    {
      "servers": {
        "baseline-mcp-server": {
          "command": "node",
          "args": [
            "${workspaceFolder}/dist/index.js"
          ],
          "env": {
            "API_BASE_URL": "https://api.webstatus.dev"
          }
        }
      }
    }
    
  4. Open an MCP-supported client extension like Copilot Chat in Agent mode

  5. Select Agent from the chat mode dropdown list

  6. Select a model like "Claude 3.5 Sonnet"

  7. Enter your Baseline-related prompt

Cloudflare Workers Deployment

You can deploy the server to Cloudflare Workers for a remote setup. The configuration will work globally without region-specific changes.

  1. Install Wrangler (Cloudflare Workers CLI):

    npm install -g wrangler
    
  2. Register for Cloudflare (if needed):

    • Create a free Cloudflare account at cloudflare.com
    • No domain is required for Workers deployment
  3. Login to Cloudflare:

    wrangler login
    
  4. Build and deploy the worker:

    npm run deploy
    

    This will build the worker and deploy it globally using the configuration in wrangler.toml.

  5. Configure VS Code for the remote server: Update your .vscode/mcp.json to include the remote server configuration:

    {
      "servers": {
        "baseline-mcp-server": {
          "url": "https://baseline-mcp-server.YOUR_WORKER_SUBDOMAIN.workers.dev",
          "type": "http"
        }
      }
    }
    

    Replace YOUR_WORKER_SUBDOMAIN with your Cloudflare account's workers subdomain.

Note: The worker configuration uses Cloudflare's global network by default, so no region-specific setup is needed. Requests will automatically be routed to the nearest edge location.

Example

Prompt

What's the Baseline status of view transitions?

Response

I'll check the baseline status for the View Transitions API using the baseline tools.

<details> <summary>Ran get_web_feature_baseline_status</summary>

Input

{
  "query": [
    "view transitions"
  ]
}

Output

🌐 Baseline Status: view transitions

Found 2 features:

1. Cross-document view transitions

Status: ⚠️ LIMITED

Browser Support:

  • Chrome: ✅ 6/11/2024 (v126)
  • Chrome Android: ✅ 6/11/2024 (v126)
  • Edge: ✅ 6/13/2024 (v126)
  • Safari: ✅ 12/11/2024 (v18.2)
  • Safari iOS: ✅ 12/11/2024 (v18.2)

Usage Statistics:

  • Chrome: 10.7649% of daily page views

Web Platform Tests:

  • Chrome: 🟡 82.3% pass rate
  • Chrome Android: 🟠 66.1% pass rate
  • Edge: 🟢 90.3% pass rate
  • Firefox: 🔴 1.6% pass rate
  • Safari: 🔴 45.2% pass rate

Specifications:

  1. View Specification

Recommendation: 🔴 Consider polyfills or alternatives


2. View transitions

Status: ⚠️ LIMITED

Browser Support:

  • Chrome: ✅ 3/7/2023 (v111)
  • Chrome Android: ✅ 3/7/2023 (v111)
  • Edge: ✅ 3/13/2023 (v111)
  • Safari: ✅ 9/16/2024 (v18)
  • Safari iOS: ✅ 9/16/2024 (v18)

Usage Statistics:

  • Chrome: 0.2001% of daily page views

Web Platform Tests:

  • Chrome: 🟡 87.2% pass rate
  • Chrome Android: 🔴 23.8% pass rate
  • Edge: 🟢 93.1% pass rate
  • Firefox: 🔴 3.3% pass rate
  • Safari: 🟡 79.8% pass rate

Specifications:

  1. View Specification

Recommendation: 🔴 Consider polyfills or alternatives

</details>

Based on the baseline status check, here's what we know about View Transitions:

1. Same-document View Transitions:
• Has LIMITED support status
• Supported in Chrome/Edge (since v111, March 2023)
• Recently added to Safari (v18, September 2024)
• Has relatively low usage (0.2% of Chrome page views)
• Test coverage varies significantly across browsers (87-93% in Chrome/Edge, but only 24% in Chrome Android)

2. Cross-document View Transitions:
• Also has LIMITED support status
• Newer feature with broader browser support:
    ○ Chrome/Edge: v126 (June 2024)
    ○ Safari: v18.2 (December 2024)
• Higher usage than same-document transitions

Available Tools

1. get_web_feature_baseline_status

Get comprehensive baseline information for one or more web platform features.

Parameters:

  • query (required): An array of strings with the names of the features to search for
  • include_browser_details (optional, default: true): Whether to include browser implementation details
  • include_usage_stats (optional, default: true): Whether to include usage statistics
  • include_test_results (optional, default: true): Whether to include test results from Web Platform Tests
  • include_specs (optional, default: true): Whether to include links to the feature's specifications
  • limit (optional, default: 10): The maximum number of results to return (between 1 and 20)

2. get_baseline_summary

Get an overview of the Baseline system and its status categories. This tool takes no parameters.

Resources

Development

To add new tools or modify existing ones:

  1. Add or modify the tool's logic in src/tools/baseline-tools.ts.
  2. Register the tool and its Zod schema in src/index.ts.

License

This project is licensed under the MIT License.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选