@@ -86,23 +86,26 @@ def test_streamable_http_server(mcp_yaml_config_file: Path):
8686def test_npx_filesystem_server (mcp_yaml_config_file : Path ):
8787 """Test the filesystem server configuration with full command string and multiple arguments."""
8888 config = MCPServersConfig .from_file (mcp_yaml_config_file )
89-
89+
9090 # Should have the filesystem server
9191 assert "filesystem" in config .servers
92-
92+
9393 # Verify the server configuration
9494 filesystem_server = config .servers ["filesystem" ]
9595 assert isinstance (filesystem_server , StdioServerConfig )
9696 assert filesystem_server .type == "stdio" # Should be auto-inferred from command field
97- assert filesystem_server .command == "npx -y @modelcontextprotocol/server-filesystem /Users/username/Desktop /path/to/other/allowed/dir"
97+ assert (
98+ filesystem_server .command
99+ == "npx -y @modelcontextprotocol/server-filesystem /Users/username/Desktop /path/to/other/allowed/dir"
100+ )
98101 assert filesystem_server .args is None # No explicit args
99102 assert filesystem_server .env is None # No environment variables
100-
103+
101104 # Test the effective command and args parsing
102105 assert filesystem_server .effective_command == "npx"
103106 assert filesystem_server .effective_args == [
104- "-y" ,
105- "@modelcontextprotocol/server-filesystem" ,
106- "/Users/username/Desktop" ,
107- "/path/to/other/allowed/dir"
107+ "-y" ,
108+ "@modelcontextprotocol/server-filesystem" ,
109+ "/Users/username/Desktop" ,
110+ "/path/to/other/allowed/dir" ,
108111 ]
0 commit comments