chore: register YouTube and Microsoft Graph tools in tool/credential registries
This commit is contained in:
@@ -92,7 +92,9 @@ from .shell_config import (
|
||||
from .slack import SLACK_CREDENTIALS
|
||||
from .store_adapter import CredentialStoreAdapter
|
||||
from .stripe import STRIPE_CREDENTIALS
|
||||
from .microsoft_graph import MICROSOFT_GRAPH_CREDENTIALS
|
||||
from .telegram import TELEGRAM_CREDENTIALS
|
||||
from .youtube import YOUTUBE_CREDENTIALS
|
||||
|
||||
# Merged registry of all credentials
|
||||
CREDENTIAL_SPECS = {
|
||||
@@ -119,6 +121,8 @@ CREDENTIAL_SPECS = {
|
||||
**STRIPE_CREDENTIALS,
|
||||
**BREVO_CREDENTIALS,
|
||||
**POSTGRES_CREDENTIALS,
|
||||
**MICROSOFT_GRAPH_CREDENTIALS,
|
||||
**YOUTUBE_CREDENTIALS,
|
||||
}
|
||||
|
||||
__all__ = [
|
||||
@@ -168,4 +172,6 @@ __all__ = [
|
||||
"STRIPE_CREDENTIALS",
|
||||
"BREVO_CREDENTIALS",
|
||||
"POSTGRES_CREDENTIALS",
|
||||
"MICROSOFT_GRAPH_CREDENTIALS",
|
||||
"YOUTUBE_CREDENTIALS",
|
||||
]
|
||||
|
||||
@@ -77,10 +77,12 @@ from .telegram_tool import register_tools as register_telegram
|
||||
from .time_tool import register_tools as register_time
|
||||
from .vision_tool import register_tools as register_vision
|
||||
from .web_scrape_tool import register_tools as register_web_scrape
|
||||
from .microsoft_graph_tool import register_tools as register_microsoft_graph
|
||||
from .web_search_tool import register_tools as register_web_search
|
||||
|
||||
# Web and PDF tools
|
||||
from .wikipedia_tool import register_tools as register_wikipedia
|
||||
from .youtube_tool import register_tools as register_youtube
|
||||
|
||||
|
||||
def register_all_tools(
|
||||
@@ -161,6 +163,12 @@ def register_all_tools(
|
||||
# Postgres tool
|
||||
register_postgres(mcp, credentials=credentials)
|
||||
|
||||
# Microsoft Graph (Outlook, Teams, OneDrive)
|
||||
register_microsoft_graph(mcp, credentials=credentials)
|
||||
|
||||
# YouTube Data API
|
||||
register_youtube(mcp, credentials=credentials)
|
||||
|
||||
# Return the list of all registered tool names
|
||||
return list(mcp._tool_manager._tools.keys())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user