Skip to content

fix(mcp): remove invalid kwargs from mount() + singleton MCPMountManager#2646

Open
windoliver wants to merge 1 commit intodevelopfrom
fix/mcp-service-mount-singleton
Open

fix(mcp): remove invalid kwargs from mount() + singleton MCPMountManager#2646
windoliver wants to merge 1 commit intodevelopfrom
fix/mcp-service-mount-singleton

Conversation

@windoliver
Copy link
Collaborator

Summary

  • Remove tier and context kwargs from manager.mount() call — MCPMountManager.mount() only accepts mount_config parameter, passing extra kwargs caused TypeError at runtime
  • Cache MCPMountManager as singleton per MCPService instance to avoid re-creating the manager (and losing mount state) on every RPC call

Test plan

  • 33 MCP E2E tests passing (0 skipped, 0 failed) in nexus-test repo
  • Pre-commit hooks pass (ruff, mypy, format)
  • CI pipeline

- Remove tier/context kwargs from manager.mount() call — MCPMountManager.mount()
  only accepts mount_config parameter
- Cache MCPMountManager as singleton per MCPService instance to avoid
  re-creating manager (and losing mount state) on every operation
@github-actions
Copy link
Contributor

Type Safety Progress 📉

Current: 422 type: ignore comments
Baseline: 531 (Phase 3 start)
Change: -109

✅ Progress! Keep eliminating type suppressions!

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.30.

Benchmark suite Current: f37bee5 Previous: 30da0de Ratio
tests/benchmarks/test_core_operations.py::TestFileOperationBenchmarks::test_write_small_file 234.63962508491775 iter/sec (stddev: 0.0008376761000696998) 308.6777033785906 iter/sec (stddev: 0.0004416906054584609) 1.32
tests/benchmarks/test_core_operations.py::TestFileOperationBenchmarks::test_read_small_file 4181.91065258942 iter/sec (stddev: 0.00004041290909377515) 22119.537635818244 iter/sec (stddev: 0.000009150145388643872) 5.29
tests/benchmarks/test_core_operations.py::TestFileOperationBenchmarks::test_read_cached_file 4407.286088609299 iter/sec (stddev: 0.00002757011026373213) 22553.67225363441 iter/sec (stddev: 0.00000811768569045049) 5.12
tests/benchmarks/test_core_operations.py::TestPermissionBenchmarks::test_permission_check_bulk_rust 3997.750535382709 iter/sec (stddev: 0.0002669099658117026) 5504.002659905066 iter/sec (stddev: 0.00000974807087378153) 1.38
tests/benchmarks/test_core_operations.py::TestBulkOperationBenchmarks::test_read_bulk_10 1210.8661420113751 iter/sec (stddev: 0.00040869358086208907) 1866.8296649145318 iter/sec (stddev: 0.000028622934463952593) 1.54
tests/benchmarks/test_service_delegation.py::TestGatewayDelegationOverhead::test_gateway_metadata_get 35219.19411862206 iter/sec (stddev: 0.00270785271585147) 49912.11002902808 iter/sec (stddev: 0.001874386108561643) 1.42

This comment was automatically generated by workflow using github-action-benchmark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant