Skip to main content
Glama

WorkFlowy MCP Server

by daniel347x
test_update_node.py1.38 kB
"""Contract tests for the workflowy_update_node MCP tool.""" import pytest from fastmcp import FastMCP class TestUpdateNodeContract: """Contract tests for node update tool.""" @pytest.mark.asyncio async def test_update_node_input_schema(self, mock_mcp_server: FastMCP) -> None: # noqa: ARG002 """Test that update_node accepts the correct input schema.""" from workflowy_mcp.server import mcp # Get tools from the actual server tools = await mcp.get_tools() # Find the tool assert "workflowy_update_node" in tools tool = tools["workflowy_update_node"] assert tool.name == "workflowy_update_node" assert tool.description is not None # Check parameters params = tool.parameters assert params["type"] == "object" assert "node_id" in params["properties"] assert "name" in params["properties"] assert "note" in params["properties"] assert "_completed" in params["properties"] assert params["required"] == ["node_id"] @pytest.mark.asyncio async def test_update_node_basic(self) -> None: """Test basic update_node operation.""" from ..tool_adapters import test_update_node # This will use mocked client result = await test_update_node({"id": "test-id"}) assert result is not None

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/daniel347x/workflowy-mcp-fixed'

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