Skip to main content
Glama

MCP Claude Code

by SDGLBL
__init__.py945 B
"""Common utilities for MCP Claude Code tools.""" from fastmcp import FastMCP from mcp_claude_code.tools.common.base import BaseTool, ToolRegistry from mcp_claude_code.tools.common.batch_tool import BatchTool from mcp_claude_code.tools.common.thinking_tool import ThinkingTool def register_thinking_tool( mcp_server: FastMCP, ) -> list[BaseTool]: """Register thinking tools with the MCP server. Args: mcp_server: The FastMCP server instance """ thinking_tool = ThinkingTool() ToolRegistry.register_tool(mcp_server, thinking_tool) return [thinking_tool] def register_batch_tool(mcp_server: FastMCP, tools: dict[str, BaseTool]) -> None: """Register batch tool with the MCP server. Args: mcp_server: The FastMCP server instance tools: Dictionary mapping tool names to tool instances """ batch_tool = BatchTool(tools) ToolRegistry.register_tool(mcp_server, batch_tool)

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/SDGLBL/mcp-claude-code'

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