MCPcopy Create free account
hub / github.com/modelscope/modelscope / test_get_mcp_server

Method test_get_mcp_server

tests/mcp/test_mcp_api.py:57–64  ·  view source on GitHub ↗

Test get_mcp_server functionality and validation.

(self)

Source from the content-addressed store, hash-verified

55
56 @unittest.skipUnless(test_level() >= 0, 'skip test in current test level')
57 def test_get_mcp_server(self):
58 """Test get_mcp_server functionality and validation."""
59 result = self.api.get_mcp_server('@modelcontextprotocol/fetch')
60
61 # Verify response structure
62 for field in ['name', 'id', 'description', 'servers']:
63 self.assertIn(field, result)
64 self.assertEqual(result['id'], '@modelcontextprotocol/fetch')
65
66
67if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

get_mcp_serverMethod · 0.80

Tested by

no test coverage detected