| Files | Last commit | Last update |
|---|---|---|
feat: 实现 MCP Server (15 tools) | 5 months ago | |
fix: P0 loopback security + P1 close retry + P2 bool/validation/docs P0: HTTP loopback security gap All HTTP modes now always configure TransportSecuritySettings (previously only configured for allow_remote=True). For loopback, the SDK's default middleware disables protection entirely when transport_security=None, so malicious Host headers were accepted on 127.0.0.2, localhost, ::1, etc. Fix: always pass TransportSecuritySettings with enable_dns_rebinding_protection (default True) and a merged allowed_hosts list containing: - Standard loopback entries (127.0.0.1:port, localhost:port, [::1]:port) - The actual bind host:port - User-specified --allowed-host entries Verified: correct Host → 200, malicious Host → 421 on 127.0.0.1. P1: close() retry was fake — _stop_watcher didn't return success status - _stop_watcher() now returns bool (True = fully stopped). - close() only sets _closed=True when _stop_watcher returns True. - On failure: re-registers atexit as fallback, does NOT set _closed, allowing close() to be called again to retry. P2: max_concurrent_tools=True bypassed validation bool is a subclass of int in Python (True == 1). Explicit isinstance check for bool now rejects it. P2: README "18 个工具" → "19 个工具" (5 occurrences). Tests: 158 passed (key tests). | 4 months ago | |
sync bot-gate into master Main changes: - feat: Go/Java language support; storage dir migration to .botbrain - feat: build-time scan include/exclude via --include/--exclude flags - feat(wiki): auto re-login on cookie expiry during pull (CLI) - feat: --ref/--child flags for pull-wiki CLI; wiki.include_refs/include_children config defaults - fix: extract functions inside extern C linkage specifications - fix: paginate children_wiki_by_sn past the 50-child page cap - fix: correct inverted symlink handling in path normalization - fix: root-anchor slash patterns for nested build/dist/target/vendor dirs - fix: warn on legacy trailing-slash exclude patterns - feat(go): record satisfied_via on structural IMPLEMENT edges - release: 0.7.0 packaging/rename (bot-brain) and docs refresh | 1 month ago |
| Files | Last commit | Last update |
|---|---|---|
| 5 months ago | ||
| 4 months ago | ||
| 1 month ago |