Skip to content

Implement configuration function to customize MCP server#3796

Open
KoolADE85 wants to merge 1 commit into
mcpfrom
feature/mcp-configuration-function
Open

Implement configuration function to customize MCP server#3796
KoolADE85 wants to merge 1 commit into
mcpfrom
feature/mcp-configuration-function

Conversation

@KoolADE85
Copy link
Copy Markdown
Contributor

This PR adds a function to configure the MCP server behaviour:

Rather than add a growing list of constructor args around the MCP server, this PR implements a single configure_mcp_server() function that allows users to toggle various parts of the server with arguments:

def configure_mcp_server(
    *,
    include_layout: bool = True,
    include_callbacks: bool = True,
    include_clientside_callbacks: bool = True,
    include_pages: bool = True,
    expose_callback_docstrings: bool = False,
) -> None:

The existing mcp_expose_docstrings constructor arg has been removed and replaced by this function.

@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant