Skip to content

Commit ff3cda0

Browse files
committed
fully remove prompts + rebase
1 parent 1f28db3 commit ff3cda0

File tree

2 files changed

+1
-42
lines changed

2 files changed

+1
-42
lines changed

src/index.ts

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@ import { Context } from "./context.js";
1111
import type { Config } from "../config.d.ts";
1212
import { TOOLS } from "./tools/index.js";
1313
import { AvailableModelSchema } from "@browserbasehq/stagehand";
14-
// import { PROMPTS, getPrompt } from "./mcp/prompts.js";
1514
import { RESOURCE_TEMPLATES } from "./mcp/resources.js";
1615

1716
import {
1817
ListResourcesRequestSchema,
1918
ReadResourceRequestSchema,
2019
ListResourceTemplatesRequestSchema,
21-
// ListPromptsRequestSchema,
22-
// GetPromptRequestSchema,
2320
} from "@modelcontextprotocol/sdk/types.js";
2421

2522
const cookieSchema = z.object({
@@ -135,18 +132,14 @@ export default function ({ config }: { config: z.infer<typeof configSchema> }) {
135132

136133
const server = new McpServer({
137134
name: "Browserbase MCP Server",
138-
version: "2.0.0",
135+
version: "2.2.0",
139136
description:
140137
"Cloud browser automation server powered by Browserbase and Stagehand. Enables LLMs to navigate websites, interact with elements, extract data, and capture screenshots using natural language commands.",
141138
capabilities: {
142139
resources: {
143140
subscribe: true,
144141
listChanged: true,
145142
},
146-
prompts: {
147-
listChanged: true,
148-
},
149-
sampling: {},
150143
},
151144
});
152145

@@ -161,10 +154,6 @@ export default function ({ config }: { config: z.infer<typeof configSchema> }) {
161154
subscribe: true,
162155
listChanged: true,
163156
},
164-
prompts: {
165-
listChanged: true,
166-
},
167-
sampling: {},
168157
});
169158

170159
// Add resource handlers
@@ -186,16 +175,6 @@ export default function ({ config }: { config: z.infer<typeof configSchema> }) {
186175
},
187176
);
188177

189-
// Add prompt handlers
190-
// server.server.setRequestHandler(ListPromptsRequestSchema, async () => {
191-
// return { prompts: PROMPTS };
192-
// });
193-
194-
// server.server.setRequestHandler(GetPromptRequestSchema, async (request) => {
195-
// const prompt = getPrompt(request.params.name);
196-
// return prompt;
197-
// });
198-
199178
const tools: MCPToolsArray = [...TOOLS];
200179

201180
// Register each tool with the Smithery server

src/mcp/prompts.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)