File tree Expand file tree Collapse file tree 3 files changed +5
-20
lines changed
Expand file tree Collapse file tree 3 files changed +5
-20
lines changed Original file line number Diff line number Diff line change @@ -97,22 +97,5 @@ export default tseslint.config(
9797
9898 } ,
9999 } ,
100- {
101- files : [ "packages/mcp/**" ] ,
102- rules : {
103- "@typescript-eslint/no-explicit-any" : "off" ,
104- "@typescript-eslint/no-unsafe-assignment" : "off" ,
105- "@typescript-eslint/no-unsafe-call" : "off" ,
106- "@typescript-eslint/no-unsafe-member-access" : "off" ,
107- "@typescript-eslint/no-unsafe-return" : "off" ,
108- "no-console" : "off" ,
109- "@typescript-eslint/no-unsafe-argument" :"off" ,
110- "@typescript-eslint/require-await" :"off" ,
111- "@typescript-eslint/no-unused-vars" :"off" ,
112- "@typescript-eslint/no-misused-promises" :"off" ,
113- "@typescript-eslint/unbound-method" :"off"
114-
115- } ,
116- }
117100) ;
118101
Original file line number Diff line number Diff line change 11export * from "./api"
22export * from "./langchain"
3- export * from "./vercel"
43export * from "./mcp"
4+ export * from "./vercel"
Original file line number Diff line number Diff line change 44
55import type { CallToolResult , Tool } from "@modelcontextprotocol/sdk/types.js"
66import type { Action } from "@polkadot-agent-kit/llm"
7- import type { PolkadotAgentKit } from "./api"
87import { zodToJsonSchema } from "zod-to-json-schema"
98
9+ import type { PolkadotAgentKit } from "./api"
10+
1011/**
1112 * Interface for AgentKit MCP tools and handlers.
1213 *
@@ -64,6 +65,7 @@ function createToolHandler(actions: Action[]) {
6465
6566 try {
6667 // Validate and parse arguments using the action's schema
68+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
6769 const parsedArgs = action . schema . parse ( args )
6870
6971 // Execute the action
@@ -111,7 +113,7 @@ function createToolHandler(actions: Action[]) {
111113 * @returns Promise resolving to MCP tools and handler
112114 *
113115 */
114- export async function getMcpTools ( polkadotAgentKit : PolkadotAgentKit ) : Promise < AgentKitMcpTools > {
116+ export function getMcpTools ( polkadotAgentKit : PolkadotAgentKit ) : AgentKitMcpTools {
115117 const actions : Action [ ] = polkadotAgentKit . getActions ( )
116118
117119 return {
You can’t perform that action at this time.
0 commit comments