refactor: switch mcp siblings to self-reexport imports

This commit is contained in:
Kit Langton 2026-04-16 11:24:31 -04:00
commit 6af06c06c5
6 changed files with 5 additions and 5 deletions

View file

@ -5,7 +5,7 @@ import { UnauthorizedError } from "@modelcontextprotocol/sdk/client/auth.js"
import * as prompts from "@clack/prompts" import * as prompts from "@clack/prompts"
import { UI } from "../ui" import { UI } from "../ui"
import { MCP } from "../../mcp" import { MCP } from "../../mcp"
import { McpAuth } from "../../mcp" import { McpAuth } from "@/mcp/auth"
import { McpOAuthProvider } from "../../mcp/oauth-provider" import { McpOAuthProvider } from "../../mcp/oauth-provider"
import { Config } from "../../config" import { Config } from "../../config"
import { Instance } from "../../project/instance" import { Instance } from "../../project/instance"

View file

@ -35,7 +35,7 @@ import { Instruction } from "@/session/instruction"
import { LLM } from "@/session/llm" import { LLM } from "@/session/llm"
import { LSP } from "@/lsp" import { LSP } from "@/lsp"
import { MCP } from "@/mcp" import { MCP } from "@/mcp"
import { McpAuth } from "@/mcp" import { McpAuth } from "@/mcp/auth"
import { Command } from "@/command" import { Command } from "@/command"
import { Truncate } from "@/tool" import { Truncate } from "@/tool"
import { ToolRegistry } from "@/tool" import { ToolRegistry } from "@/tool"

View file

@ -140,3 +140,4 @@ export const layer = Layer.effect(
) )
export const defaultLayer = layer.pipe(Layer.provide(AppFileSystem.defaultLayer)) export const defaultLayer = layer.pipe(Layer.provide(AppFileSystem.defaultLayer))
export * as McpAuth from "./auth"

View file

@ -1,3 +1 @@
export * as MCP from "./mcp" export * as MCP from "./mcp"
export * as McpAuth from "./auth"
export * as McpOAuthCallback from "./oauth-callback"

View file

@ -228,3 +228,4 @@ export async function stop(): Promise<void> {
export function isRunning(): boolean { export function isRunning(): boolean {
return server !== undefined return server !== undefined
} }
export * as McpOAuthCallback from "./oauth-callback"

View file

@ -1,5 +1,5 @@
import { test, expect, describe, afterEach } from "bun:test" import { test, expect, describe, afterEach } from "bun:test"
import { McpOAuthCallback } from "../../src/mcp" import { McpOAuthCallback } from "../../src/mcp/oauth-callback"
import { parseRedirectUri } from "../../src/mcp/oauth-provider" import { parseRedirectUri } from "../../src/mcp/oauth-provider"
describe("parseRedirectUri", () => { describe("parseRedirectUri", () => {