magentaa11y-mcp-module
v3.0.0
Published
Embeddable MagentaA11y MCP tools, handlers, and data
Maintainers
Readme
MagentaA11y MCP Module
Embeddable tool definitions, handlers, query logic, and runtime data for the MagentaA11y MCP server. Importing this package has no startup side effects.
Install this package directly when adding MagentaA11y tools to another MCP server. Users running the standalone magentaa11y-mcp executable do not need to install it separately.
Register with an MCP server
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { registerMagentaA11yMcp } from 'magentaa11y-mcp-module';
const server = new McpServer({ name: 'my-combined-server', version: '1.0.0' });
server.registerTool('existing_tool', { description: 'Host tool' }, async () => ({
content: [{ type: 'text', text: 'Host response' }],
}));
registerMagentaA11yMcp(server);For the T-Mobile GitLab Package Registry, import the scoped package instead:
import { registerMagentaA11yMcp } from '@tmobile/magentaa11y-mcp-module';Registration is additive when used with the SDK's high-level McpServer: existing tools remain available, and duplicate names fail without leaving a partial registration. An empty low-level Server is also supported for dedicated wrappers such as the standalone package, but existing low-level tool handlers are never overwritten.
The package also exports tools, listMcpTools, callMcpTool, domain/query helpers, mcpServerInfo, and moduleMetadata. Its published tarball includes the generated criteria dataset and provenance metadata. Consumers do not need the source submodule or a post-install build.
License
MIT. The MagentaA11y criteria are © T-Mobile USA, Inc. and licensed under Apache 2.0.
