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.1.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.1.tar.gz.

File metadata

  • Download URL: iflow_mcp_gdcc_semantic_croissant-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 88164c34ac598b69da8e51155752afa7d28778471ced8fd4e1a5025bef7077e2
MD5 c7e8e1543020b7dc2b1ad94c34c50c6f
BLAKE2b-256 c7ca2ee65a257d900e7b5046469ca99c956689871d2bc476aa6660f623d1be26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iflow_mcp_gdcc_semantic_croissant-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9935b8324dd4360138a4ac42df0fcb5111a0ee41b62c152f3c011af662a4a1e2
MD5 0eeb0012e798c88f7ea82a3ba48b9f2e
BLAKE2b-256 61f04931a289487fa45674c5cf135af1ea4149f68338c828f56775c0318efaae

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