Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/Vibe-Trading
/ functions
Functions
26,887 in github.com/HKUDS/Vibe-Trading
⨍
Functions
26,887
◇
Types & classes
2,943
↳
Endpoints
204
Function
test_max_drawdown_stays_zero_on_an_all_up_path
()
agent/tests/test_options_portfolio_correctness.py:285
Function
test_max_drawdown_without_a_datetime_index_omits_calendar_days
()
agent/tests/quantlib/test_risk.py:283
Function
test_max_grounding_symbols_falls_back_on_invalid_env
(monkeypatch)
agent/tests/test_swarm_grounding.py:198
Function
test_max_grounding_symbols_uses_env
(monkeypatch)
agent/tests/test_swarm_grounding.py:193
Method
test_max_iterations
(self)
agent/tests/test_run_outcome_module.py:148
Function
test_max_periods_caps_returned_rows
()
agent/tests/test_shareholder_count_tool.py:108
Method
test_max_points_keeps_the_most_recent
(self, monkeypatch)
agent/tests/test_prediction_market_tool.py:932
Method
test_max_records_caps_a_page_below_the_budget
(self)
agent/tests/test_tool_result_paging.py:104
Method
test_max_results
(self, tmp_path: Path)
agent/tests/test_persistent_memory.py:411
Function
test_max_results_capped_at_10
max_results is clamped to 10.
agent/tests/test_web_search_tool.py:262
Method
test_max_results_with_semantic_links
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
agent/tests/test_persistent_memory.py:418
Function
test_max_rows_clamped
(run_dir: Path, monkeypatch: pytest.MonkeyPatch)
agent/tests/test_run_artifact_tool.py:169
Function
test_max_rows_zero_disables_cap
(monkeypatch)
agent/tests/test_get_market_data_size.py:58
Method
test_max_sessions_limit
(self, index: SessionSearchIndex)
agent/tests/test_session_search.py:86
Method
test_maximum_tier
(self)
agent/tests/test_crypto_engine.py:514
Function
test_mcp_buy_limit_above_quote_is_blocked_at_the_limit
qty=5, quote=$100, limit=$200, cap=$750: worst-case fill $1000 must be enforced at the limit, so the order is BLOCKED, never forwarded.
agent/tests/test_limit_price_notional.py:154
Function
test_mcp_buy_limit_below_quote_keeps_the_quote
A limit at or below the market is maximally fillable at the quote, so a $80 limit on a $100 quote must be sized at $100, not the (lower) limit.
agent/tests/test_limit_price_notional.py:172
Function
test_mcp_connector_discovery_exposes_onboarding_contract_without_values
()
agent/tests/test_local_connections.py:218
Function
test_mcp_equity_entry_cannot_forward_an_option
Reject option aliases on the real gate path before any order is sent.
agent/tests/test_mandate_enforcement.py:319
Function
test_mcp_floor_includes_the_session_reclamation_fix
``--transport http`` needs mcp>=1.30 (CVE-2026-59951). Before 1.30 a stateful Streamable HTTP server never reclaimed sessions: no expiry, a D
agent/tests/test_mcp_oauth_schema.py:517
Function
test_mcp_garbage_limit_price_denies_fail_closed
A present-but-unparseable limit price is forwarded to the broker verbatim and cannot be priced → DENY (fail-closed), never a wave-through.
agent/tests/test_limit_price_notional.py:219
Function
test_mcp_get_market_data_carries_provenance
(monkeypatch)
agent/tests/test_get_market_data_provenance.py:52
Function
test_mcp_get_market_data_row_shape_unchanged
The fix must not alter the per-symbol row payload itself, only add the additive _provenance key alongside it.
agent/tests/test_get_market_data_provenance.py:59
Function
test_mcp_get_research_reports_forwards_the_date_window
()
agent/tests/test_mcp_research_reports_date_window.py:32
Function
test_mcp_get_sec_filings_offset_reaches_the_second_page
()
agent/tests/test_mcp_sec_financial_offset_paging.py:61
Function
test_mcp_guard_serializes_the_daily_cap_with_submission
MCP placements share the same one-permit transaction as SDK orders.
agent/tests/test_mandate_enforcement.py:335
Function
test_mcp_load_skill_error_shape_preserved
An unknown skill must still surface as a clean error, not an exception.
agent/tests/test_mcp_load_skill_paging.py:52
Function
test_mcp_load_skill_short_skill_still_whole_and_uncorrupted
A skill under the cap must still return complete, byte-identical content — the registry envelope adds paging metadata (mode, offset, next_offs
agent/tests/test_mcp_load_skill_paging.py:38
Function
test_mcp_load_skill_stays_within_tool_result_limit
An oversized skill must be capped and pageable through MCP too, not returned whole.
agent/tests/test_mcp_load_skill_paging.py:26
Function
test_mcp_market_order_without_limit_is_unchanged
(live_runtime: Path)
agent/tests/test_limit_price_notional.py:188
Function
test_mcp_prose_states_the_real_count
The MCP section paragraph must state the real tool count.
agent/tests/test_readme_counts.py:276
Function
test_mcp_registry_omits_shell_tools_under_default_policy
A registry built with the server's fail-closed default omits bash tools.
agent/tests/test_mcp_regression.py:226
Function
test_mcp_resolve_shell_tools_cli_opt_in
The --enable-shell-tools flag turns shell tools on even with env unset.
agent/tests/test_mcp_regression.py:210
Function
test_mcp_resolve_shell_tools_env_opt_in
VIBE_TRADING_ENABLE_SHELL_TOOLS=1 turns shell tools on without the flag.
agent/tests/test_mcp_regression.py:218
Function
test_mcp_resolve_shell_tools_off_without_opt_in
No CLI flag + no env var => shell tools stay off, regardless of transport.
agent/tests/test_mcp_regression.py:202
Function
test_mcp_robinhood_wildcard_zero_tools_warning_names_safe_allowlist
( caplog: pytest.LogCaptureFixture, )
agent/tests/test_agent_config.py:464
Function
test_mcp_run_result_rejects_path_shaped_run_id_without_outside_write
MCP result lookups must not treat run_id as a filesystem path. HTTP swarm routes already reject traversal-shaped run ids; the MCP status tool
agent/tests/test_swarm_status_hydration.py:699
Function
test_mcp_sell_limit_keeps_the_quote
A sell limit does not create exposure, so a $200 sell limit on a $100 quote must be sized at the quote (mirrors the SDK gate).
agent/tests/test_limit_price_notional.py:202
Function
test_mcp_server_exposes_expected_tool_count
The MCP server FastMCP instance must expose the expected number of tools. 35 tools are documented. We use >= 30 as the floor to tolerate minor
agent/tests/test_mcp_regression.py:118
Function
test_mcp_server_exposes_well_known_tool_names
Well-known tool names must be registered on the MCP server instance. Uses the public async list_tools() API for stability across fastmcp upgrades
agent/tests/test_mcp_regression.py:140
Function
test_mcp_server_happy_path
End-to-end smoke check for ``vibe-trading-mcp``. Verifies (1) the JSON-RPC handshake completes, (2) the tool catalogue is registered, and (3)
agent/tests/test_mcp_server_smoke.py:136
Function
test_mcp_server_http_transport
()
agent/tests/test_mcp_server_http_transport.py:50
Function
test_mcp_server_imports_without_raising
agent/mcp_server.py must import cleanly (no side-effects on import).
agent/tests/test_mcp_regression.py:108
Function
test_mcp_server_main_runs_migration
( monkeypatch: pytest.MonkeyPatch, record_migration: list[int] )
agent/tests/test_state_migration_wiring.py:35
Function
test_mcp_server_module_default_shell_tools_off
The module-level default must be fail-closed (no shell tools).
agent/tests/test_mcp_regression.py:195
Function
test_mcp_stdio_projects_redacted_swarm_metadata
(tmp_path: Path)
agent/tests/test_mcp_server_smoke.py:241
Function
test_mcp_tool_count_covers_the_mirrored_tools
The MCP surface must not shrink below the documented 59 tools.
agent/tests/test_mcp_new_tools.py:102
Function
test_mcp_tool_heading_matches_registered_tools
The manifest heading must match the tools the server actually serves. Counting ``@mcp.tool`` decorators counts only the hand-written wrappers and
agent/tests/test_distribution_skill_manifest.py:112
Function
test_mcp_tools_are_injected_and_come_after_local_tools
MCP tools must be appended after local tools, preserving local order.
agent/tests/test_registry_mcp_integration.py:70
Function
test_mcp_tools_are_not_readonly
All MCP tools injected into the registry must have is_readonly=False.
agent/tests/test_registry_mcp_integration.py:139
Function
test_mcp_tools_registration_order_matches_config_order
Tools from the same server are registered in discovery order.
agent/tests/test_registry_mcp_integration.py:94
Function
test_mcp_tools_that_bypass_the_registry_still_honour_the_deny_list
`backtest` and `web_search` are MCP tools that call their code directly.
agent/tests/test_provider_agnostic_tool_policy.py:285
Function
test_mcp_wrapper_builds_the_payload_and_delegates
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_paper_trade_tool.py:409
Function
test_mcp_wrapper_description_carries_the_frozen_phrase
()
agent/tests/test_paper_trade_tool.py:450
Function
test_mcp_wrapper_end_to_end_matches_the_core_offline
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_paper_trade_tool.py:457
Function
test_mcp_wrapper_exposes_the_same_research_calculation
The public MCP wrapper delegates to the Agent tool without mutation.
agent/tests/test_options_payoff_tool.py:82
Function
test_mcp_wrapper_omits_absent_optional_keys
(monkeypatch: pytest.MonkeyPatch)
agent/tests/test_paper_trade_tool.py:435
Function
test_mean_adjusted_model_ignores_the_market
()
agent/tests/quantlib/test_eventstudy.py:55
Function
test_measure_usage_cache_creation_sums_all_three_keys
()
agent/tests/test_swarm_cache_source.py:59
Function
test_measure_usage_captures_cache_read_and_labels_provider
()
agent/tests/test_swarm_cache_source.py:44
Function
test_measure_usage_falls_back_to_len_heuristic_and_labels_estimated
()
agent/tests/test_swarm_cache_source.py:109
Function
test_measure_usage_labels_all_zero_usage_metadata_as_estimated
An all-zero usage payload is 'no real data' — the heuristic takes over and the label must say so, never 'provider'.
agent/tests/test_swarm_cache_source.py:120
Function
test_measure_usage_matches_normalize_llm_usage_per_key
The swarm must not grow a second cache-normalization contract: for every payload shape, ``_measure_usage`` returns exactly what ``_normalize_l
agent/tests/test_swarm_cache_source.py:86
Function
test_measurement_shapes_must_be_declared
§3: a decimal, a percent, a currency mark or a table cell is a claim.
agent/tests/test_grounding_figures_contract.py:312
Function
test_media_dir_is_within_allowed_file_roots
(tmp_path, monkeypatch)
agent/tests/test_channel_media_roots.py:18
Function
test_media_dir_lives_under_uploads_root
(tmp_path, monkeypatch)
agent/tests/test_channel_media_roots.py:8
Method
test_medium_is_rejected_naming_the_accepted_values
kimi-k3.1 has no medium level; fail fast instead of at the API. Moonshot publishes low/high/max only, so a stored 'medium' would 400
agent/tests/test_llm_reasoning_effort.py:365
Method
test_medium_position
(self)
agent/tests/test_crypto_engine.py:504
Method
test_medium_stays_allowed_where_the_field_is_never_sent
Validation rides the send decision: no send, no rejection. A relayed URL or an uncovered model never receives the field, so the store
agent/tests/test_llm_reasoning_effort.py:381
Method
test_membership_default_mode_when_only_code
(self)
agent/tests/test_sector_tool.py:84
Method
test_membership_parses_boards
(self)
agent/tests/test_sector_tool.py:53
Function
test_memory_defaults_honor_vibe_trading_home
(tmp_path)
agent/tests/test_memory_runtime_root.py:12
Method
test_memory_entry_new_fields_defaults
category='' and compression_level='raw' by default.
agent/tests/test_persistent_memory.py:640
Function
test_memory_forget_ambiguous_stem_preserves_both_entries
(tmp_path)
agent/tests/test_ux_batch_regressions.py:60
Method
test_memory_forget_parses
(self)
agent/tests/test_cli_memory.py:238
Function
test_memory_forget_resolves_the_same_trimmed_names_as_find
(tmp_path, name)
agent/tests/test_ux_batch_regressions.py:52
Method
test_memory_invalid_type_rejected
(self)
agent/tests/test_cli_memory.py:251
Method
test_memory_list_parses
(self)
agent/tests/test_cli_memory.py:218
Method
test_memory_no_subcommand
(self)
agent/tests/test_cli_memory.py:245
Method
test_memory_search_parses
(self)
agent/tests/test_cli_memory.py:231
Method
test_memory_show_parses
(self)
agent/tests/test_cli_memory.py:225
Function
test_merged_table_origin_is_read_once_without_spanned_text
(tmp_path, monkeypatch)
agent/tests/test_doc_reader_pptx_containers.py:93
Method
test_merges_and_normalizes_across_sources
(self)
agent/tests/test_symbol_search_tool.py:99
Function
test_merges_non_colliding_children_when_both_locations_have_data
Destination data (e.g. autopilot runs) must not block migrating the rest.
agent/tests/test_state_migration.py:49
Function
test_merton_and_kmv_refuse_non_finite_inputs
()
agent/tests/quantlib/test_credit.py:638
Function
test_message_conversion_keeps_system_and_tool_history
()
agent/tests/test_copilot_provider.py:367
Method
test_message_count_increments
(self, index: SessionSearchIndex)
agent/tests/test_session_search.py:59
Function
test_message_log_carries_the_tool_call_arguments
The log must hold what the model asked the tool for, not only roles.
agent/tests/test_swarm_worker_message_log.py:190
Function
test_meta_exposes_manifest_sha256
(run_dir: Path)
agent/tests/test_run_artifact_tool.py:330
Function
test_meta_format
(run_dir: Path)
agent/tests/test_run_artifact_tool.py:381
Function
test_meta_key_absent_from_envelope_and_context_when_loader_has_none
Loaders without _meta must not gain a stray downstream key.
agent/tests/test_alpha_bench_meta_survivorship.py:134
Method
test_metadata
(self)
agent/tests/test_gildata_research_tools.py:41
Method
test_metadata
(self)
agent/tests/test_tickerall_loader.py:111
Method
test_metadata
(self)
agent/tests/test_gildata_loader.py:60
Method
test_metadata
(self)
agent/tests/test_fred_macro_tool.py:46
Method
test_metadata
(self)
agent/tests/test_fmp_loader.py:38
Method
test_metadata
(self)
agent/tests/test_finnhub_loader.py:86
Method
test_metadata
(self)
agent/tests/test_fund_nav_tool.py:68
Function
test_metadata_exception_is_exact_and_cannot_hide_a_credential_suffix
(key: str)
agent/tests/test_redaction_shared.py:597
Function
test_metadata_validation_reaches_all_audit_sinks
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
agent/tests/test_redaction_shared.py:632
← previous
next →
20,701–20,800 of 26,887, ranked by callers