Skip to main content
Glama

stop_project

Terminate the MCP-TY server's ty type checker process to free up system resources when analysis is complete.

Instructions

Stop ty and release resources.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implementation of the stop_project tool which stops the LSP client and releases resources.
    @mcp.tool()
    async def stop_project() -> str:
        """Stop ty and release resources."""
        global _lsp_client
    
        if _lsp_client is None:
            return _ok({"stopped": True, "message": "No active project"})
    
        try:
            await _lsp_client.stop()
            _lsp_client = None
            return _ok({"stopped": True})
        except Exception as e:
            return _error(str(e))

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/qinsehm1128/mcp-ty'

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