o
    i                     @   s   d Z ddlZddlmZ ddlmZmZmZmZ e Z	G dd deZ
e
dZe
dZeje	d	d
 eje	dd
 dd ZedkrMee  e	  dS dS )z'Sample code for FastMCP using MCPMixin.    N)FastMCP)MCPMixin
mcp_promptmcp_resourcemcp_toolc                   @   sB   e Zd Zdd Ze dd Zedddd Ze d	d
 Z	dS )Samplec                 C   s
   || _ d S )Nname)selfr	    r   g/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/fastmcp/contrib/mcp_mixin/example.py__init__   s   
zSample.__init__c                 C      d| j  dS )zFirst tool description.zExecuted tool .r   r
   r   r   r   
first_tool      zSample.first_toolztest://test)uric                 C   r   )zFirst resource description.zExecuted resource r   r   r   r   r   r   first_resource   r   zSample.first_resourcec                 C   r   )zFirst prompt description.zhere's a prompt! r   r   r   r   r   r   first_prompt   r   zSample.first_promptN)
__name__
__module____qualname__r   r   r   r   r   r   r   r   r   r   r   r      s    

r   FirstSecondfirst)
mcp_serverprefixsecondc                      sV   t d t dtt I d H  t dtt I d H  t dtt I d H  d S )Nz0MCP Server running with registered components...zTools:z
Resources:zPrompts:)printlistmcp	get_toolsget_resourcesget_promptsr   r   r   r   list_components+   s
   r%   __main__)__doc__asynciofastmcpr   fastmcp.contrib.mcp_mixinr   r   r   r   r!   r   first_samplesecond_sampleregister_allr%   r   runr   r   r   r   <module>   s    