mcp

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mcp provides a Model Context Protocol server for agent-a11y.

MCP allows AI assistants like Claude Code to use agent-a11y as a tool for accessibility auditing. The server exposes tools for:

  • Auditing single pages
  • Auditing entire sites
  • Running journey-based audits
  • Generating VPAT reports
  • Checking specific WCAG criteria

Index

Constants

View Source
const Version = "0.1.0"

Version is the MCP server version.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements an MCP server for accessibility auditing.

func NewServer

func NewServer(cfg ServerConfig) (*Server, error)

NewServer creates a new MCP server.

func (*Server) Close

func (s *Server) Close() error

Close releases resources used by the server.

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

Serve starts the MCP server using stdio transport.

type ServerConfig

type ServerConfig struct {
	Headless bool
	Level    a11y.Level
	Version  a11y.Version
	Logger   *slog.Logger
}

ServerConfig contains configuration for the MCP server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL