Merge pull request #300 from JackSpiece/fix/mcp-client-usage-examples

docs: add MCP client usage examples
This commit is contained in:
Alexander Myasoedov
2026-06-03 15:01:02 +03:00
committed by GitHub
7 changed files with 217 additions and 33 deletions
+13 -5
View File
@@ -4,9 +4,17 @@ from agentic_security.mcp.client import run
@pytest.mark.asyncio
async def test_mcp_echo_tool():
"""Test the echo tool functionality"""
async def test_mcp_client_lists_agentic_security_tools():
"""Test that the MCP client can discover the server tools."""
prompts, resources, tools = await run()
assert prompts
assert resources
assert tools
tool_names = {tool.name for tool in tools.tools}
assert prompts is not None
assert resources is not None
assert {
"verify_llm",
"start_scan",
"stop_scan",
"get_data_config",
"get_spec_templates",
}.issubset(tool_names)