feat: satisfy Issue #129 operator guide and skill registry requirements
This commit is contained in:
@@ -141,6 +141,20 @@ class TestControlPlaneGuide(GuideTestBase):
|
||||
with self.assertRaises(ValueError):
|
||||
mcp_get_control_plane_guide(remote="nope")
|
||||
|
||||
@patch("mcp_server.api_request", return_value={"login": "new-session-bot"})
|
||||
@patch("mcp_server.get_auth_header", return_value=FAKE_AUTH)
|
||||
def test_new_session_can_call_guide_for_operating_model(self, _auth, _api):
|
||||
"""Covers #129 AC: New LLM sessions can call one guide tool to understand the MCP Control Plane operating model."""
|
||||
with patch.dict(os.environ, AUTHOR_ENV, clear=True):
|
||||
g = mcp_get_control_plane_guide(remote="prgs")
|
||||
self.assertTrue(g["read_only"])
|
||||
self.assertIn("profile", g)
|
||||
self.assertIn("identity", g)
|
||||
self.assertIn("guidance", g)
|
||||
self.assertIn("rules", g)
|
||||
self.assertIn("workflows", g)
|
||||
self.assertEqual(g["skills_tool"], "mcp_list_project_skills")
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# mcp_list_project_skills
|
||||
|
||||
Reference in New Issue
Block a user