Skip to main content
Glama
stereosky

Lenses MCP Server

by stereosky

delete_kafka_connector

Remove a Kafka connector from a specified environment and cluster to manage data integration workflows.

Instructions

Deletes a Kafka connector.

Args: environment: The environment name. cluster: The cluster name. connector: The connector name.

Returns: The result of the delete operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentYes
clusterYes
connectorYes

Implementation Reference

  • The async handler function decorated with @mcp.tool() that implements the delete_kafka_connector tool. It constructs the DELETE API endpoint and executes the request via api_client.
    @mcp.tool()
    async def delete_kafka_connector(
        environment: str,
        cluster: str,
        connector: str
    ) -> Dict[str, Any]:
        """
        Deletes a Kafka connector.
        
        Args:
            environment: The environment name.
            cluster: The cluster name.
            connector: The connector name.
        
        Returns:
            The result of the delete operation.
        """
        endpoint = f"/api/v1/environments/{environment}/proxy/api/kafka-connect/clusters/{cluster}/connectors/{connector}"
        return await api_client._make_request("DELETE", endpoint)
  • Top-level registration call that invokes the module registration function, which registers the delete_kafka_connector tool among others.
    register_kafka_connectors(mcp)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stereosky/lenses-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server