We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sbroenne/mcp-server-excel'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
NamedRangeCommands.cs•770 B
namespace Sbroenne.ExcelMcp.Core.Commands;
/// <summary>
/// Named range/parameter management commands implementation
/// </summary>
public partial class NamedRangeCommands : INamedRangeCommands
{
private static List<List<object?>> ConvertArrayToList(object[,] array2D)
{
var result = new List<List<object?>>();
// Excel arrays are 1-based, get the bounds
int rows = array2D.GetLength(0);
int cols = array2D.GetLength(1);
for (int row = 1; row <= rows; row++)
{
var rowList = new List<object?>();
for (int col = 1; col <= cols; col++)
{
rowList.Add(array2D[row, col]);
}
result.Add(rowList);
}
return result;
}
}