feat: 导入 MemRelay 初始源码

This commit is contained in:
Nixevol
2026-09-23 21:40:46 +08:00
commit 0ade3bb318
167 changed files with 53511 additions and 0 deletions
@@ -0,0 +1,25 @@
"""Add all-profiles MCP token scope.
Revision ID: 20260805_0010
Revises: 20260804_0009
"""
import sqlalchemy as sa
from alembic import op
revision = "20260805_0010"
down_revision = "20260804_0009"
branch_labels = None
depends_on = None
def upgrade() -> None:
with op.batch_alter_table("mcp_tokens") as batch:
batch.add_column(
sa.Column("all_profiles", sa.Boolean(), nullable=False, server_default=sa.false())
)
def downgrade() -> None:
with op.batch_alter_table("mcp_tokens") as batch:
batch.drop_column("all_profiles")