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
4 changes: 2 additions & 2 deletions src/__tests__/navigation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ describe("Domain Navigation", () => {

describe("clearDomainCache", () => {
it("should clear the cached handlers", async () => {
// Load a handler to cache it
const handler1 = await getDomainHandler("tickets");
// Load a handler to cache it (return value not asserted — only the side-effect matters)
const _handler1 = await getDomainHandler("tickets");

// Clear cache
clearDomainCache();
Expand Down
2 changes: 1 addition & 1 deletion src/domains/tickets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ async function handleCall(
const dateStart = args.dateoccurred_start as string | undefined;
const dateEnd = args.dateoccurred_end as string | undefined;
let openOnly = args.open_only as boolean | undefined;
let closedOnly = args.closed_only as boolean | undefined;
const closedOnly = args.closed_only as boolean | undefined;

const hasFilters =
args.client_id || args.status_id || args.agent_id ||
Expand Down
10 changes: 3 additions & 7 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
* It handles incoming HTTP requests and routes them to the appropriate handlers.
*/

import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
import {
CallToolRequestSchema,
ListToolsRequestSchema,
} from "@modelcontextprotocol/sdk/types.js";
import type { Tool } from "@modelcontextprotocol/sdk/types.js";
// MCP SDK imports intentionally omitted — the Workers transport adapter
// is not yet wired (this file currently returns 501 for /mcp). Re-add the
// imports when the SDK Workers adapter lands.

export interface Env {
HALOPSA_CLIENT_ID: string;
Expand Down
Loading