Skip to content

Real-world examples and testing tools for the Microsoft Fabric Model Context Protocol (MCP) server. Learn to automate Fabric operations including lakehouse management, notebook execution, and data population workflows.

License

Notifications You must be signed in to change notification settings

chadtoney/Fabric-MCP-Testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Microsoft Fabric MCP Server - Examples & Testing

πŸ”— This repository contains examples for the Microsoft Fabric MCP Server

Real-world examples demonstrating how to use the Microsoft Fabric Model Context Protocol (MCP) server to automate Fabric operations including lakehouse management, notebook execution, and data population workflows.

πŸš€ Quick Start

1. Install the MCP Server First

⚠️ Important: You need the main MCP server installed before using these examples.

git clone https://github.com/santhoshravindran7/Fabric-Analytics-MCP.git
cd Fabric-Analytics-MCP
npm install && npm run build

2. Set Your Configuration

# Set your workspace ID (required)
export FABRIC_DEFAULT_WORKSPACE_ID="your-workspace-id-from-fabric-portal"

# Authenticate with Azure
az login

3. Run Your First Example

git clone https://github.com/your-username/Fabric-MCP-Testing.git
cd Fabric-MCP-Testing/examples/getting-started
node basic-demo.cjs

Expected result: βœ… Connection verified with 62 available MCP tools

πŸ“ Repository Structure

🌟 Examples (Start Here)

Directory Purpose Key Files
getting-started/ New user introduction basic-demo.cjs - Test your setup
data-population/ Production workflows execute-notebook-livy-corrected.cjs - 5K+ records
troubleshooting/ Debug & investigation test-capacity-issue.cjs - Reproduce bugs

πŸ“š Documentation

File Description
SETUP.md Complete setup instructions
docs/DEMO_SUCCESS_SUMMARY.md Detailed success stories and workflows

πŸ—‚οΈ Development

Directory Purpose
notebooks/ Jupyter notebooks for testing
archive/ Historical scripts and experiments (local-only)

πŸ”§ What These Examples Do

Basic Operations

  • βœ… MCP Server Connection: Establish and test connection
  • βœ… Workspace Access: Verify permissions and list items
  • βœ… Tool Discovery: Find all 62 available MCP functions

Production Workflows

  • 🏭 Data Population: Generate 5,000+ structured records
  • πŸ“Š Lakehouse Creation: Full lakehouse with tables and data
  • πŸ“ˆ Notebook Execution: Automated Spark job processing
  • πŸ” Session Management: Livy API integration and monitoring

Debugging & Troubleshooting

  • πŸ› Issue Reproduction: Test cases for known issues
  • πŸ” Investigation Scripts: Deep-dive into MCP behavior
  • ⚠️ Error Handling: Robust error capture and reporting

πŸ› οΈ Technology Stack

  • MCP Server: Fabric-Analytics-MCP
  • Authentication: Azure CLI (az login)
  • Platform: Microsoft Fabric / Power BI Premium
  • APIs: Microsoft Fabric REST API + Livy Spark API
  • Language: Node.js (CommonJS modules)

πŸ“Š Real Results

Data Population Success

πŸ“ˆ Results Summary:
β”œβ”€β”€ 🏭 Lakehouse: Created with 3 tables
β”œβ”€β”€ πŸ“Š Records: 5,000+ structured entries
β”œβ”€β”€ ⚑ Performance: Sub-minute execution
└── πŸ”„ Repeatability: 100% success rate

MCP Integration

πŸ”— MCP Tools Available: 62 functions
β”œβ”€β”€ πŸ“ Workspace Management: 5 tools
β”œβ”€β”€ 🏠 Lakehouse Operations: 8 tools  
β”œβ”€β”€ πŸ“” Notebook Control: 12 tools
β”œβ”€β”€ ⚑ Spark Job Management: 15 tools
└── πŸ”§ Utility Functions: 22 tools

🎯 Use Cases

For Developers

  • Learn MCP Integration: Real working examples
  • Test Your Setup: Validation scripts included
  • Production Patterns: Battle-tested workflows

For Data Engineers

  • Automate Fabric: Lakehouse creation and data loading
  • Spark Workflows: Notebook execution and monitoring
  • ETL Pipelines: End-to-end data processing examples

For DevOps Teams

  • CI/CD Integration: Automated Fabric deployments
  • Monitoring: Error handling and logging patterns
  • Troubleshooting: Debug scripts for common issues

πŸ”— Related Projects

Main Dependencies

Known Issues & Fixes

🀝 Contributing

  1. Test scenarios welcome in examples/troubleshooting/
  2. Production workflows needed in examples/data-population/
  3. Documentation improvements always appreciated
  4. Bug reproductions help the main project

πŸ“„ License

MIT License - Feel free to use these examples in your own projects.

πŸ†˜ Getting Help

  1. Start with: examples/getting-started/basic-demo.cjs
  2. Check: SETUP.md for detailed instructions
  3. Debug with: Scripts in examples/troubleshooting/
  4. Ask questions: In the main Fabric-Analytics-MCP repository

⭐ Star this repo if these examples helped you get started with Microsoft Fabric MCP automation!

About

Real-world examples and testing tools for the Microsoft Fabric Model Context Protocol (MCP) server. Learn to automate Fabric operations including lakehouse management, notebook execution, and data population workflows.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published