← Về thư mục
openai4s/host/mcp.py
- is_confined_connector · function · L20-L22 — def is_confined_connector(connector: dict) -> bool
- confine_bundled_connector · function · L25-L58 — def confine_bundled_connector( config: dict, connector: dict, *, workspace: str | None ) -> dict
- _backend_request_deadline · function · L70-L87 — def _backend_request_deadline(env: dict) -> float
- MCPStore · class · L90-L97 — class MCPStore(Protocol)
- get_connector · method · L93-L93 — def get_connector(self, connector_id: str) -> dict | None
- list_connectors · method · L95-L95 — def list_connectors(self) -> list[dict]
- index_datapro_result · method · L97-L97 — def index_datapro_result(self, **kwargs: Any) -> dict[str, Any]
- _disabled · function · L100-L104 — def _disabled(server: Any) -> str
- _datapro_tool_only · function · L107-L110 — def _datapro_tool_only(connector: dict) -> bool
- _datapro_narrow_error · function · L113-L114 — def _datapro_narrow_error() -> dict[str, str]
- MCPService · class · L117-L406 — class MCPService
- init · method · L120-L136 — def init( self, store: MCPStore, *, manager_factory: Callable[[], Any] | None = None, frame_id: Callable[[], str | None] | None = None, workspace: Callable[[], Any] | None = None, ) -> None
- set_allowed_connectors · method · L138-L150 — def set_allowed_connectors(self, allowed: object) -> None
- _permits · method · L152-L169 — def _permits(self, connector: dict) -> bool
- _resolve_manager_factory · method · L171-L179 — def _resolve_manager_factory(self) -> Callable[[], Any]
- connector · method · L181-L198 — def connector(self, server: str) -> dict | None
- _config · method · L200-L209 — def _config(self, connector: dict) -> dict: # One factory is shared with the Web routes so an Agent and the # dedicated DataPro UI cannot drift onto different transports or # credential paths. Custom connectors retain the existing stdio # config; only the fixed managed connector receives authenticated HTTP.
- list · method · L211-L229 — def list(self) -> list
- tools · method · L231-L265 — def tools(self, server: str) -> Any
- call · method · L267-L317 — def call(self, spec: dict) -> Any
- resources · method · L319-L339 — def resources(self, spec: dict) -> Any
- read_resource · method · L341-L361 — def read_resource(self, spec: dict) -> Any
- prompts · method · L363-L383 — def prompts(self, spec: dict) -> Any
- get_prompt · method · L385-L406 — def get_prompt(self, spec: dict) -> Any