novelai_image_mcp.tools

The 11 MCP tool functions. Each tool is async, takes an MCP Context as its first parameter, and returns a list of MCP content blocks (Image + text path).

See also

Tools reference for narrative docs covering every parameter, default, and example for each tool.

novelai_image_mcp.tools.generate

MCP tools: text-to-image, image-to-image, and inpainting.

novelai_image_mcp.tools.generate.register(mcp)[source]

Register the generation tools.

Parameters:

mcp (MCPServer)

Return type:

None

novelai_image_mcp.tools.enhance

MCP tools: upscale, Director tools, and ControlNet annotation.

novelai_image_mcp.tools.enhance.register(mcp)[source]

Register the image-enhancement tools.

Parameters:

mcp (MCPServer)

Return type:

None

novelai_image_mcp.tools.tags

MCP tools: prompt-tag suggestion and vibe encoding.

novelai_image_mcp.tools.tags.register(mcp)[source]

Register the tag-suggestion and vibe-encoding tools.

Parameters:

mcp (MCPServer)

Return type:

None

novelai_image_mcp.tools.account

MCP tools: account queries and Anlas cost estimation.

novelai_image_mcp.tools.account.register(mcp)[source]

Register the account and cost-estimation tools.

Parameters:

mcp (MCPServer)

Return type:

None

novelai_image_mcp.tools (registration entry point)

MCP tool registration entry point.

Each tool module exports a register(mcp) function that decorates its tool functions against the passed MCPServer instance. This avoids circular imports (tools do not import server) and keeps each tool group testable in isolation.

novelai_image_mcp.tools.register_all(mcp)[source]

Register every NovelAI tool group against mcp.

Parameters:

mcp (MCPServer)

Return type:

None