Skip to main content
Glama

MCP Think

by ddkang1
test_think.py819 B
"""Tests for the mcp-think package.""" import unittest from unittest.mock import patch, MagicMock import datetime from mcp_think.server import think class TestThinkTool(unittest.TestCase): """Test the think tool functionality.""" @patch('mcp_think.server.datetime') async def test_think_tool(self, mock_datetime): """Test that the think tool correctly logs thoughts.""" # Setup mock datetime mock_now = MagicMock() mock_now.isoformat.return_value = "2025-04-18T22:00:00" mock_datetime.datetime.now.return_value = mock_now # Call the think function thought = "This is a test thought" result = await think(thought) # Check the result self.assertEqual(result, thought) if __name__ == "__main__": unittest.main()

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/ddkang1/mcp-think'

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