Note: MCP is no longer used since Minecraft 1.17, and has been replaced with Official Mojang Mappings.
Experimental MCP support is available in Architectury Loom. MCP docs and parameter mappings are fully supported in Forge Loom. However, MCP will not work in snapshots, as the MCP support depends on matching the MCPConfig with your intermediary.
Declare the MCP mappings dependency as follows: (20201028-1.16.3
is just an example version!)
dependencies { mappings "de.oceanlabs.mcp:mcp_snapshot:20201028-1.16.3" }
After setting up a loom environment with MCP mappings, you may migrate the code to another mappings. Read the wiki page for more help.
gradlew migrateMappings --mappings "net.minecraft:mappings:VERSION"
gradlew migrateMappings --mappings "1.16.5+build.3"