The Developer's Guide to MCP: From Basics to Advanced Workflows