Skip to main content
Glama
inspirit941

Kakao Bot MCP Server

by inspirit941
toolhandler.py1.33 kB
from collections.abc import Sequence from mcp.types import ( Tool, TextContent, ImageContent, EmbeddedResource, ) from . import kauth EMAIL_ADDRESS_ARG = "__email_address__" class ToolHandler(): def __init__(self, tool_name: str): self.name = tool_name def get_account_descriptions(self) -> list[str]: return [a.to_description() for a in kauth.get_account_info()] # we ingest this information into every tool that requires a specified __email_address__. # we also add what information actually can be used (account info). This way Claude # will know what to do. def get_supported_emails_tool_text(self) -> str: return f"""This tool requires a authorized Google account email for {EMAIL_ADDRESS_ARG} argument. You can choose one of: {', '.join(self.get_account_descriptions())}""" def get_email_address_arg_schema(self) -> dict: return { "type": "string", "description": f"The EMAIL of the kakao account for which you are executing this action. Can be one of: {', '.join(self.get_account_descriptions())}" } def get_tool_description(self) -> Tool: raise NotImplementedError() def run_tool(self, args: dict) -> Sequence[TextContent | ImageContent | EmbeddedResource]: raise NotImplementedError()

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/inspirit941/kakao-bot-mcp-server'

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