CyberdyneDevelopment.Mc3Po.Protocols 0.1.0-preview.6

This is a prerelease version of CyberdyneDevelopment.Mc3Po.Protocols.
dotnet add package CyberdyneDevelopment.Mc3Po.Protocols --version 0.1.0-preview.6
                    
NuGet\Install-Package CyberdyneDevelopment.Mc3Po.Protocols -Version 0.1.0-preview.6
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CyberdyneDevelopment.Mc3Po.Protocols" Version="0.1.0-preview.6">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CyberdyneDevelopment.Mc3Po.Protocols" Version="0.1.0-preview.6" />
                    
Directory.Packages.props
<PackageReference Include="CyberdyneDevelopment.Mc3Po.Protocols">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CyberdyneDevelopment.Mc3Po.Protocols --version 0.1.0-preview.6
                    
#r "nuget: CyberdyneDevelopment.Mc3Po.Protocols, 0.1.0-preview.6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CyberdyneDevelopment.Mc3Po.Protocols@0.1.0-preview.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CyberdyneDevelopment.Mc3Po.Protocols&version=0.1.0-preview.6&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=CyberdyneDevelopment.Mc3Po.Protocols&version=0.1.0-preview.6&prerelease
                    
Install as a Cake Tool

Mc3Po.Protocols

Core protocol infrastructure including the ProtocolTypes TypeCollection, provider, and factory interfaces.

Key Components

ProtocolTypes

Source-generated TypeCollection for protocol type discovery:

// O(1) lookup by name
var planeType = ProtocolTypes.ByName("Plane");

// Check capabilities
if (planeType.SupportsProjectManagement)
{
    // ...
}

// Iterate all protocols
foreach (var protocolType in ProtocolTypes.All())
{
    Console.WriteLine($"{protocolType.DisplayName}: PM={protocolType.SupportsProjectManagement}, SC={protocolType.SupportsSourceControl}");
}

ProtocolTypeBase

Base class for protocol type descriptors:

public abstract class ProtocolTypeBase : TypeOptionBase<Guid, ProtocolTypeBase>, IProtocolType
{
    protected ProtocolTypeBase(
        Guid id,
        string name,
        string sectionName,
        string displayName,
        string description,
        bool supportsProjectManagement,
        bool supportsSourceControl);

    public abstract IServiceCollection RegisterRequiredServices(IServiceCollection services);
    public abstract void RegisterFactory(DefaultProtocolProvider provider, IServiceProvider services);
}

IProtocolFactory

Factory interface for creating protocol instances:

public interface IProtocolFactory<TProtocol, TConfiguration>
    where TProtocol : IProtocol
    where TConfiguration : IProtocolConfiguration
{
    Task<IGenericResult<TProtocol>> CreateAsync(
        TConfiguration configuration,
        IProtocolCreationContext context,
        CancellationToken cancellationToken = default);
}

IProtocolProvider

Provider for accessing configured protocols:

public interface IProtocolProvider
{
    IGenericResult<IProjectManagementProtocol> GetProjectManagement(string? name = null);
    IGenericResult<ISourceControlProtocol> GetSourceControl(string? name = null);
}

Three-Phase Registration

Phase 1: ConfigureServices

// Register all protocol services
builder.Services.AddProtocols();
// Or: ProtocolTypes.RegisterAll(builder.Services);

Phase 2: InitializeFactories

var app = builder.Build();

// Resolve factories and register with provider
ProtocolTypes.InitializeFactories(app.Services);

Phase 3: Runtime

// Get the configured protocol
var pmResult = protocolProvider.GetProjectManagement();
if (pmResult.IsSuccess)
{
    var pm = pmResult.Value;
    await pm.CreateIssueAsync(request, ct);
}

Extension Methods

public static class ServiceCollectionExtensions
{
    public static IServiceCollection AddProtocols(this IServiceCollection services)
    {
        return ProtocolTypes.RegisterAll(services);
    }
}

Dependencies

  • Mc3Po.Protocols.Abstractions
  • FractalDataWorks.Collections
  • Microsoft.Extensions.DependencyInjection
  • Microsoft.Extensions.Configuration

Protocol Implementations

This package is referenced by protocol implementations:

  • Mc3Po.Protocols.Plane
  • Mc3Po.Protocols.GitLab
  • Mc3Po.Protocols.GitHub
  • Mc3Po.Protocols.AzureDevOps

See Adding New Protocols for implementation guide.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on CyberdyneDevelopment.Mc3Po.Protocols:

Package Downloads
CyberdyneDevelopment.Mc3Po.Protocols.Plane

Plane protocol implementation for mc3-po - project management integration with Plane

CyberdyneDevelopment.Mc3Po.Protocols.GitHub

Development tools and utilities for the FractalDataWorks ecosystem. Build:

CyberdyneDevelopment.Mc3Po.Protocols.GitLab

GitLab protocol implementation for mc3-po - source control and project management integration

CyberdyneDevelopment.Mc3Po.Protocols.AzureDevOps

Development tools and utilities for the FractalDataWorks ecosystem. Build:

CyberdyneDevelopment.DeveloperTools.SourceControl

Source control tool wrappers for FractalDataWorks. Provides thin command wrappers that delegate to external MCP servers (GitLab).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.6 56 1/9/2026
0.1.0-preview.4 71 1/7/2026