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>
70 lines
1.6 KiB
C#
70 lines
1.6 KiB
C#
using System.Text.Json;
|
|
using OpenHarbor.MCP.Client.Core.Models;
|
|
using Xunit;
|
|
|
|
namespace OpenHarbor.MCP.Client.Core.Tests.Models;
|
|
|
|
/// <summary>
|
|
/// Unit tests for McpTool model.
|
|
/// Tests tool creation and property validation.
|
|
/// </summary>
|
|
public class McpToolTests
|
|
{
|
|
[Fact]
|
|
public void Constructor_WithRequiredProperties_CreatesTool()
|
|
{
|
|
// Arrange & Act
|
|
var tool = new McpTool
|
|
{
|
|
Name = "test_tool",
|
|
Description = "Test tool description"
|
|
};
|
|
|
|
// Assert
|
|
Assert.Equal("test_tool", tool.Name);
|
|
Assert.Equal("Test tool description", tool.Description);
|
|
Assert.Null(tool.Schema);
|
|
}
|
|
|
|
[Fact]
|
|
public void Constructor_WithSchema_StoresSchema()
|
|
{
|
|
// Arrange
|
|
var schema = JsonDocument.Parse("""
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"param1": {"type": "string"}
|
|
}
|
|
}
|
|
""");
|
|
|
|
// Act
|
|
var tool = new McpTool
|
|
{
|
|
Name = "test_tool",
|
|
Description = "Test description",
|
|
Schema = schema
|
|
};
|
|
|
|
// Assert
|
|
Assert.Equal("test_tool", tool.Name);
|
|
Assert.NotNull(tool.Schema);
|
|
Assert.Equal("object", tool.Schema.RootElement.GetProperty("type").GetString());
|
|
}
|
|
|
|
[Fact]
|
|
public void Constructor_WithoutSchema_HasNullSchema()
|
|
{
|
|
// Arrange & Act
|
|
var tool = new McpTool
|
|
{
|
|
Name = "simple_tool",
|
|
Description = "Simple tool without parameters"
|
|
};
|
|
|
|
// Assert
|
|
Assert.Null(tool.Schema);
|
|
}
|
|
}
|