Skip to content
Developer Preview

MuseCapabilityNotGrantedError

A session open asked for something the host did not grant on this connection: today, per-session MCP servers (config["mcpServers"]) without the sessionMcp capability. Refused before anything is sent; the client stays usable, and an open without that request still goes through.

Class in muse_code

MuseCapabilityNotGrantedError(capability: str, method: str, reason: str)

Name Type Description
capability The capability the request needs.
method The wire method that was refused.
reason Why the grant is missing.
Source

clients/sdk-py/src/muse_code/errors.py:141