ContextForge is an open-source gateway and registry that brings MCP, A2A, REST, and gRPC tools, agents, and APIs together behind one endpoint. It helps teams discover, govern, observe, authenticate, and route calls across AI infrastructure. The catalogue add-ons support operating and extending this gateway.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add IBM/mcp-context-forge --skill alembic-migrationsgit clone --depth 1 https://github.com/IBM/mcp-context-forgeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ibm/mcp-context-forge/alembic-migrations)<a href="https://agentmods.dev/skills/ibm/mcp-context-forge/alembic-migrations"><img src="https://agentmods.dev/badge/skills/ibm/mcp-context-forge/alembic-migrations/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ibm/mcp-context-forge/alembic-migrations"><img src="https://agentmods.dev/badge/skills/ibm/mcp-context-forge/alembic-migrations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00060 | $0.01316 |
| Opus 5.5 | $0.00024 | $0.00526 |
| Sonnet 5.5 | $0.00012 | $0.00263 |
| Haiku 4.5 | $0.00006 | $0.00132 |
Grade A, and why
alembic-migrations scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Alembic Database Migrations
Every change to a model in mcpgateway/db.py needs a matching Alembic migration. This includes every new column and table.
Migration Chain Rules
- Work on one migration at a time. Merge or finish one migration before you start the next.
- The
revision->down_revisionlinks form one linked list. The chain never branches. - Each migration has exactly one parent.
alembic headsshows exactly one head. - A new migration sets
down_revisionto the current head.
Create a Migration
# CRITICAL: Always check the current head FIRST
cd mcpgateway && alembic heads
# Generate a new migration (auto-generates from model changes)
alembic revision --autogenerate -m "add_column_to_table"
# Or create an empty migration for manual edits
alembic revision -m "add_column_to_table"
Migration File Requirements
The down_revision MUST point to the current head. Read the head from alembic heads. Never copy the value from an older migration.
# CORRECT: points to the actual current head (verified with `alembic heads`)
revision: str = "<new_revision_id>"
down_revision: Union[str, Sequence[str], None] = "<current_head_id>"
# WRONG: creates multiple heads (breaks all tests)
down_revision: Union[str, Sequence[str], None] = "<some_older_revision_id>"
Idempotent Migrations Pattern
Write idempotent migrations. Check state before you change it:
def upgrade() -> None:
inspector = sa.inspect(op.get_bind())
# Skip if table doesn't exist (fresh DB uses db.py models directly)
if "my_table" not in inspector.get_table_names():
return
# Skip if column already exists
columns = [col["name"] for col in inspector.get_columns("my_table")]
if "new_column" in columns:
return
op.add_column("my_table", sa.Column("new_column", sa.String(), nullable=True))
Verification
Run these commands from mcpgateway/.
Inspect the chain
alembic heads # must show exactly ONE head
alembic current # revision the DB is at
alembic history --verbose # full chain
alembic branches # find branch points
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 164 lines · 60 tokens per session scan A 4453a478aaf5
alembic-migrations is a skill published in the GitHub repository IBM/mcp-context-forge (4,832 stars, last pushed today), licensed Apache-2.0. It adds 60 tokens to every session and 1,316 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-17.
alembic-migrations compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| alembic-migrationsIBM/mcp-context-forge | Skill | 4.8k | today | Apache-2.0 | A | 60 | Claude Code, Codex |
| bigquery-graphgoogle/adk-python | Skill | 22k | today | Apache-2.0 | A | 52 | Claude Code, Codex |
| migration-reviewrohitg00/ai-engineering-from-scratch | Skill | 79k | yesterday | MIT | A | 35 | Claude Code |
| azure-resource-manager-postgresql-dotnetmicrosoft/skills | Skill | 3.2k | today | MIT | A | 97 | Claude Code |
| azure-resource-manager-mysql-dotnetmicrosoft/skills | Skill | 3.2k | today | MIT | A | 87 | Claude Code |
| azure-cosmos-db-pymicrosoft/skills | Skill | 3.2k | today | MIT | A | 96 | Claude Code |
| azure-resource-manager-sql-dotnetmicrosoft/skills | Skill | 3.2k | today | MIT | A | 109 | Claude Code |