MCPcopy Create free account

hub / github.com/HKUDS/OpenSpace / functions

Functions2,195 in github.com/HKUDS/OpenSpace

↓ 1 callersFunction_summarize_tool_result
Use LLM to summarize large tool results.
openspace/llm/client.py:223
↓ 1 callersMethod_suppress_logs
(self)
openspace/__main__.py:52
↓ 1 callersMethod_suppress_mcp_json_errors
Suppress MCP SDK's JSON parsing error logs. The MCP SDK logs errors when it receives non-JSON messages from servers. These ar
openspace/grounding/backends/mcp/transport/task_managers/stdio.py:323
↓ 1 callersMethod_to_json_compatible
Convert a Pydantic BaseModel to a JSON-serialisable dict (by_alias=True). Leave all other types unchanged.
openspace/grounding/core/transport/connectors/base.py:106
↓ 1 callersFunction_tool_result_to_message_async
Convert ToolResult to LLMClient usable message format with LLM summarization for large results. Args: result: Tool execution result
openspace/llm/client.py:290
↓ 1 callersMethod_touch
(self)
openspace/grounding/core/session.py:106
↓ 1 callersFunction_try_huggingface
Try to load from HuggingFace datasets library. Returns (tasks, source_desc) or ([], '').
gdpval_bench/task_loader.py:184
↓ 1 callersMethod_try_jsonrpc_connection
Test JSON-RPC HTTP connection by sending an initialize request.
openspace/grounding/backends/mcp/transport/connectors/http.py:309
↓ 1 callersMethod_validate_origin_parents
(origin: str, parents: List[str])
openspace/cloud/client.py:495
↓ 1 callersFunction_walk
(value: Any)
openspace/communication/adapters/feishu.py:836
↓ 1 callersFunction_wipe_skill_db
Delete the shared .openspace/openspace.db for a fresh start.
gdpval_bench/run_benchmark.py:1124
↓ 1 callersMethod_wrap_result
(self, obj: Any, elapsed: float)
openspace/grounding/core/tool/base.py:220
↓ 1 callersFunction_wrap_script_with_conda
Wrap bash script with conda activation if needed.
openspace/grounding/backends/shell/transport/local_connector.py:63
↓ 1 callersFunction_write_json
(path: Path, payload: dict[str, Any])
openspace/communication/gateway_runtime.py:115
↓ 1 callersMethodactivate_window
Activate window (macOS uses AppleScript) Args: window_name: Window name or application name strict:
openspace/local_server/platform_adapters/macos_adapter.py:53
↓ 1 callersMethodaddMarker
(marker: MapMarker)
showcase/my-daily-monitor/src/components/MapPanel.ts:160
↓ 1 callersFunctionaddTransaction
(transaction: Omit<FinanceTransaction, 'id'>)
showcase/my-daily-monitor/src/services/finance.ts:47
↓ 1 callersMethodadd_agent_activity
Add agent activity
openspace/utils/ui.py:363
↓ 1 callersMethodadd_execution
Add execution record and update stats.
openspace/grounding/core/quality/types.py:173
↓ 1 callersMethodadd_grounding_operation
Add grounding operation
openspace/utils/ui.py:386
↓ 1 callersMethodadd_llm_issue
Record an LLM-identified issue as a failure in recent_executions. Unlike ``add_execution()``, this does NOT increment ``total_calls``
openspace/grounding/core/quality/types.py:150
↓ 1 callersMethodadjust_ranking
Adjust tool ranking using penalty-based approach. Args: tools_with_scores: List of (tool, semantic_score) tup
openspace/grounding/core/quality/manager.py:481
↓ 1 callersMethodanalyze_agents
(self)
openspace/recording/viewer.py:101
↓ 1 callersMethodanalyze_execution
Run LLM analysis on a completed task and persist the result. Args: task_id: Unique identifier for the task. recording
openspace/skill_engine/analyzer.py:154
↓ 1 callersMethodanalyze_tool_result
Callback for LLMClient to handle visual analysis after tool execution.
openspace/agents/visual_analyzer.py:30
↓ 1 callersFunctionapiPlugin
()
showcase/my-daily-monitor/vite-api-plugin.ts:32
↓ 1 callersMethodappend_assistant_message
( self, session: ChannelSession, *, content: str, platform_message_id:
openspace/communication/session_store.py:87
↓ 1 callersMethodappend_user_message
(self, session: ChannelSession, message: ChannelMessage)
openspace/communication/session_store.py:69
↓ 1 callersFunctionapplyStoredTheme
()
showcase/my-daily-monitor/src/utils/theme-manager.ts:53
↓ 1 callersFunctionapply_search_replace
Apply SEARCH/REPLACE blocks to a single file's content. Uses the 6-level fuzzy matching chain from ``fuzzy_match`` for robust matching.
openspace/skill_engine/patch.py:830
↓ 1 callersFunctionapply_update_chunks
Apply *chunks* to *original_content* and return the new content.
openspace/skill_engine/patch.py:752
↓ 1 callersMethodargbdata_to_pixdata
(self, data, len)
openspace/local_server/platform_adapters/pyxcursor.py:81
↓ 1 callersMethodattachEventListeners
()
showcase/my-daily-monitor/src/components/FinancePanel.ts:251
↓ 1 callersMethodattach_grounding_client
Attach grounding client Args: grounding_client: GroundingClient instance
openspace/utils/ui_integration.py:50
↓ 1 callersMethodattach_llm_client
Attach LLM client Args: llm_client: LLMClient instance
openspace/utils/ui_integration.py:40
↓ 1 callersMethodbegin_task
Start per-task tracking. Returns a ContextVar token for reset. Must be called *inside* the asyncio Task that will run the LLM calls.
gdpval_bench/token_tracker.py:261
↓ 1 callersMethodbm25_only
BM25-only ranking (for MCP search Phase 1).
openspace/skill_engine/skill_ranker.py:139
↓ 1 callersMethodbuildLayout
()
showcase/my-daily-monitor/src/components/StockPanel.ts:31
↓ 1 callersMethodbuildLayout
()
showcase/my-daily-monitor/src/components/DevOpsPanel.ts:210
↓ 1 callersMethodbuildLayout
()
showcase/my-daily-monitor/src/components/CodeStatusPanel.ts:28
↓ 1 callersFunctionbuildSkillClasses
(skills: Skill[])
frontend/src/utils/skillClasses.ts:37
↓ 1 callersFunctionbuildSplitRows
(lines: DiffLine[], header: string)
frontend/src/components/skill-detail/DiffViewer.tsx:79
↓ 1 callersMethodbuildUI
()
showcase/my-daily-monitor/src/components/LiveNewsPanel.ts:38
↓ 1 callersMethodbuildUI
()
showcase/my-daily-monitor/src/components/InsightsPanel.ts:305
↓ 1 callersMethodbuildUI
()
showcase/my-daily-monitor/src/components/MyMonitorsPanel.ts:36
↓ 1 callersFunctionbuild_attachment_instruction
(message: ChannelMessage)
openspace/communication/policy.py:8
↓ 1 callersFunctionbuild_channel_context_message
Build a system message describing the communication channel context.
openspace/agents/message_utils.py:152
↓ 1 callersFunctionbuild_cloud_results
Map server-ranked cloud search rows to MCP search result shape.
openspace/cloud/search.py:345
↓ 1 callersFunctionbuild_comparison
Build per-task comparison and aggregate summary from both phases. Reports prompt tokens, completion tokens, and total tokens **separately** s
gdpval_bench/run_benchmark.py:789
↓ 1 callersFunctionbuild_llm_config
Build complete LLM configuration with auto-detection and environment variables. Auto-detects: - API key from environment variables (
openspace/grounding/backends/gui/config.py:9
↓ 1 callersFunctionbuild_local_candidates
Build search candidate dicts from SkillRegistry skills. Args: skills: List of ``SkillMeta`` from ``registry.list_skills()``. stor
openspace/cloud/search.py:236
↓ 1 callersFunctionbuild_session_key
(source: ChannelSource)
openspace/communication/session_store.py:178
↓ 1 callersFunctionbuild_skill_embedding_text
Build text for skill embedding: ``name + description + SKILL.md body``. Unified strategy matching MCP search_skills and clawhub platform.
openspace/cloud/embedding.py:67
↓ 1 callersMethodbuild_system_prompt
Build a system prompt tailored to the actually registered backends. Args: backends: Active backend names (e.g. ``["shell", "mcp",
openspace/prompts/grounding_agent_prompts.py:9
↓ 1 callersMethodcall_tool
( self, session_name: str, tool_name: str, parameters: Dict[str, Any] | None =
openspace/grounding/core/provider.py:100
↓ 1 callersMethodcall_tool
Call an MCP tool with automatic reconnection handling and retry logic. Args: name: The name of the tool to call. argu
openspace/grounding/backends/mcp/transport/connectors/base.py:240
↓ 1 callersMethodcall_tool
Call an MCP tool.
openspace/grounding/backends/mcp/transport/connectors/http.py:603
↓ 1 callersMethodcapture_screenshot_with_cursor
Capture screenshot with cursor using macOS native screencapture command Args: output_path: Output file path
openspace/local_server/platform_adapters/macos_adapter.py:34
↓ 1 callersMethodcheck_all
Check all features with functional testing Args: test_endpoints: Whether to test endpoints (False only checks fe
openspace/local_server/health_checker.py:404
↓ 1 callersMethodcheck_changes
Check for tool changes (new/updated/unchanged). Returns dict: {tool_key: "new"|"updated"|"unchanged"}
openspace/grounding/core/quality/manager.py:509
↓ 1 callersMethodcheck_platform_adapter_available
(self, use_cache: bool = True)
openspace/local_server/feature_checker.py:211
↓ 1 callersFunctionchooseRepresentative
(versions: Skill[])
frontend/src/utils/skillClasses.ts:22
↓ 1 callersFunctionclassifyExit
(proc: { label: string; command: string; duration: string; cpu: number; mem: number })
showcase/my-daily-monitor/src/components/DevOpsPanel.ts:116
↓ 1 callersFunctionclassifyThreat
(title: string)
showcase/my-daily-monitor/server/routes/news.ts:70
↓ 1 callersMethodcleanup_temp_files
Clean up all temporary test files
openspace/local_server/health_checker.py:74
↓ 1 callersFunctionclearColSpanClass
(el: HTMLElement)
showcase/my-daily-monitor/src/components/Panel.ts:52
↓ 1 callersMethodclear_cache
Clear embeddings from cache. Args: backend: If provided, only clear this backend. If None, clear all. server:
openspace/grounding/core/search_tools.py:465
↓ 1 callersMethodclose
Close the database connection.
openspace/grounding/core/quality/store.py:204
↓ 1 callersMethodclose
Close HTTP session.
openspace/platforms/screenshot.py:160
↓ 1 callersMethodclose
Close the HTTP session.
openspace/platforms/system_info.py:150
↓ 1 callersMethodclose_all_sessions
Provider shutdown cleanup
openspace/grounding/core/provider.py:66
↓ 1 callersMethodclose_session
Close session
openspace/grounding/core/provider.py:54
↓ 1 callersMethodclose_session
Close a session. Args: server_name: The name of the server to close the session for. Raises: ValueError: If
openspace/grounding/backends/mcp/client.py:350
↓ 1 callersMethodclose_window
Close window or application (macOS uses AppleScript) Args: window_name: Window name or application name
openspace/local_server/platform_adapters/macos_adapter.py:118
↓ 1 callersMethodcompute_adaptive_quality_weight
Compute adaptive quality weight based on data confidence. Returns higher weight when we have more reliable quality data,
openspace/grounding/core/quality/manager.py:730
↓ 1 callersFunctioncompute_skill_diff
Compare all files in two skill directories, return combined diff.
openspace/skill_engine/patch.py:920
↓ 1 callersMethodconnect
(self)
openspace/grounding/core/transport/connectors/aiohttp_connector.py:21
↓ 1 callersMethodconnect
Create the underlying session/connection via the manager.
openspace/grounding/core/transport/connectors/base.py:32
↓ 1 callersMethodconnect
Connect to GUI desktop environment
openspace/grounding/backends/gui/session.py:161
↓ 1 callersMethodconnect
(self)
openspace/grounding/backends/web/session.py:34
↓ 1 callersMethodconnect
(self)
openspace/communication/adapters/feishu.py:113
↓ 1 callersMethodconstruct_messages
( self, context: Dict[str, Any] )
openspace/agents/grounding_agent.py:428
↓ 1 callersFunctionconvert_mcp_tool_to_base_tool
Convert an MCP Tool to a BaseTool (RemoteTool) instance. This function extracts the tool schema from an MCP tool object and creates
openspace/grounding/backends/mcp/tool_converter.py:149
↓ 1 callersMethodcopy_local_file
( self, *, session_key: str, source_path: str, kind: AttachmentKind,
openspace/communication/attachment_cache.py:58
↓ 1 callersFunctioncosine_similarity
Compute cosine similarity between two vectors.
openspace/cloud/embedding.py:55
↓ 1 callersFunctioncreateCustomPanel
(config: CustomPanelConfig)
showcase/my-daily-monitor/src/main.ts:111
↓ 1 callersFunctioncreateTodayFocusSidebar
()
showcase/my-daily-monitor/src/components/TodayFocusSidebar.ts:21
↓ 1 callersFunctioncreate_app
()
openspace/dashboard_server.py:61
↓ 1 callersFunctioncreate_connector_from_config
Create a connector based on server configuration. Args: server_config: The server configuration section server_name: Name of
openspace/grounding/backends/mcp/config.py:29
↓ 1 callersMethodcreate_record
POST /records — create skill record with 409 conflict handling. Returns ``(response_data, status_code)``.
openspace/cloud/client.py:233
↓ 1 callersMethodcreate_session
Create and initialize Session, return "session_name" (external visible) name is auto generated when it's None: <backend>-<index>
openspace/grounding/core/grounding_client.py:226
↓ 1 callersMethodcreate_session
(self, session_config: SessionConfig)
openspace/grounding/backends/shell/provider.py:50
↓ 1 callersMethodcreate_session
Create a session for the specified server with retry logic. Args: server_name: The name of the server to create a session for.
openspace/grounding/backends/mcp/client.py:196
↓ 1 callersMethodcreate_session
Create GUI session. Args: session_config: Session configuration Returns: GUISession
openspace/grounding/backends/gui/provider.py:56
↓ 1 callersMethodcreate_session
Create Web session
openspace/grounding/backends/web/provider.py:29
↓ 1 callersFunctioncreate_skill
Create a brand-new skill directory (for CAPTURED). Args: target_dir: New skill directory (must not exist). content: LLM output —
openspace/skill_engine/patch.py:281
↓ 1 callersFunctioncreate_ui
Create OpenSpace UI instance Args: enable_live: Whether to enable live display updates compact: Use compact layout for s
openspace/utils/ui.py:438
↓ 1 callersFunctiondeleteTransaction
(id: string)
showcase/my-daily-monitor/src/services/finance.ts:60
↓ 1 callersFunctiondeltaToColSpan
(start: number, dx: number, max = 3)
showcase/my-daily-monitor/src/components/Panel.ts:77
↓ 1 callersFunctiondeltaToRowSpan
(start: number, dy: number)
showcase/my-daily-monitor/src/components/Panel.ts:35
← previousnext →901–1,000 of 2,195, ranked by callers