Research conducted on modern AI coding assistants (Cursor, GitHub Copilot, Cline,
Aider, Windsurf, Replit Agent) to understand architecture patterns, context management,
code editing workflows, and tool use protocols.
Key Decision: Pivoted from building full CLI (40-50h) to validation-driven MCP-first
approach (10-15h). Build 5 core CODEX MCP tools that work with ANY coding assistant,
validate adoption over 2-4 weeks, then decide on full CLI if demand proven.
Files:
- research/ai-systems/modern-coding-assistants-architecture.md (comprehensive research)
- research/ai-systems/codex-coding-assistant-implementation-plan.md (original CLI plan, preserved)
- research/ai-systems/codex-mcp-tools-implementation-plan.md (approved MCP-first plan)
- ideas/registry.json (updated with approved MCP tools proposal)
Architech Validation: APPROVED with pivot to MCP-first approach
Human Decision: Approved (pragmatic validation-driven development)
Next: Begin Phase 1 implementation (10-15 hours, 5 core MCP tools)
🤖 Generated with CODEX Research System
Co-Authored-By: The Archivist <archivist@codex.svrnty.io>
Co-Authored-By: The Architech <architech@codex.svrnty.io>
Co-Authored-By: Mathias Beaulieu-Duncan <mat@svrnty.io>
67 lines
1.7 KiB
C#
67 lines
1.7 KiB
C#
using Xunit;
|
|
using OpenHarbor.MCP.Core.Models;
|
|
|
|
namespace OpenHarbor.MCP.Core.Tests.Models;
|
|
|
|
/// <summary>
|
|
/// Unit tests for ServerInfo model following TDD approach.
|
|
/// Tests server metadata representation.
|
|
/// </summary>
|
|
public class ServerInfoTests
|
|
{
|
|
[Fact]
|
|
public void ServerInfo_WithValidData_CreatesSuccessfully()
|
|
{
|
|
// Arrange & Act
|
|
var serverInfo = new ServerInfo
|
|
{
|
|
Id = "test-server",
|
|
Name = "Test Server",
|
|
IsHealthy = true,
|
|
LastHealthCheck = DateTime.UtcNow,
|
|
ResponseTime = TimeSpan.FromMilliseconds(50)
|
|
};
|
|
|
|
// Assert
|
|
Assert.Equal("test-server", serverInfo.Id);
|
|
Assert.Equal("Test Server", serverInfo.Name);
|
|
Assert.True(serverInfo.IsHealthy);
|
|
Assert.NotNull(serverInfo.LastHealthCheck);
|
|
Assert.Equal(50, serverInfo.ResponseTime?.TotalMilliseconds);
|
|
}
|
|
|
|
[Fact]
|
|
public void ServerInfo_DefaultState_IsNotHealthy()
|
|
{
|
|
// Arrange & Act
|
|
var serverInfo = new ServerInfo();
|
|
|
|
// Assert
|
|
Assert.False(serverInfo.IsHealthy);
|
|
Assert.Null(serverInfo.LastHealthCheck);
|
|
}
|
|
|
|
[Fact]
|
|
public void ServerInfo_WithMetadata_StoresAdditionalData()
|
|
{
|
|
// Arrange
|
|
var metadata = new Dictionary<string, string>
|
|
{
|
|
{ "version", "1.0.0" },
|
|
{ "region", "us-east" }
|
|
};
|
|
|
|
// Act
|
|
var serverInfo = new ServerInfo
|
|
{
|
|
Id = "server-1",
|
|
Metadata = metadata
|
|
};
|
|
|
|
// Assert
|
|
Assert.NotNull(serverInfo.Metadata);
|
|
Assert.Equal("1.0.0", serverInfo.Metadata["version"]);
|
|
Assert.Equal("us-east", serverInfo.Metadata["region"]);
|
|
}
|
|
}
|