Skip to content

MCP Tools not working with GLM 4.7 #79

Description

@wpbryant

I added the .env file with my z.AI GLM credentials and the planning phase went along without an issue.

Once planning was finished and the implementation phase was to start, the features were unable to start. The tool was able to calculate the number of features but unable to start implementation. Asking the assistant narrowed it down to an issue with calling the MCP server for tools to spin up the project features.

File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/dialects/sqlite/base.py", line 3034, in _get_table_pragma
    cursor = connection.exec_driver_sql(statement)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1779, in exec_driver_sql
    ret = self._execute_context(
          ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context
    return self._exec_single_context(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context
    self._handle_dbapi_exception(
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2363, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context
    self.dialect.do_execute(
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 952, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) disk I/O error
[SQL: PRAGMA main.table_info("features")]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
[ENTRY] autonomous_agent_demo.py starting...
[ORCHESTRATOR] run_parallel_orchestrator called with max_concurrency=5
Fatal error: (sqlite3.OperationalError) disk I/O error
[SQL: PRAGMA main.table_info("features")]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
Traceback (most recent call last):
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context
    self.dialect.do_execute(
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 952, in do_execute
    cursor.execute(statement, parameters)
sqlite3.OperationalError: disk I/O error
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/home/william/Projects/autocoder-master/autonomous_agent_demo.py", line 237, in <module>
    main()
  File "/home/william/Projects/autocoder-master/autonomous_agent_demo.py", line 218, in main
    asyncio.run(
  File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/william/Projects/autocoder-master/parallel_orchestrator.py", line 1039, in run_parallel_orchestrator
    orchestrator = ParallelOrchestrator(
                   ^^^^^^^^^^^^^^^^^^^^^
  File "/home/william/Projects/autocoder-master/parallel_orchestrator.py", line 213, in __init__
    self._engine, self._session_maker = create_database(project_dir)
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/william/Projects/autocoder-master/api/database.py", line 182, in create_database
    Base.metadata.create_all(bind=engine)
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/sql/schema.py", line 5928, in create_all
    bind._run_ddl_visitor(
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 3260, in _run_ddl_visitor
    conn._run_ddl_visitor(visitorcallable, element, **kwargs)
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2467, in _run_ddl_visitor
    ).traverse_single(element)
      ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/sql/visitors.py", line 661, in traverse_single
    return meth(obj, **kw)
           ^^^^^^^^^^^^^^^
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/sql/ddl.py", line 963, in visit_metadata
    [t for t in tables if self._can_create_table(t)]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/sql/ddl.py", line 928, in _can_create_table
    return not self.checkfirst or not self.dialect.has_table(
                                      ^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 2, in has_table
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/reflection.py", line 89, in cache
    return fn(self, con, *args, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/dialects/sqlite/base.py", line 2324, in has_table
    info = self._get_table_pragma(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/dialects/sqlite/base.py", line 3034, in _get_table_pragma
    cursor = connection.exec_driver_sql(statement)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1779, in exec_driver_sql
    ret = self._execute_context(
          ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context
    return self._exec_single_context(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context
    self._handle_dbapi_exception(
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2363, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context
    self.dialect.do_execute(
  File "/home/william/Projects/autocoder-master/venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 952, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) disk I/O error
[SQL: PRAGMA main.table_info("features")]
(Background on this error at: https://sqlalche.me/e/20/e3q8)

Activity

  1. added a commit that references this issue on Oct 22, 2026
    77545f1
  2. added a commit that references this issue on Nov 8, 2026
    162bed6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions