iFlytek SparkAgent Platform

iFlytek SparkAgent Platform

This is a simple example of using MCP Server to invoke the task chain of the iFlytek SparkAgent Platform.

3
Stars
3
Forks
0
Releases

Overview

This MCP server provides a minimal gateway to invoke the iFlytek SparkAgent Platform's task chains via MCP. It can run over stdio (the default) or Server-Sent Events (SSE) transport, with an option to specify a custom port. By default, it exposes a tool named upload_file that requires a single argument: file (the path to the uploaded file). The repository includes a Python asyncio-based MCP client example that connects via stdio, lists available tools, and calls the upload_file tool. The README demonstrates how to discover tools and invoke them through an MCP client, illustrating the typical workflow of tool discovery (list_tools) and tool invocation (call_tool). For Claude users, it provides configuration snippets for claude_desktop_config.json or mcp.json, showing how to integrate the MCP server using uv or uvx to pull from the GitHub repository. Overall, this README serves as a practical template for testing and using MCP to drive the SparkAgent task chain in local or integrated environments.

Details

Owner
iflytek
Language
Python
License
MIT License
Updated
2025-12-07

Features

Simple MCP server example

A minimal MCP server demonstrating how to invoke SparkAgent task chains via MCP.

Transport options: stdio and SSE

Run the server using the default stdio transport or enable SSE transport on a custom port.

Default tool: upload_file

Exposes a default tool named upload_file that accepts a single required argument: file.

MCP client usage example (Python asyncio)

Includes a Python asyncio-based MCP client example that lists tools and calls upload_file.

Tool discovery and invocation

Demonstrates listing tools and invoking a tool via session.call_tool.

Claude integration guidance

Provides configuration snippets to integrate with Claude via claude_desktop_config.json or mcp.json using uv or uvx.

Starting commands with uv/uvx

Shows how to start the server with uv or uvx, including directory or git-based setups.

Audience

DevelopersSet up MCP server to invoke SparkAgent task chains locally or in integration.
MCP client developersDemonstrates tool listing and invocation via MCP client and Python examples.
Claude usersGuides configuring Claude with uv/uvx for MCP server access integration.

Tags

mcpmcp-serverspark-agentiflytekupload_filetool-invocationstdiosseuvuvxpythonasyncioClaudeconfigintegration