# Fix: initialize advertises capabilities (tools / resources / prompts)

> Web-audit fix skill for the `mcp-capabilities` check (MCP & API, SHOULD).

## Goal

Advertise the capability groups your MCP server implements in the initialize result.

## Fix

Populate the `capabilities` object in your `initialize` result. Clients gate feature use on
it: an empty or missing `capabilities` tells a client nothing is available, so it will not
call `tools/list`, `resources/list`, or `prompts/list`. Advertise the groups your server
actually implements (for example `{ "tools": {} }`).

## Resources

- [MCP lifecycle](https://modelcontextprotocol.io/specification/2025-06-18/basic/lifecycle)

## Copy-paste prompt

Paste this into your coding agent, replacing the Issue line with the Result line from [your audit](https://anc.dev/web-audit):

```text
Goal: Advertise the capability groups your MCP server implements in the initialize result
Issue: <the audit's finding for this check>
Fix: Populate the `capabilities` object in your `initialize` result. Clients gate feature use on it: an empty or missing `capabilities` tells a client nothing is available, so it will not call `tools/list`, `resources/list`, or `prompts/list`. Advertise the groups your server actually implements (for example `{ "tools": {} }`).
Skill: https://anc.dev/web-audit/skill/mcp-capabilities
Docs: https://modelcontextprotocol.io/specification/2025-06-18/basic/lifecycle
```

## Verify

Re-run the audit at [https://anc.dev/web-audit](https://anc.dev/web-audit) or call the `audit_website` MCP tool; the `mcp-capabilities` check should report `pass`.
