Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.

Commit 66c33ac

Browse files
committed
fix: use otuput types from spec
1 parent e335b50 commit 66c33ac

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/mcp-use/src/server/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js'
1+
import type { CallToolResult, GetPromptResult, ReadResourceResult} from '@modelcontextprotocol/sdk/types.js'
22
export interface ServerConfig {
33
name: string
44
version: string
@@ -43,7 +43,7 @@ export interface PromptDefinition {
4343
fn: PromptHandler
4444
}
4545

46-
export type ResourceHandler = () => Promise<string>
47-
export type TemplateHandler = (params: Record<string, string>) => Promise<string>
46+
export type ResourceHandler = () => Promise<ReadResourceResult>
47+
export type TemplateHandler = (params: Record<string, string>) => Promise<ReadResourceResult>
4848
export type ToolHandler = (params: Record<string, any>) => Promise<CallToolResult>
49-
export type PromptHandler = (params: Record<string, any>) => Promise<string>
49+
export type PromptHandler = (params: Record<string, any>) => Promise<GetPromptResult>

0 commit comments

Comments
 (0)