Skip to content

Provide MCP Server Name and Title #3039

@Whadup

Description

@Whadup

Description

When we connect to an MCP Server, the server responds with its name and title.
I'd like to have these available.

E.g. in

await self._client.initialize()
we could store it in two new fields.

with anyio.fail_after(self.timeout):
    init_result = await self._client.initialize()
    self.name = init_result.serverInfo.name
    self.title = init_result.serverInfo.title
    if log_level := self.log_level:
        await self._client.set_logging_level(log_level)

References

https://modelcontextprotocol.io/specification/2025-03-26/basic/lifecycle

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions