Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
4e7bf67
refactor: Use GitPython instead of git in command line
iburel Aug 8, 2025
67c1ec3
fix: properly use GitPython subcommands
NicolasIRAGNE Aug 8, 2025
e143f24
fix: properly use GitPython subcommands
NicolasIRAGNE Aug 8, 2025
b5a1af3
feat: add MCP (Model Context Protocol) server support
iburel Aug 8, 2025
3fa790e
test: add comprehensive MCP server testing and documentation
iburel Aug 8, 2025
cac4faf
test: add comprehensive MCP server testing and documentation
NicolasIRAGNE Aug 9, 2025
4a64fb4
fix: use mcp==1.12.4 instead of mcp>=1.0.0
Aug 12, 2025
81fdf80
drop support for Python 3.8/3.9, require 3.10+
Aug 12, 2025
2baa72b
fix: update test assertions to match GitPython implementation
Aug 12, 2025
61c4bb0
style: apply pre-commit fixes
Aug 12, 2025
b672b8f
style: apply additional pre-commit fixes
Aug 12, 2025
0d419d4
fix: prevent exception information exposure in MCP server
Aug 12, 2025
cee4735
fix: remove problematic docs and fix markdown formatting
Aug 12, 2025
3072551
fix: remove problematic files to fix CI
Aug 12, 2025
642f930
fix: resolve CodeQL security issues and pre-commit hook violations
Aug 12, 2025
289a642
fix: update mcp_server tests to match changed logging calls
Aug 12, 2025
577f6de
fix: disable pylint import-error for optional MCP dependency
Aug 12, 2025
83f0ecd
fix: correct token value in test to match expected value
Aug 12, 2025
f599bfa
fix: suppress remaining dynamic import violations
Aug 12, 2025
46e9749
fix: resolve all pre-commit hook violations
Aug 12, 2025
9869051
refactor to run with --mcp and add metrics
NicolasIRAGNE Aug 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: update mcp_server tests to match changed logging calls
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
  • Loading branch information
2 people authored and NicolasIRAGNE committed Aug 24, 2025
commit 289a642120c66f131b142e46bb8d5079a1c7d221
14 changes: 6 additions & 8 deletions tests/test_mcp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,9 @@ async def test_call_tool_logs_errors(self):

await call_tool("ingest_repository", {"source": "test"})

mock_logger.error.assert_called_once()
args, kwargs = mock_logger.error.call_args
assert "Error in tool call ingest_repository: Test exception" in args[0]
assert kwargs.get("exc_info") is True
mock_logger.exception.assert_called_once()
args, kwargs = mock_logger.exception.call_args
assert "Error in tool call ingest_repository" in args[0]


class TestHandleIngestRepository:
Expand Down Expand Up @@ -267,10 +266,9 @@ async def test_handle_ingest_repository_exception(self):
assert "Error ingesting repository: Ingestion failed" in result[0].text

# Verify error was logged
mock_logger.error.assert_called_once()
args, kwargs = mock_logger.error.call_args
assert "Error during ingestion: Ingestion failed" in args[0]
assert kwargs.get("exc_info") is True
mock_logger.exception.assert_called_once()
args, kwargs = mock_logger.exception.call_args
assert "Error during ingestion" in args[0]

@pytest.mark.asyncio
async def test_handle_ingest_repository_logs_info(self):
Expand Down