Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZihaoFU245/lmstudio-toolpack
/ functions
Functions
68 in github.com/ZihaoFU245/lmstudio-toolpack
⨍
Functions
68
◇
Types & classes
8
↓ 9 callers
Function
_color
(text: str, *, fg: str | None = None, bold: bool = False)
main.py:700
↓ 7 callers
Function
_fmt_detail_block
( index: int, title: str, url: str, referer: Optional[str], detail: str )
MCPs/WebSearch.py:513
↓ 5 callers
Function
_clear_screen
()
main.py:613
↓ 5 callers
Function
_normalize_whitespace
(value: Optional[str])
MCPs/WebSearch.py:477
↓ 4 callers
Function
_compose_detail
( text: Optional[str], anchors: List[Tuple[str, str]], url: str, *, limit: int = MAX_DETAI
MCPs/WebSearch.py:481
↓ 4 callers
Function
_host_of
(u: URL)
MCPs/WebSearch.py:531
↓ 3 callers
Function
_ensure_memory_file
Ensure the memory file and its parent directory exist.
MCPs/Memory.py:33
↓ 3 callers
Function
_is_ad_domain
(host: str)
MCPs/WebSearch.py:538
↓ 3 callers
Function
_normalize_http_url
(raw: str)
main.py:296
↓ 3 callers
Function
_run_async
Run an async coroutine from sync context safely (supports nested event loops).
MCPs/WebSearch.py:451
↓ 2 callers
Function
_append_execution_log
(entry: Dict[str, Any])
MCPs/python-sandbox.py:68
↓ 2 callers
Method
_clean_url
(self, href: Optional[str])
MCPs/WebSearch.py:224
↓ 2 callers
Method
_fetch
(self, session: aiohttp.ClientSession, url: str, **kwargs)
MCPs/WebSearch.py:144
↓ 2 callers
Function
_format_option
(label: str, is_active: bool, marked: bool | None)
main.py:596
↓ 2 callers
Function
_interactive_single_select
(title: str, options: Sequence[str])
main.py:504
↓ 2 callers
Function
_read_key
()
main.py:618
↓ 2 callers
Function
_render_lines
(lines: Sequence[str])
main.py:607
↓ 2 callers
Function
_visit_website_async
( url: str, max_chars: int = 10_000, timeout_sec: int = 20, session: Optional[aiohttp.ClientSe
MCPs/WebSearch.py:245
↓ 1 callers
Function
_build_cursor_config
(choices: List[ServerChoice])
main.py:482
↓ 1 callers
Function
_build_lmstudio_config
(choices: List[ServerChoice])
main.py:465
↓ 1 callers
Function
_build_server_choice
( selection: ServerSelection, command: str, sandbox_log_path: Optional[Path] )
main.py:375
↓ 1 callers
Function
_build_vscode_config
(choices: List[ServerChoice])
main.py:446
↓ 1 callers
Function
_clean_soup
(soup: BeautifulSoup)
MCPs/WebSearch.py:347
↓ 1 callers
Function
_collect_anchor_samples
( soup: BeautifulSoup, base_url: str, limit: int = 12 )
MCPs/WebSearch.py:411
↓ 1 callers
Function
_crawl_bfs_async
( start_url: str, *, max_depth: int = 3, max_pages: int = 20, same_domain: bool = True,
MCPs/WebSearch.py:549
↓ 1 callers
Function
_default_log_path
()
MCPs/python-sandbox.py:57
↓ 1 callers
Function
_discover_servers
(folder: Path)
main.py:132
↓ 1 callers
Function
_enable_vt_mode
()
main.py:683
↓ 1 callers
Function
_ensure_http_urls
(selections: List[ServerSelection], interactive: bool)
main.py:259
↓ 1 callers
Function
_extract_links
(soup: BeautifulSoup, base_url: str)
MCPs/WebSearch.py:380
↓ 1 callers
Function
_extract_text_and_headings
(soup: BeautifulSoup)
MCPs/WebSearch.py:369
↓ 1 callers
Function
_extract_title_desc
( soup: BeautifulSoup, *, title_limit: Optional[int] = None, desc_limit: int = 500 )
MCPs/WebSearch.py:321
↓ 1 callers
Function
_humanize_name
(value: str)
main.py:732
↓ 1 callers
Function
_interactive_multi_select
( title: str, options: Sequence[ServerOption], initial_selected: Iterable[int] )
main.py:534
↓ 1 callers
Method
_parse_duckduckgo_lite_results
(self, html: str)
MCPs/WebSearch.py:189
↓ 1 callers
Method
_parse_duckduckgo_results
(self, html: str)
MCPs/WebSearch.py:170
↓ 1 callers
Function
_prompt_default_selection
(interactive: bool)
main.py:166
↓ 1 callers
Function
_prompt_output_path
(data_dir: Path, suggested: str)
main.py:431
↓ 1 callers
Function
_prompt_platform
(interactive: bool)
main.py:142
↓ 1 callers
Function
_prompt_python_sandbox_log_path
( base_dir: Path, selections: Sequence[ServerSelection], interactive: bool )
main.py:349
↓ 1 callers
Function
_prompt_server_selection
( options: Iterable[ServerOption], default_mode: str, interactive: bool )
main.py:190
↓ 1 callers
Function
_prompt_server_selection_fallback
( options: Sequence[ServerOption], default_mode: str )
main.py:205
↓ 1 callers
Function
_read_key_posix
()
main.py:650
↓ 1 callers
Function
_read_key_windows
()
main.py:622
↓ 1 callers
Function
_resolve_log_path
()
MCPs/python-sandbox.py:61
↓ 1 callers
Function
_resolve_python_command
(base_dir: Path)
main.py:407
↓ 1 callers
Function
_same_site
(host: str, base_host: str)
MCPs/WebSearch.py:543
↓ 1 callers
Function
_slugify
(value: str)
main.py:739
↓ 1 callers
Function
_split_numbers
(raw: str)
main.py:725
↓ 1 callers
Function
_visit_many_async
( urls: List[str], max_chars: int = 10_000, timeout_sec: int = 20, concurrency: int = 8, )
MCPs/WebSearch.py:294
↓ 1 callers
Function
_write_config
(path: Path, content: dict)
main.py:500
↓ 1 callers
Function
main
()
main.py:66
↓ 1 callers
Function
one
(u: str)
MCPs/WebSearch.py:304
↓ 1 callers
Method
search_duckduckgo
Perform a search on DuckDuckGo HTML results (no-JS), with lite fallback.
MCPs/WebSearch.py:152
Method
__init__
( self, *, timeout_sec: int = 15, concurrency: int = 8, verify_ssl: bo
MCPs/WebSearch.py:133
Method
default_display_name
(self)
main.py:29
Method
identifier
(self)
main.py:25
Function
modify
Modify an existing memory
MCPs/Memory.py:119
Function
numpy_stats
Compute basic statistics on a numeric list using NumPy. Parameters ---------- data: list[int|float] A non-empty list of numeric v
MCPs/python-sandbox.py:213
Function
remember
Remember anything, will be stored Parameters: - title : str Title of what you want to store, will be used for indexing
MCPs/Memory.py:40
Function
remove
Remove a memory permenently
MCPs/Memory.py:165
Function
retrieve
Retrieve most recent memory. Default is 50. Input should not be less than 10
MCPs/Memory.py:83
Function
run_python
Execute a short Python snippet in a restricted subprocess. - Reduced builtins only, no imports. - Captures stdout/stderr. - If single exp
MCPs/python-sandbox.py:137
Function
runner
()
MCPs/WebSearch.py:460
Function
sympy_analyze
Symbolically analyze an algebraic expression using SymPy. - Parses the input string into a SymPy expression. - Returns its simplified form, e
MCPs/python-sandbox.py:239
Function
visit_url
Breadth-first crawl that mimics a no-login browser session. Output format per page: [n] Title: URL: https://example.com
MCPs/WebSearch.py:722
Function
web_search
DuckDuckGo-powered search that emits detailed, browser-style blocks. Output format per entry: [n] Title: URL: https://example.
MCPs/WebSearch.py:626
Function
worker_run
(src: str, inp: Optional[Dict[str, Any]], q)
MCPs/python-sandbox.py:79