@artinet/sdk
Version:
A TypeScript SDK for building collaborative AI agents.
27 lines (26 loc) • 1.12 kB
TypeScript
/**
* Copyright 2025 The Artinet Project
* SPDX-License-Identifier: Apache-2.0
*/
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { MCP } from "../../types/index.js";
import { Implementation } from "@modelcontextprotocol/sdk/types.js";
import { ServerOptions } from "@modelcontextprotocol/sdk/server/index.js";
import { Agent } from "../a2a/index.js";
export interface MCPServiceParams {
serverInfo: Implementation;
agent: Agent;
options?: ServerOptions;
agentCardUri?: string;
}
export declare class BaseMCPService extends McpServer implements MCP.Service {
readonly agent: Agent;
private _registerBaseTools;
constructor({ serverInfo, agent, options, agentCardUri, }: MCPServiceParams);
stop(): Promise<void>;
static create({ serverInfo, agent, options, agentCardUri, }: MCPServiceParams): BaseMCPService & Agent;
}
export type MCPService = ReturnType<typeof BaseMCPService.create>;
export type MCPAgent = MCPService;
export declare const createMCPService: typeof BaseMCPService.create;
export declare const createMCPAgent: typeof BaseMCPService.create;