Skip to content

persistent mcp servers #2983

@merimus

Description

@merimus

Question

Trying to use a mcp server, in particular one which provides memory.

servers = load_mcp_servers('mcp_config.json')
agent = Agent(model, toolsets=servers)

agent.run() appears to create an instance of the mcp each time I make a call so it doesn't retain memory.
Is there a way to cause it to keep the mcp server around.

In this case it's configured as a docker container.

Additional Context

I am using the sequantialthinking mcp server
First call is to create a series of thoughts, works fine and create a series of thoughts.
Second call is to query those thoughts but there doesn't appear to be any content.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions