mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 04:40:45 +08:00
本次迁移将网关/通道/工具/技能/脚本与协议资源集中到新结构,统一路径常量与脚本转发机制,减少顶层噪音并保证运行与测试行为一致。 Made-with: Cursor
20 lines
538 B
Python
20 lines
538 B
Python
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass, field
|
|
from typing import Any
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class McpServerManifest:
|
|
server_id: str
|
|
source_type: str # github|npm|pypi
|
|
source_ref: str
|
|
version: str = ""
|
|
entry_command: str = ""
|
|
entry_args: list[str] = field(default_factory=list)
|
|
env_schema: dict[str, Any] = field(default_factory=dict)
|
|
permissions: list[str] = field(default_factory=list)
|
|
risk_level: str = "high"
|
|
enabled: bool = False
|
|
timeout_s: float = 30.0
|
|
|