Update project configuration: rename package, enhance description, and update SDK imports to specific versions. Remove unused test utilities.
This commit is contained in:
parent
4522dc41a6
commit
ff8e92bc0c
8 changed files with 22 additions and 52 deletions
|
@ -1,7 +1,7 @@
|
|||
import { assertEquals, assertExists } from "std/assert/mod.ts";
|
||||
import { describe, it, beforeEach } from "std/testing/bdd.ts";
|
||||
import { mcpProxy } from "../src/lib/utils.ts";
|
||||
import type { Transport } from "npm:@modelcontextprotocol/sdk/shared/transport.js";
|
||||
import type { Transport } from "@modelcontextprotocol/sdk/shared/transport.js";
|
||||
|
||||
// Mock Transport implementation for testing
|
||||
class MockTransport implements Transport {
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
/**
|
||||
* Test utilities for mcp-remote-deno tests
|
||||
*/
|
||||
|
||||
import type { Server } from "node:http";
|
||||
import type { AddressInfo } from "node:net";
|
||||
|
||||
/**
|
||||
* A mock server for testing
|
||||
*/
|
||||
export class MockServer {
|
||||
/**
|
||||
* The HTTP server instance
|
||||
*/
|
||||
server: Partial<Server>;
|
||||
|
||||
/**
|
||||
* A function that returns the auth code
|
||||
*/
|
||||
waitForAuthCode: () => Promise<string>;
|
||||
|
||||
/**
|
||||
* Creates a new MockServer
|
||||
* @param port The port the server is listening on
|
||||
*/
|
||||
constructor(port = 8000) {
|
||||
this.server = {
|
||||
address: () => ({
|
||||
port,
|
||||
address: "127.0.0.1",
|
||||
family: "IPv4"
|
||||
} as AddressInfo),
|
||||
// Add other server properties as needed
|
||||
};
|
||||
this.waitForAuthCode = () => Promise.resolve("mock-auth-code");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue