Skip to main content

A MCP server exposing a croissant tools

Project description

A simple MCP server that exposes a website fetching tool.

Usage

Start the server using either stdio (default) or SSE transport:

# Using stdio transport (default)
uv run mcp-simple-tool

# Using SSE transport on custom port
uv run mcp-simple-tool --transport sse --port 8000

The server exposes a tool named "fetch" that accepts one required argument:

  • url: The URL of the website to fetch

Example

Using the MCP client, you can use the tool like this using the STDIO transport:

import asyncio
from mcp.client.session import ClientSession
from mcp.client.stdio import StdioServerParameters, stdio_client


async def main():
    async with stdio_client(
        StdioServerParameters(command="uv", args=["run", "mcp-simple-tool"])
    ) as (read, write):
        async with ClientSession(read, write) as session:
            await session.initialize()

            # List available tools
            tools = await session.list_tools()
            print(tools)

            # Call the fetch tool
            result = await session.call_tool("fetch", {"url": "https://example.com"})
            print(result)


asyncio.run(main())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_gdcc_semantic_croissant-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_gdcc_semantic_croissant-0.1.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_gdcc_semantic_croissant-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_gdcc_semantic_croissant-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5b9ef0f14b5b62c8f5765e1871f568d5fe0aa267dc1dcafdd25482352f049930
MD5 248a1f68faeacaf3e1a2e11016282e46
BLAKE2b-256 04f060af2280b128a14b59028dcbe8ed7958f9c481bac31fd46f4b6a7f3921ac

See more details on using hashes here.

File details

Details for the file iflow_mcp_gdcc_semantic_croissant-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_gdcc_semantic_croissant-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_gdcc_semantic_croissant-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22ba326b8696816283b8e793ac75998495255920527fe66c1a1a7090e72e16b7
MD5 9ab3bd20aefaeec9602eb03ecf4be68c
BLAKE2b-256 848ee52f794f35cdb603f85697f1f67826bc743dddc64f86bcfd761da9b828df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page