final tools setup mcp
This commit is contained in:
+3
-3
@@ -176,7 +176,7 @@ class MCPAIClient:
|
||||
async def list_available_components(self):
|
||||
"""List all available tools, prompts, and resources."""
|
||||
print("\n" + "="*60)
|
||||
print("📋 AVAILABLE MCP COMPONENTS")
|
||||
print("AVAILABLE MCP COMPONENTS")
|
||||
print("="*60)
|
||||
|
||||
# List available tools
|
||||
@@ -187,13 +187,13 @@ class MCPAIClient:
|
||||
|
||||
# List available prompts
|
||||
prompts_result = await self.session.list_prompts()
|
||||
print(f"\n💬 Prompts ({len(prompts_result.prompts)}):")
|
||||
print(f"\n Prompts ({len(prompts_result.prompts)}):")
|
||||
for prompt in prompts_result.prompts:
|
||||
print(f" • {prompt.name}: {prompt.description}")
|
||||
|
||||
# List available resources
|
||||
resources_result = await self.session.list_resources()
|
||||
print(f"\n📄 Resources ({len(resources_result.resources)}):")
|
||||
print(f"\n Resources ({len(resources_result.resources)}):")
|
||||
for resource in resources_result.resources:
|
||||
print(f" • {resource.uri}: {resource.name}")
|
||||
if resource.description:
|
||||
|
||||
Reference in New Issue
Block a user