File tree Expand file tree Collapse file tree
packages/opencode/src/acp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,19 +17,18 @@ import { McpServer, createServer } from "@modelcontextprotocol/sdk/server/mcp.js
1717import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js"
1818import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js"
1919import { IncomingMessage , ServerResponse } from "http"
20- import { Readable } from "stream"
2120import {
2221 CallToolResult ,
2322 ListToolsResult ,
2423} from "@modelcontextprotocol/sdk/types.js"
2524import { getDefaultModel } from "../../agent/model.js"
2625import { zodToJsonSchema } from "zod-to-json-schema"
2726import {
28- list ,
27+ listSessions ,
28+ switchSession ,
2929 createSession ,
3030 forkSession ,
31- Sessions ,
32- switchSession renameSession ,
31+ renameSession ,
3332 deleteSession ,
3433 getSessionInfo ,
3534 undoMessage ,
@@ -52,16 +51,6 @@ const acpToolParameterSchema = z.object({
5251
5352type AcpTool = z . infer < typeof acpToolParameterSchema >
5453
55- const acpToolResultSchema = z . object ( {
56- name : z . string ( ) ,
57- description : z . string ( ) ,
58- inputSchema : z . object ( {
59- type : z . literal ( "object" ) ,
60- properties : z . record ( z . any ( ) ) ,
61- required : z . array ( z . string ( ) ) . optional ( ) ,
62- } ) ,
63- } )
64-
6554async function getAgentTools ( agent : Agent ) : Promise < AcpTool [ ] > {
6655 const result : AcpTool [ ] = [ ]
6756
You can’t perform that action at this time.
0 commit comments