Skip to main content
Glama

Airtable OAuth MCP Server

by onimsha
test_simplified_oauth.pyโ€ข1.99 kB
#!/usr/bin/env python3 """Test script for simplified OAuth implementation with access token parameters.""" import asyncio from src.airtable_mcp.main import create_server async def test_simplified_oauth(): """Test the simplified OAuth implementation.""" print("๐Ÿš€ Testing Simplified Airtable OAuth MCP Server") print("=" * 50) # Create server server = create_server() print("โœ… Server created successfully") # Test available tools print("\n๐Ÿ”ง Testing available tools...") try: tools = await server.mcp.get_tools() print(f"โœ… Found {len(tools)} total tools") print("Available tools:") for tool_name in tools: print(f" - {tool_name}") except Exception as e: print(f"โŒ Tools listing error: {e}") # Test tool with fake token print("\n๐Ÿงช Testing tool with access token parameter...") try: # Try to get a tool to see its schema list_bases_tool = await server.mcp.get_tool("list_bases") print("โœ… list_bases tool found") print( "Tool schema includes access_token:", "access_token" in str(list_bases_tool.schema), ) except Exception as e: print(f"โŒ Tool schema error: {e}") print("\n๐ŸŽ‰ Simplified OAuth Implementation Summary:") print("=" * 50) print("โœ… Removed OAuth resources and MCP tools") print("โœ… Added access_token parameter to all tools") print("โœ… Simplified authentication via direct token passing") print() print("๐Ÿ“– Usage Instructions:") print("1. Run external OAuth setup script to get access token") print("2. Pass access_token parameter to each tool call") print("3. Use regular Airtable tools with token authentication") print() print("๐Ÿ”„ Simplified Flow:") print("External OAuth Setup โ†’ Access Token โ†’ MCP Tool Calls with Token Parameter") if __name__ == "__main__": asyncio.run(test_simplified_oauth())

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/onimsha/airtable-mcp-server-oauth'

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