add MCP support

This commit is contained in:
Alex Turchyn
2026-03-05 12:17:14 +02:00
committed by GitHub
parent 961f09e092
commit 62a969d8fe
20 changed files with 820 additions and 2 deletions
@@ -0,0 +1,8 @@
# frozen_string_literal: true
class AddPkceToDoorkeeperAccessGrants < ActiveRecord::Migration[7.1]
def change
add_column :oauth_access_grants, :code_challenge, :string, null: true
add_column :oauth_access_grants, :code_challenge_method, :string, null: true
end
end
@@ -0,0 +1,15 @@
# frozen_string_literal: true
class CreateMcpTokens < ActiveRecord::Migration[8.1]
def change
create_table :mcp_tokens do |t|
t.references :user, null: false, foreign_key: true, index: true
t.string :name, null: false
t.string :sha256, null: false, index: { unique: true }
t.string :token_prefix, null: false
t.datetime :archived_at
t.timestamps
end
end
end