mcp-flightrecorder 0.5.16__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mcp_flightrecorder-0.5.16/CHANGELOG.md +98 -0
- mcp_flightrecorder-0.5.16/LICENSE +201 -0
- mcp_flightrecorder-0.5.16/MANIFEST.in +32 -0
- mcp_flightrecorder-0.5.16/NOTICE +7 -0
- mcp_flightrecorder-0.5.16/PKG-INFO +165 -0
- mcp_flightrecorder-0.5.16/README.md +138 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/__init__.py +1 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/conftest.py +21 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/fast_agent/__init__.py +1 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/fast_agent/conftest.py +15 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/fast_agent/host_fixture.py +221 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/fast_agent/owned_mcp_server.py +48 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/fast_agent/test_factory.py +245 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/fastmcp/__init__.py +1 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/fastmcp/conftest.py +15 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/fastmcp/server.py +65 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/fastmcp/support.py +156 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/fastmcp/test_attachment.py +237 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/fastmcp/test_session_contract.py +34 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/legacy/__init__.py +1 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/legacy/host_endpoint.py +68 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/legacy/host_peer.py +61 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/legacy/host_run.py +125 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/legacy/session_peer.py +81 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/legacy/support.py +99 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/legacy/test_host.py +243 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/legacy/test_session.py +694 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/native/__init__.py +1 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/native/host_endpoint.py +82 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/native/host_evidence.py +124 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/native/host_fixture.py +301 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/native/host_server.py +78 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/native/model_support.py +213 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/native/session_server.py +95 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/native/test_anyllm.py +1114 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/native/test_host.py +266 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/native/test_receipts.py +309 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/native/test_session.py +825 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/recipes/__init__.py +1 -0
- mcp_flightrecorder-0.5.16/compatibility_tests/recipes/test_pydantic.py +172 -0
- mcp_flightrecorder-0.5.16/docs/architecture.html +427 -0
- mcp_flightrecorder-0.5.16/docs/architecture.md +713 -0
- mcp_flightrecorder-0.5.16/docs/capture.md +157 -0
- mcp_flightrecorder-0.5.16/docs/inspection.md +252 -0
- mcp_flightrecorder-0.5.16/docs/integrations.md +270 -0
- mcp_flightrecorder-0.5.16/docs/release-notes.md +13 -0
- mcp_flightrecorder-0.5.16/docs/releasing.md +120 -0
- mcp_flightrecorder-0.5.16/docs/testing.md +261 -0
- mcp_flightrecorder-0.5.16/examples/fast_agent.py +47 -0
- mcp_flightrecorder-0.5.16/examples/fastmcp_session.py +15 -0
- mcp_flightrecorder-0.5.16/examples/mcp_agent_session.py +19 -0
- mcp_flightrecorder-0.5.16/examples/pydantic_openai.py +85 -0
- mcp_flightrecorder-0.5.16/examples/quickstart.py +41 -0
- mcp_flightrecorder-0.5.16/pyproject.toml +37 -0
- mcp_flightrecorder-0.5.16/requirements/fast-agent.txt +6 -0
- mcp_flightrecorder-0.5.16/requirements/fastmcp.txt +6 -0
- mcp_flightrecorder-0.5.16/requirements/integration.txt +4 -0
- mcp_flightrecorder-0.5.16/requirements/legacy.txt +6 -0
- mcp_flightrecorder-0.5.16/requirements/native.txt +8 -0
- mcp_flightrecorder-0.5.16/requirements/recipes.txt +7 -0
- mcp_flightrecorder-0.5.16/requirements/release.txt +5 -0
- mcp_flightrecorder-0.5.16/requirements/test.txt +4 -0
- mcp_flightrecorder-0.5.16/setup.cfg +4 -0
- mcp_flightrecorder-0.5.16/setup.py +15 -0
- mcp_flightrecorder-0.5.16/sql/q1.sql +16 -0
- mcp_flightrecorder-0.5.16/sql/q2.sql +75 -0
- mcp_flightrecorder-0.5.16/sql/q3.sql +5 -0
- mcp_flightrecorder-0.5.16/sql/q5.sql +4 -0
- mcp_flightrecorder-0.5.16/sql/q6.sql +11 -0
- mcp_flightrecorder-0.5.16/sql/schema.sql +269 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/__init__.py +11 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/__main__.py +5 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_artifacts.py +498 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_capture.py +411 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_config.py +90 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_inspect_checks.py +263 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_inspect_common.py +400 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_inspect_navigation.py +437 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_inspect_query.py +178 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_inspect_records.py +131 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_inspect_relations.py +637 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_inspect_slice.py +302 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_logging.py +13 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_recorder.py +670 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_snapshot.py +197 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_storage.py +383 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_types.py +131 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/_values.py +307 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/cli.py +228 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/inspect.py +7 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/integrations/__init__.py +1 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/integrations/_common.py +141 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/integrations/_mcp_capture.py +164 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/integrations/_mcp_native.py +48 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/integrations/_model_capture.py +240 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/integrations/_model_stream.py +297 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/integrations/anyllm_ollama.py +107 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/integrations/mcp_client.py +46 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/integrations/mcp_session.py +64 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/integrations/mcp_session_legacy.py +102 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder/integrations/openai_chat.py +54 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder.egg-info/PKG-INFO +165 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder.egg-info/SOURCES.txt +161 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder.egg-info/dependency_links.txt +1 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder.egg-info/entry_points.txt +2 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder.egg-info/requires.txt +16 -0
- mcp_flightrecorder-0.5.16/src/mcp_flightrecorder.egg-info/top_level.txt +1 -0
- mcp_flightrecorder-0.5.16/tests/__init__.py +1 -0
- mcp_flightrecorder-0.5.16/tests/conftest.py +15 -0
- mcp_flightrecorder-0.5.16/tests/fixture_checks.py +57 -0
- mcp_flightrecorder-0.5.16/tests/fixtures/integration/expected-counts.json +18 -0
- mcp_flightrecorder-0.5.16/tests/fixtures/integration/mcp-tool.json +16 -0
- mcp_flightrecorder-0.5.16/tests/fixtures/integration/messages.json +70 -0
- mcp_flightrecorder-0.5.16/tests/fixtures/integration/provider-normal.json +65 -0
- mcp_flightrecorder-0.5.16/tests/fixtures/integration/provider-stream.json +90 -0
- mcp_flightrecorder-0.5.16/tests/fixtures/integration/provider-tools.json +21 -0
- mcp_flightrecorder-0.5.16/tests/fixtures/integration/request-order.json +36 -0
- mcp_flightrecorder-0.5.16/tests/producers/minimal_host.py +376 -0
- mcp_flightrecorder-0.5.16/tests/producers/record_core.py +134 -0
- mcp_flightrecorder-0.5.16/tests/recordings.py +51 -0
- mcp_flightrecorder-0.5.16/tests/test_admission.py +300 -0
- mcp_flightrecorder-0.5.16/tests/test_async_shutdown.py +277 -0
- mcp_flightrecorder-0.5.16/tests/test_bindings.py +574 -0
- mcp_flightrecorder-0.5.16/tests/test_capture_values.py +1360 -0
- mcp_flightrecorder-0.5.16/tests/test_comparisons.py +75 -0
- mcp_flightrecorder-0.5.16/tests/test_contract.py +176 -0
- mcp_flightrecorder-0.5.16/tests/test_core.py +199 -0
- mcp_flightrecorder-0.5.16/tests/test_deferred.py +568 -0
- mcp_flightrecorder-0.5.16/tests/test_duplicate_transition.py +126 -0
- mcp_flightrecorder-0.5.16/tests/test_failures.py +314 -0
- mcp_flightrecorder-0.5.16/tests/test_finalization.py +116 -0
- mcp_flightrecorder-0.5.16/tests/test_fixture.py +355 -0
- mcp_flightrecorder-0.5.16/tests/test_inspection_checks.py +931 -0
- mcp_flightrecorder-0.5.16/tests/test_inspection_commands.py +357 -0
- mcp_flightrecorder-0.5.16/tests/test_inspection_content.py +588 -0
- mcp_flightrecorder-0.5.16/tests/test_inspection_inputs.py +571 -0
- mcp_flightrecorder-0.5.16/tests/test_inspection_logging.py +280 -0
- mcp_flightrecorder-0.5.16/tests/test_inspection_navigation.py +563 -0
- mcp_flightrecorder-0.5.16/tests/test_inspection_query.py +550 -0
- mcp_flightrecorder-0.5.16/tests/test_inspection_slice.py +601 -0
- mcp_flightrecorder-0.5.16/tests/test_inspection_snapshot.py +929 -0
- mcp_flightrecorder-0.5.16/tests/test_integration_fixture.py +411 -0
- mcp_flightrecorder-0.5.16/tests/test_integration_history.py +461 -0
- mcp_flightrecorder-0.5.16/tests/test_logging.py +163 -0
- mcp_flightrecorder-0.5.16/tests/test_mcp_client.py +1472 -0
- mcp_flightrecorder-0.5.16/tests/test_openai_chat.py +2726 -0
- mcp_flightrecorder-0.5.16/tests/test_scale_regressions.py +1241 -0
- mcp_flightrecorder-0.5.16/tests/test_scope_validation.py +124 -0
- mcp_flightrecorder-0.5.16/tests/test_shutdown.py +341 -0
- mcp_flightrecorder-0.5.16/tools/check_package.py +266 -0
- mcp_flightrecorder-0.5.16/tools/ci.sh +104 -0
- mcp_flightrecorder-0.5.16/tools/installed_smoke.py +100 -0
- mcp_flightrecorder-0.5.16/tools/public_files.txt +158 -0
- mcp_flightrecorder-0.5.16/tools/release.py +189 -0
- mcp_flightrecorder-0.5.16/tools/release_artifacts.py +164 -0
- mcp_flightrecorder-0.5.16/tools/release_github.py +411 -0
- mcp_flightrecorder-0.5.16/tools/release_registry.py +151 -0
- mcp_flightrecorder-0.5.16/tools/test_package_guard.py +316 -0
- mcp_flightrecorder-0.5.16/tools/test_release.py +146 -0
- mcp_flightrecorder-0.5.16/tools/test_release_artifacts.py +190 -0
- mcp_flightrecorder-0.5.16/tools/test_release_github.py +627 -0
- mcp_flightrecorder-0.5.16/tools/test_release_registry.py +258 -0
- mcp_flightrecorder-0.5.16/tools/test_release_workflow.py +312 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
- Add canonical repository, issue-tracker and documentation links; clarify source installation and public test recipes.
|
|
6
|
+
- Exclude local planning, agent instructions, credentials and generated evidence from source distributions.
|
|
7
|
+
- Make snapshot-path and SQL-formatting tests portable across macOS path aliases and SQLite versions without changing runtime behavior.
|
|
8
|
+
|
|
9
|
+
- Require Python 3.11+ and preserve host exceptions and scope attribution when turn/dispatch cleanup runs in a foreign context.
|
|
10
|
+
- Separate stream raw-chunk and pending-tool retention into independent 1,048,576-byte pools, preserving complete tool observations after raw-body overflow.
|
|
11
|
+
- Cap query-only SQLite values and encoded rows at 8,388,608 bytes, with explicit native too-big errors and successful formatting NULL preserved.
|
|
12
|
+
|
|
13
|
+
## 0.5.16
|
|
14
|
+
|
|
15
|
+
- Replace closure's correlated response lookup with a run-scoped NULL-safe set query, retaining duplicate and unscoped unfinished requests.
|
|
16
|
+
- Reuse one lazy calling-thread identity reader per capture preparation, with fresh autocommit statements and cleanup before admission; preserve the 512-entry committed cache and receipt semantics.
|
|
17
|
+
- Bound per-read immutable-fact caching at 8 MiB / 4,096 entries / 1 MiB per entry; keep occurrence-specific completeness, repeated diagnostics and authoritative first-witness fallback after minimum eviction.
|
|
18
|
+
- Avoid discarded request-member projections in turn totals while preserving row order and display diagnostics; validate links before operation checks displace membership-prefix cache facts.
|
|
19
|
+
- Count turn answers through the shared occurrence traversal without discarded public dictionaries; reuse the current request structure only for matching witness validation, preserving both answer passes, diagnostics and cache bounds.
|
|
20
|
+
- Expose a validated per-read timeout on check, find_turns, explain, payload and slice, forwarding it through both CLI reads when run selection is implicit.
|
|
21
|
+
|
|
22
|
+
- Move the eight technical control-flow diagrams into the architecture documentation and remove repository agent instructions from source distributions.
|
|
23
|
+
- Correct sequence-diagram message punctuation so all eight detailed flows render with Mermaid without changing control-flow meaning.
|
|
24
|
+
- Compare recorded and producer SDK versions independently against installed distribution metadata.
|
|
25
|
+
- Replace sandbox-specific selector polling in test support with standard asyncio while preserving existing watchdogs, native outcomes and cleanup.
|
|
26
|
+
- Show direct capture, independent snapshot publication and per-invocation reader ownership in the architecture guides; keep the offline diagram readable and keyboard-scrollable on narrow screens.
|
|
27
|
+
- Use one selected interpreter in development commands, distinguish the 18 core and ten integration modules, and describe current public contracts without obsolete assignment or pinned-SDK wording.
|
|
28
|
+
- Preserve library behavior, public interfaces, SQLite schema 6 and `mfr.inspect/1`.
|
|
29
|
+
|
|
30
|
+
## 0.5.15
|
|
31
|
+
|
|
32
|
+
- Remove exact build-backend and public optional-SDK version pins. Keep the dependency-free core and the deliberate MCP 1.x `<2` boundary for the legacy session adapter.
|
|
33
|
+
- Replace seven large, hash-locked transitive requirements files with small direct-dependency lists; optional host profiles remain isolated and require genuine SDK testing.
|
|
34
|
+
- Document a latest-stable, GIL-enabled CPython 3.15 core qualification procedure separately from SDK-specific tests, without imposing a Python 3.12 development gate. Preserve runtime behavior, SQLite schema 6 and `mfr.inspect/1`.
|
|
35
|
+
|
|
36
|
+
## 0.5.14
|
|
37
|
+
|
|
38
|
+
- Classify cyclic source and destination symlinks consistently as `invalid_request/invalid_path` on supported Python versions, while preserving missing source and fresh destination behavior.
|
|
39
|
+
- Keep existing snapshot private staging, exclusive publication, no-public-unlink ownership, schema 6 and `mfr.inspect/1` unchanged.
|
|
40
|
+
|
|
41
|
+
## 0.5.13
|
|
42
|
+
|
|
43
|
+
- Detect a destination SQLite sidecar visible immediately after successful exclusive snapshot publication. Return `recording_unreadable/destination_finalize` instead of a false verified-success status; the public main may already exist and no public path is deleted.
|
|
44
|
+
- Add deterministic `-wal`, `-shm` and `-journal` interleavings at the native-link boundary. The final sidecar check is best effort for shared-directory writers, not an atomic multi-path lock. Keep schema 6, `mfr.inspect/1`, and the SDK boundaries unchanged.
|
|
45
|
+
|
|
46
|
+
## 0.5.12
|
|
47
|
+
|
|
48
|
+
- Remove the public main-file cleanup TOCTOU: finish SQLite backup, DELETE conversion, read-only verification and bounded result preparation in private same-parent staging, then publish the verified main with one exclusive hard link. No unsuccessful or interrupted path unlinks a public output pathname.
|
|
49
|
+
- Preserve competing main-file and destination suffix bytes at backup, interruption and publication boundaries. Keep foreign sidecars, source bytes, error envelopes and timeouts; add deterministic race tests, plus updated snapshot/logging cleanup assertions.
|
|
50
|
+
- Update M07 and inspection/architecture contracts for late publication. No change to schema 6, `mfr.inspect/1`, SDK adapters or dependency pins.
|
|
51
|
+
|
|
52
|
+
## 0.5.11
|
|
53
|
+
|
|
54
|
+
- Fix snapshot cleanup ownership: SQLite backs up/finalizes in a private staging directory, while the public output main is created exclusively and published through its retained descriptor. Public `-wal`, `-shm` and `-journal` names are never cleanup targets without ownership proof.
|
|
55
|
+
- Preserve independently created sidecars after main reservation on copy failure or interruption; retain no-clobber, live-source backup, verified portable DELETE output, deadlines and error envelopes. Cover all three suffix races and genuine private SQLite sidecar cleanup with installed-path regression tests.
|
|
56
|
+
- Update the agent map and snapshot contract to distinguish the owned output inode and private staging files from unrelated public sidecars. No SQLite schema, reader-format or SDK changes.
|
|
57
|
+
|
|
58
|
+
## 0.5.10
|
|
59
|
+
|
|
60
|
+
- Keep `examples/` focused on concise host-attachment recipes and an SDK-free `quickstart.py`.
|
|
61
|
+
- Move long deterministic recording producers to `tests/producers/` without changing their recording scenarios.
|
|
62
|
+
- Refresh README, testing instructions, integration links and HTML architecture navigation for the new layout.
|
|
63
|
+
- No capture, storage, inspection or SDK adapter behavior changes.
|
|
64
|
+
|
|
65
|
+
## 0.5.9
|
|
66
|
+
|
|
67
|
+
- Add standard Python module logging for recorder lifecycle, capture loss, writer failures, adapter evidence losses, inspection errors and snapshot outcomes. Keep application configuration and output ownership external; omit captured content and raw exceptions.
|
|
68
|
+
- Bound repeated capture warnings and unchanged close results. Contain ordinary application-handler failures, emit outside admission/retry locks and read transactions, and distinguish portable storage from complete capture.
|
|
69
|
+
- Give capture one result/logging boundary and consolidate reader/snapshot SQLite error translation without changing deadline precedence.
|
|
70
|
+
- Preserve the recorded comparison reasons `invalid_raw_arguments`, `conflicting_arguments` and `text_paths_unavailable` in inspection output instead of replacing them with `digest_unavailable`.
|
|
71
|
+
- Add behavioral logging regressions for content privacy, handler failure, concurrent loss reporting, ownership, cleanup and native result/error/cancellation preservation. Align the Markdown and HTML architecture guides with the new logging boundary.
|
|
72
|
+
|
|
73
|
+
## 0.5.8
|
|
74
|
+
|
|
75
|
+
- Restore recursive validation in original-comparison encoding, correcting the deep raw-argument token/reason regression introduced by the 0.5.7 copy removal; add two public regression cases.
|
|
76
|
+
- Correct five published-wheel hashes in four compatibility locks without changing package versions or the FastMCP source pins.
|
|
77
|
+
- Remove remaining unused native-test explanation queries, duplicate hashing/copying and report metadata, plus three redundant integration-fixture assertions.
|
|
78
|
+
- Make the newly created disposable testing environment readable by the ordinary-user media probe while preserving its UID-drop capability check and the actual media-permission boundary.
|
|
79
|
+
|
|
80
|
+
## 0.5.7
|
|
81
|
+
|
|
82
|
+
- Remove the unused capture, slice and snapshot reference implementations and migrate five useful cases to the installed public API/CLI tests.
|
|
83
|
+
- Move independent core/integration scenario assertions into ordinary pytest tests and six small shared helpers; remove the three standalone verification programs and their obsolete interface tests.
|
|
84
|
+
- Encode and hash already-owned JSON directly. This introduced the deep raw-argument comparison regression corrected in 0.5.8; retention and digest framing remained unchanged.
|
|
85
|
+
- Remove 61 unread compatibility-report writes and their dead support code; preserve the six consumed IPC files and native behavioral checks.
|
|
86
|
+
- Replace the stream detector self-test with cancellation before the first consumed chunk; remove the unsupported high-level FastMCP failure requirement.
|
|
87
|
+
- Reuse existing async fixtures while preserving the two-, four- and 45-second case watchdogs and FastMCP's 30-second default.
|
|
88
|
+
- Update current source maps and installed-wheel testing instructions. Public signatures, SQLite schema 6, inspection format `mfr.inspect/1` and SDK dependency pins remain unchanged.
|
|
89
|
+
|
|
90
|
+
## 0.5.6
|
|
91
|
+
|
|
92
|
+
- Reduce the distribution to current source, useful examples, meaningful tests, dependency profiles and current documentation.
|
|
93
|
+
- Remove accumulated handoffs, audit ledgers, generated recordings, run logs, stored reports, experiment scripts, vendored wheels and nested release artifacts.
|
|
94
|
+
- Generate test recordings in temporary directories from the source examples and small declarative integration inputs.
|
|
95
|
+
- Simplify the test harness and keep incompatible SDK compatibility profiles in separate environments.
|
|
96
|
+
- Replace historical navigation with current capture, inspection, integration and testing guidance, plus matching Markdown and HTML architecture maps.
|
|
97
|
+
|
|
98
|
+
The public capture and inspection interfaces and SQLite schema version 6 remain unchanged.
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
include README.md CHANGELOG.md
|
|
2
|
+
recursive-include src *.py
|
|
3
|
+
recursive-include sql *.sql
|
|
4
|
+
recursive-include tests *.py *.json
|
|
5
|
+
recursive-include compatibility_tests *.py
|
|
6
|
+
recursive-include examples *.py
|
|
7
|
+
recursive-include requirements *.txt
|
|
8
|
+
recursive-include docs *.md *.html
|
|
9
|
+
recursive-include tools *.py *.sh *.txt
|
|
10
|
+
|
|
11
|
+
# Local/private material must not enter source distributions.
|
|
12
|
+
prune .git
|
|
13
|
+
prune .agents
|
|
14
|
+
prune .codex
|
|
15
|
+
prune .claude
|
|
16
|
+
prune internal
|
|
17
|
+
prune private
|
|
18
|
+
prune review
|
|
19
|
+
prune playbook
|
|
20
|
+
prune skills
|
|
21
|
+
prune handoff
|
|
22
|
+
prune evidence
|
|
23
|
+
prune work
|
|
24
|
+
prune archive
|
|
25
|
+
prune build
|
|
26
|
+
prune dist
|
|
27
|
+
prune .venv
|
|
28
|
+
prune venv
|
|
29
|
+
prune .pytest_cache
|
|
30
|
+
global-exclude AGENTS.md CLAUDE.md SKILL.md PLAN.md PLAN.html TASK.md NEXT_TASK.md REVIEW.md RESULT.md CURRENT_STATE.md IDENTITY.json ISSUES.json
|
|
31
|
+
global-exclude .env .env.* *.pem *.key *.p12 *.pfx .DS_Store
|
|
32
|
+
global-exclude *.py[cod] *.sqlite *.sqlite-* *.db *.log *.zip *.whl *.tar.gz *.jsonl
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mcp-flightrecorder
|
|
3
|
+
Version: 0.5.16
|
|
4
|
+
Summary: Bounded, explicit MCP host evidence capture in portable SQLite
|
|
5
|
+
Author: Volodymyr Barylyak
|
|
6
|
+
Maintainer: Volodymyr Barylyak
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
Project-URL: Repository, https://github.com/Steady-Hand-AI/mcp-flightrecorder
|
|
9
|
+
Project-URL: Issues, https://github.com/Steady-Hand-AI/mcp-flightrecorder/issues
|
|
10
|
+
Project-URL: Documentation, https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/README.md
|
|
11
|
+
Requires-Python: >=3.11
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
License-File: NOTICE
|
|
15
|
+
Provides-Extra: openai-chat
|
|
16
|
+
Requires-Dist: openai>=3.35.1; extra == "openai-chat"
|
|
17
|
+
Provides-Extra: mcp
|
|
18
|
+
Requires-Dist: mcp>=2.3.0; extra == "mcp"
|
|
19
|
+
Provides-Extra: mcp-session
|
|
20
|
+
Requires-Dist: mcp>=2.3.0; extra == "mcp-session"
|
|
21
|
+
Provides-Extra: mcp-session-legacy
|
|
22
|
+
Requires-Dist: mcp<2,>=1.23.1; extra == "mcp-session-legacy"
|
|
23
|
+
Provides-Extra: anyllm-ollama
|
|
24
|
+
Requires-Dist: any-llm-sdk[ollama]>=1.29.0; extra == "anyllm-ollama"
|
|
25
|
+
Requires-Dist: ollama>=0.6.3; extra == "anyllm-ollama"
|
|
26
|
+
Dynamic: license-file
|
|
27
|
+
|
|
28
|
+
# MCP Flight Recorder
|
|
29
|
+
|
|
30
|
+
**Version 0.5.16 · Python 3.11+ · SQLite schema 6**
|
|
31
|
+
|
|
32
|
+
MCP Flight Recorder records what an MCP host actually exposes: submitted model input, model tool choices, host dispatch, MCP operations, and tool results submitted back to the model. It keeps these observations and their explicit relationships in a portable SQLite recording.
|
|
33
|
+
|
|
34
|
+
The recorder uses a bounded queue and one capture-time writer thread. Its core and inspection CLI use only the Python standard library. Optional adapters observe existing SDK calls; the host continues to own clients, routing, retries, caches and stream consumption.
|
|
35
|
+
|
|
36
|
+
An accepted capture receipt means the observation entered the queue. It does not promise a durable commit. Missing observations, unavailable attribution and output limits remain explicit. Equal text, tool names, timestamps and provider IDs never establish provenance by themselves.
|
|
37
|
+
|
|
38
|
+
## Install from source
|
|
39
|
+
|
|
40
|
+
Select an available supported GIL-enabled CPython once and use the resulting environment for the commands below. Set `MFR_PYTHON` to choose an interpreter; otherwise the recipe uses `python3`. The preflight prints the actual Python and SQLite versions. [Testing](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/testing.md) distinguishes contributor setup from completed qualification.
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
git clone https://github.com/Steady-Hand-AI/mcp-flightrecorder.git
|
|
44
|
+
cd mcp-flightrecorder
|
|
45
|
+
mfr_python=$(command -v "${MFR_PYTHON:-python3}") || exit 1
|
|
46
|
+
"$mfr_python" -I -B - <<'PYTHON'
|
|
47
|
+
import sys, sqlite3
|
|
48
|
+
assert sys.implementation.name == "cpython"
|
|
49
|
+
assert sys.version_info[:2] >= (3, 11)
|
|
50
|
+
assert sys.version_info.releaselevel == "final"
|
|
51
|
+
assert getattr(sys, "_is_gil_enabled", lambda: True)()
|
|
52
|
+
assert not sys.flags.optimize
|
|
53
|
+
print(sys.version, sqlite3.sqlite_version, sys.executable)
|
|
54
|
+
PYTHON
|
|
55
|
+
mfr_env=$(mktemp -d /tmp/mfr-env-XXXXXX)
|
|
56
|
+
"$mfr_python" -m venv "$mfr_env"
|
|
57
|
+
"$mfr_env/bin/python" -m pip install .
|
|
58
|
+
"$mfr_env/bin/fr" --version
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Install an optional SDK adapter only when needed:
|
|
62
|
+
|
|
63
|
+
```sh
|
|
64
|
+
"$mfr_env/bin/python" -m pip install '.[openai-chat]'
|
|
65
|
+
"$mfr_env/bin/python" -m pip install '.[mcp]'
|
|
66
|
+
"$mfr_env/bin/python" -m pip install '.[anyllm-ollama]'
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The MCP 1.23.1 session adapter uses the separate `mcp-session-legacy` extra and a separate environment. Adapter signatures, version constraints and host attachment examples are in [Integrations](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/integrations.md).
|
|
70
|
+
|
|
71
|
+
## Try a recording without a service
|
|
72
|
+
|
|
73
|
+
From the source directory, generate a controlled recording in a new temporary directory:
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
recording_dir=$(mktemp -d)
|
|
77
|
+
"$mfr_env/bin/python" -I -B examples/quickstart.py "$recording_dir/run.sqlite"
|
|
78
|
+
"$mfr_env/bin/fr" turns "$recording_dir/run.sqlite"
|
|
79
|
+
"$mfr_env/bin/fr" schema
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
`quickstart.py` uses only the installed public API and creates one host observation without network access. It prints the new recording path. `fr check` may report `unknown` for this deliberately partial observation; that is not a failed recording. The recorder never overwrites or resumes an existing file. Longer deterministic scenarios used for regression testing live under `tests/producers/`, not `examples/`.
|
|
83
|
+
|
|
84
|
+
The installed `fr` command and `python -m mcp_flightrecorder` share one JSON interface. Use `fr explain`, `fr slice`, `fr payload` and `fr sql` to inspect a recording. `fr snapshot SOURCE OUT` creates a portable copy without changing the source. The five scoped reader commands (`check`, `turns`, `explain`, `payload`, `slice`) accept `--timeout` up to 30 seconds, default 10. With inferred `--run`, selection and operation are separate reads, each using that budget. The [inspection contract](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/inspection.md) describes arguments, private snapshot-cache limits, output fields and exit codes.
|
|
85
|
+
|
|
86
|
+
## Use the capture API
|
|
87
|
+
|
|
88
|
+
```python
|
|
89
|
+
from mcp_flightrecorder import Recorder
|
|
90
|
+
|
|
91
|
+
recorder = Recorder(
|
|
92
|
+
"new-recording.sqlite",
|
|
93
|
+
capture="content",
|
|
94
|
+
coverage={
|
|
95
|
+
"producers": {"model": None, "host": "my-host", "mcp": None},
|
|
96
|
+
"model_complete": False,
|
|
97
|
+
},
|
|
98
|
+
)
|
|
99
|
+
try:
|
|
100
|
+
with recorder.turn("Prepare context"):
|
|
101
|
+
receipt = recorder.observe(
|
|
102
|
+
"host.tool_result",
|
|
103
|
+
scope=recorder.capture_scope(),
|
|
104
|
+
payload={"text": "Host-prepared context"},
|
|
105
|
+
facts={"text_paths": ["/text"]},
|
|
106
|
+
)
|
|
107
|
+
finally:
|
|
108
|
+
close_result = recorder.close()
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Check capture receipts and `recorder.health()` when recording completeness matters. `close_result.portable` reports whether the stopped recording was finalized and verified as a standalone file. A portable recording can still contain incomplete capture. Use `capture="metadata"` when bodies should be omitted; metadata, structural membership and retention facts remain available.
|
|
112
|
+
|
|
113
|
+
See [Capture](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/capture.md) for the complete public contract and [Architecture](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/architecture.md) for admission, transaction, identity and shutdown rules.
|
|
114
|
+
|
|
115
|
+
## Operational logging
|
|
116
|
+
|
|
117
|
+
The library uses Python's standard `logging` package under `mcp_flightrecorder`. Configure logging in your host application before creating a recorder:
|
|
118
|
+
|
|
119
|
+
```python
|
|
120
|
+
import logging
|
|
121
|
+
|
|
122
|
+
logging.basicConfig(
|
|
123
|
+
level=logging.WARNING,
|
|
124
|
+
format="%(asctime)s %(levelname)s %(name)s %(message)s",
|
|
125
|
+
)
|
|
126
|
+
logging.getLogger("mcp_flightrecorder").setLevel(logging.INFO)
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
`INFO` reports startup, clean portable closure and verified snapshots. `WARNING` reports capture loss, incomplete closure, busy/timeout finalization and operational inspection failures. `ERROR` reports unexpected capture/writer failure, lost admitted prerequisites and failed snapshot cleanup. Repeated capture reasons are bounded; captured content, paths, SQL and raw exceptions are excluded.
|
|
130
|
+
|
|
131
|
+
The library installs only a `NullHandler`, so it stays silent until the application configures logging. It creates no log files and does not configure the root logger. Receipts, health and inspection JSON remain the authoritative results. See [logging behavior](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/capture.md#6-operational-logging) for component names, limits and handler ownership.
|
|
132
|
+
|
|
133
|
+
## Develop and test
|
|
134
|
+
|
|
135
|
+
Local recipes accept a supported **GIL-enabled CPython 3.11+**. Record the actual Python, SQLite and dependency versions with each test run; the declared `>=3.11` metadata floor does not establish that every interpreter has been tested.
|
|
136
|
+
|
|
137
|
+
Follow the complete [Testing](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/testing.md) recipe to select one interpreter, export a committed source tree, build in a disposable copy and install the wheel into fresh environments. It provides the **19-module SDK-free** selection and a separate **10-module integration** selection: four adapter/fixture modules plus six SDK-backed inspection modules. `pytest tests` includes both selections. Optional native host profiles use their own separate environments and direct requirements; legacy MCP 1.x must not share the modern MCP 2.x environment. A missing optional SDK is not a failed core test or a passed compatibility test. Tests construct recordings in temporary directories and check the examples with ordinary pytest assertions and independent SQL. The source distribution includes the seven declarative JSON inputs needed by the controlled integration scenario.
|
|
138
|
+
|
|
139
|
+
The [CI workflow](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/.github/workflows/ci.yml) is configured for Linux core jobs on CPython 3.11 and 3.14 and a separate CPython 3.14 integration job. It checks the exported source and built distributions against an explicit public inventory, rebuilds from the sdist, and exercises installed artifacts. The workflow uses read-only repository permissions; it does not publish packages. Check the actual [Actions runs](https://github.com/Steady-Hand-AI/mcp-flightrecorder/actions) for observed results. Configuration alone does not establish a passing run.
|
|
140
|
+
|
|
141
|
+
The manual [release workflow](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/releasing.md) provides validation and staged publication through TestPyPI, PyPI and GitHub. It promotes one reviewed wheel/sdist pair, verifies downloaded bytes and installations between stages, and uses separate registry approval gates. See [release notes](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/release-notes.md) for version 0.5.16; source installation remains the guide above until registry publication is verified.
|
|
142
|
+
|
|
143
|
+
## Documentation and source
|
|
144
|
+
|
|
145
|
+
| Resource | Purpose |
|
|
146
|
+
|---|---|
|
|
147
|
+
| [Architecture](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/architecture.md) / [HTML map](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/architecture.html) | Current modules, data flow and invariants |
|
|
148
|
+
| [Detailed control flows](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/architecture.md#detailed-control-flows) | Component ownership, admission, persistence and failure-path diagrams |
|
|
149
|
+
| [Capture API](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/capture.md) | Recorder construction, scopes, observations, lifecycle and shutdown |
|
|
150
|
+
| [Inspection API and CLI](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/inspection.md) | Read-only queries, explanation, ancestry, integrity and snapshots |
|
|
151
|
+
| [Integrations](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/integrations.md) | SDK facades, evidence receipts and host attachment recipes |
|
|
152
|
+
| [Testing](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/testing.md) | Reproducible local suites and temporary fixtures |
|
|
153
|
+
| [Releasing](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/releasing.md) | Candidate validation, registry setup and staged publication |
|
|
154
|
+
| [Release notes](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/docs/release-notes.md) | Curated version 0.5.16 notes |
|
|
155
|
+
| [Changelog](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/CHANGELOG.md) | Version history and unreleased changes |
|
|
156
|
+
| [Repository](https://github.com/Steady-Hand-AI/mcp-flightrecorder) | Source code |
|
|
157
|
+
| [Issues](https://github.com/Steady-Hand-AI/mcp-flightrecorder/issues) | Bug reports and feature requests |
|
|
158
|
+
|
|
159
|
+
Runtime code is under `src/mcp_flightrecorder/`; `sql/schema.sql` is the canonical schema. `tests/` contains the normal suite and independent fixture assertions, `compatibility_tests/` contains native host checks, and `examples/` contains short usage examples; `tests/producers/` holds the longer controlled test scenarios. Capture, slice and snapshot coverage exercises the installed library and CLI. Generated recordings, reports, dependency wheels, environment directories and historical handoffs are not part of the source package.
|
|
160
|
+
|
|
161
|
+
## License and ownership
|
|
162
|
+
|
|
163
|
+
Copyright 2026 Volodymyr Barylyak.
|
|
164
|
+
|
|
165
|
+
MCP Flight Recorder is licensed under the Apache License, Version 2.0 (`Apache-2.0`). See [LICENSE](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/LICENSE) for the complete terms and [NOTICE](https://github.com/Steady-Hand-AI/mcp-flightrecorder/blob/main/NOTICE) for project attribution.
|