Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Sources/mcs/Commands/ExportCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ struct ExportCommand: ParsableCommand {
config: ConfigurationDiscovery.DiscoveredConfiguration,
output: CLIOutput
) {
let resolvedPath = URL(fileURLWithPath: outputDir).standardizedFileURL.path
var hints: [String] = []

// Check for MCP servers that might need brew (dynamic symlink resolution)
Expand Down Expand Up @@ -407,7 +408,7 @@ struct ExportCommand: ParsableCommand {
output.plain("")
output.info("Next steps:")
output.plain(" 1. Review the generated techpack.yaml")
output.plain(" 2. Test with: mcs pack add \(outputDir)")
output.plain(" 2. Test with: mcs pack add \(resolvedPath)")
output.plain(" 3. Share via git: push to a repository and use mcs pack add <url>")
}

Expand Down
4 changes: 2 additions & 2 deletions Sources/mcs/Export/PackWriter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ struct PackWriter {

// MARK: - Export Errors

enum ExportError: Error, CustomStringConvertible {
enum ExportError: Error, LocalizedError {
case outputDirectoryExists(String)
case noConfigurationFound
case noProjectFound

var description: String {
var errorDescription: String? {
switch self {
case .outputDirectoryExists(let path):
return "Output directory already exists: \(path). Remove it first or choose a different path."
Expand Down